google opensearch plugin ajax drop down - ajax

I am making an opensearch plugin to be used as a search engine provider in the browser.
http://library.curtin.edu.au/services/toolbar/#searchPlugin
As there is no way to specify any ajax call in the xml file,
How do I make a drop down box populated with search suggestions?
Many thanks

Firefox supports extensions on the OpenSearch Search Engine Plugin format including the ability to indicating a type of application/x-suggestions+json which is used to specify the URL to use for fetching search suggestions.
See https://developer.mozilla.org/en/creating_opensearch_plugins_for_firefox.
For lots of examples see http://mycroft.mozdev.org/index.html.

Related

Google Custom Search Engine - search by image

Right now I'm using Custom Search Engine (CSE) to search through entire web by search term. The request looks like:
GET "https:/www.googleapis.com/customsearch/v1?key=API_KEY&cx=SEARCH_ENGINE_ID&q=SEARCH_TERM"
And this request returns me list of search results.
But, I need to implement search by image or image url. Do Google API provide such a url param? Maybe something like "image_url"? So, the request can look the following:
https://www.googleapis.com/customsearch/v1?key=API_KEY&cx=SEARCH_ENGINE_ID&image_url=http://www.example.com/image.png
Basically, I need to implement the same functionality as images.google.com/ but using my Custom Search Engine. Thanks.
Example of what I need to implement:
As far as I know, what you're looking for is only supported by Vision AI service (partially at least, never used it before). Google CSE API only allows you to search images and not by images as you may noticed.

Add sites to Google Custom Search Engine (CSE)

I am trying to use the Google Custom Search Engine to retrieve news articles from specific sites. I have created a test search engine and add some sites to it to search into.
My problem is that I have a web application to add or remove these site and I want to change theses sites in the CSE programmatically but I couldn't find any way to do it.
Is there ant API to configure my search engine?
I have found the answer, it's under Creating Custom Search Engines programatically, but unfortunately it is not free :(

Google Custom Search Engine API Image Search not returning results

Just setup my CSE with Image Search enabled in the Basics tab, but still ain't getting results.
If I don't use searchType=image in the query it works, if I put it back it stops working with no errors, just no results.
Any inputs?
It seems there are two elements required to consume the Google search API, the configuration of the API key and credentials.
Setup the API key here https://console.developers.google.com/project
and create your own CSE here https://www.google.co.uk/cse/all
I made the mistake like a lot of people of ignoring the CSE side of the setup (it didn't seem logical to search only my own site).
You need to create a CSE though, point it to search any url (I don't think it matters greatly), and then where it says "Sites to search" chose "Search the entire web but emphasise included sites". Also then set image search to "On".
Once you've done this browse to your new CSE, the url should contain your CX code e.g. cx=014341056213260336986:v4fl8n8sabc, you then need to use this in your request query string.
Your API query should now start returning results.
Image search needs to be switched to ON at the Custom Search Setup->Basics

How does one use Magento's REST API to run keyword queries?

I'm developing a community extension for Magento, when a product search is detected, some JavaScript included with the extension needs to query the Magento API to get a larger number of results than are rendered on page.
I have the API configured, responding, and returning useful data, but I'm struggling to find a way to apply a query to the API call. I've tried adding ?q= or ?keyword= and similar, but it continues to return the same set of data without any filtering applied. Countless passes through Google, Magento StackExchange, and various Magento developer forums haven't made it clear one way or another if this is even possible.
Does the REST API support keyword / phrase searches, or will my extension need to include a block that adds this functionality to the REST API?
Did you take a look at Magento API Filtering .
You could also create you own Custom API or Extending the Core API

Which Google API to use to search for files?

I have a search bar which should show me only the PDF files from Google when i start searching for something.Which API can i use for searching in google and how can i integrate that in my code.Are there any tutorial available for it.
You'll use the Documents List API
You'll search by MIME type.
It'll look like this (but needs to be properly encoded):
GET https://docs.google.com/feeds/default/private/full/-/{http://schemas.google.com/g/2005#kind}application/pdf

Resources