I'd like to implement autocompletions on a Google site search engine. This site uses the (paid) XML API however for customizing the results. Google's documentation only talks about autocompletion for the JS API with custom search.
Is it possible to fetch some XML or JSON feed with autocompletion data? Or is there some other way to achieve autocompletion without giving up on the XML search API?
I wrote my own autocomplete, see demo here: http://olegh.cc.st/autocomplete.html
If you have your own dictionary, and own WEB-server on unix-like platform, you
can run my autocomp. I can share sources for free.
Related
I am using Google Search Appliance (GSA) on a project. We wanted to use query expansion to make searching more effective. Currently we are using the front-end to upload the synonym file.
Is there an API which GSA provides to automatically upload the synonyms. An API does exist for Google Custom Search, but could not find one for GSA.
Thanks in advance.
There is not a direct API for this. The API to the administrative console can be found
http://www.google.com/support/enterprise/static/gsa/docs/admin/72/gsa_doc_set/acapi_protocol/index.html
You could write a screenscrapper and perform a form post to achieve what you are wanting to do.
If I use Jades template engine with NodeJs will the app be crawlable by search engines and Facebook without using the _escaped_fragment_?
If your application outputs HTML, it is no different than if you had written that HTML in a file and simply served the file. The wider Web doesn't generally know or care what you're using to generate your HTML.
(It is possible to infer what tech a page is using by inspecting headers and looking for common idioms that are unique to a particular technology, but these are just clues, not a fundamental difference in what your Web page is.)
i want a java library, to search a text on Google and returns some pages based on text and semantic similarity. is there any API doing this job?
i wrote a crawler myself and search to specific depth from a root page, but i dont know how to input a text as a search query for Google.
Google provides the Custom Search API which you can use to search Google from code.
You'll need to create a google account if you don't already have one, create a custom search engine, generate an API key, and then use that as part of your request. You can get the results as JSON or as an Atom XML.
The documentation for this is available at https://developers.google.com/custom-search/v1/overview
There's no java library, as such, so to actually call the API, you'll need to either use java.net.URL and java.net.URLConnection, or a REST client library like the one that jersey ships with.
I'm investigating the possibility of re-using Google Apps/Docs in a local hybrid desktop/browser application.
I've been going through the Google documentation on manipulating docs, eg. the Spreadsheet. I can't seem to find any info on actually hosting the UI. Is this possible, or does it require some form of permission from Google?
You want to basically embed an browser control in your application pointed at the URL of a Google Apps doc? You could use the Google Document List API to retrieve the documents for a user, then use the URLs of those documents in your embedded browser control.
You don't need Google's permission to do that; you're writing a browser with some extra smarts built in.
What do you mean by "hosting the UI?" These apps are HTML/CSS/JavaScript. Are you thinking about embedding them in AIR or Titanium, or in some kind of web control in another app?
i briefly looked into doing this, and figured if i really wanted to i could just load the gdocs page content dynamically, and use javascript to strip away the superflous elements like header and footer. but instead i'll probably just use an OS alternate because they have come a long way and I want rich hooks.
Is there any way to add google search results into your site such that the results appear under your domain (and the page doesn't get redirected to google.com)? I know about google cse but this is not a free solution. Is paying for CSE the only way? Thanks.
Use the Google AJAX Search API (my emphasis):
The Google AJAX Search API lets you
put Google Search in your web pages
with JavaScript. You can embed a
simple, dynamic search box and display
search results in your own web pages
or use the results in innovative,
programmatic ways.
You just need JavaScript - nothing server-side.
You could use Google Search API.
You could also query Google search engine through a Web Service. Here's the WSDL and here's the FAQ. But I think this will be discontinued in favor of the first suggestion I gave.
I've never used this but if you're into python check out Python Library for Google Search from Peteris Krumins’ blog.
What about this? http://code.google.com/apis/ajaxsearch/web.html
And there should be even API for PHP etc.