I have a Google Custom Search Engine on our site and I have recently implemented the opensearch XML file so that I can add our site’s search in the browsers’ search box.
Any idea how I can add the autocomplete / suggestion feature to the browsers’ search box?
I’m assuming you’ve already enabled “autocompletions” on your Google CSE search engine configuration.
The next step is to add a
Urlelement with thetype“application/x-suggestions+json” in theOpenSearchDescriptionelement. I looked into this a little, and the following URL seems like it should work (be sure to enter your own partnerid where it says[YOUR PARTNER ID]:e.g.,
Here’s a little webapp I created (pre-populated with some helpful values) to help you with your OSDD.