Class: GSA::Appliance
- Defined in:
- lib/bcms_google_mini_search/gsa.rb
Overview
GSA support slightly different features than Google Mini.
Instance Attribute Summary
Attributes inherited from Engine
#default_collection, #default_front_end, #host, #path, #port
Instance Method Summary collapse
-
#find_narrow_search_results(query) ⇒ GSA::SuggestedQueries
Fetch a set of Suggested queries, based on a given query.
Methods inherited from Engine
#initialize, #options_for_query
Constructor Details
This class inherits a constructor from GSA::Engine
Instance Method Details
#find_narrow_search_results(query) ⇒ GSA::SuggestedQueries
Fetch a set of Suggested queries, based on a given query.
See code.google.com/apis/searchappliance/documentation/50/admin_searchexp/ce_understanding.html#h3drc for the spec. See groups.google.com/group/Google-Search-Appliance-Help/browse_thread/thread/8a821fc8475a5e24/34a5c3c8ab74ed35?hl=en&lnk=gst#34a5c3c8ab74ed35
for details about how this is implemented.
Clustering (aka Narrow your search) is only supported by GSA.
36 37 38 39 40 41 42 |
# File 'lib/bcms_google_mini_search/gsa.rb', line 36 def find_narrow_search_results(query) return [] unless query url = narrow_search_results_url(query) document = SearchResult.fetch_document(url) SuggestedQueries.new(document) end |