cse popular queries are not showing exactly like in google search results - google-api

Hi I have multiple popular queries in my cse panel I copied the code to show the popular queries in my website but they do not appear like they should be they appear like this query1
How can I show the popular queries exactly as google search results with the same style ?

Related

Google Search Appliance sort by metadata content

I'm trying to refine the search results received by my application by including the sort parameter in my HTTP requests. I've combed through the documentation here, but I can't find exactly what I'm looking for.
I'm searching for DOC filetypes, and I am able to sort by date or sort by metadata, as in alphabetizing by title, author, etc. I can also filter by whether or not the title contains certain keywords. What I want to do is to sort by whether or not the title contains certain keywords (these documents appearing first in the results), but to still keep the other results.
For example, with keywords [winter, Christmas, holiday] I could do a descending sort by the sum of inmeta:title~winter, inmeta:title~Christmas, inmeta:title~holiday and the top result might be
Winter holidays other than Christmas
followed by documents with one or two of the keywords, followed by documents that meet the other search parameters but contain no keywords.
Is this possible in GSA?
I finally achieved what I was trying to do, so figured I'd post in case it helps anyone else.
As far as I know, it is impossible to create a query with this capability, but with Google's Custom Search API, you can create a search engine with the desired keywords in the context file (by editing the XML file directly or by adding keywords through the CSE console). Then you can formulate the query as usual, but perform the search on your personalized engine.
https://developers.google.com/custom-search/docs/ranking

Predictive autosuggest logic

I would like to implement predictive autosuggest in my website. I have used Solr to improve search performance. But after a research of last 2 days, I understand that Solr didn't have any built in package or support to implement predictive suggestion like Amazon or flipkart search. Anybody can advice me what is the easy logic to implement predictive suggestion
OR what are the technologies supports this type of search suggestion?
Expected workflow as follows,
If user search string "samsung" our autosuggestion should show grouped suggestion as follows,
samsung in Mobile
samsung in Television
samsung in Laptop
and so on
You're describing "filtered search" (via autosuggest). You can determine which filters to offer using Solr facets.
Assuming "Mobile", "Television" and "Laptop" are all values in a Solr field called category:
Run a query for samsung with rows=0 and request a terms facet on category.
You'll get back an frequency-ordered list of categories where documents match samsung
Display these categories as filtered search options (via autosuggest) if you decide the result count is high enough.
When a suggestion is chosen, run a second query for samsung filtered by the chosen category (eg: q=samsung&fq=category:Mobile&rows=10)

google place api Incorrect Results

Hi I have a problem with displaying the results of a google place api
When I write nightclub Google search I get results that match my search
But when I search through google place api I get the results is not so correct as Bookstore, apartments for rent and other results not so related
The URL looks like this
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=32.0768214,34.8147987&radius=5000&keyword=Nightclub&sensor=true&language=en&key=MyKey
Thank you!
As the docs state:
keyword — A term to be matched against all content that Google has indexed for this Place, including but not limited to name, type, and address, as well as customer reviews and other third-party content.
So that filter isn't going to be quite as specific as you would like. If you only want to get night clubs, you can use the types param with a value of night_club. See Supported Place Types for all of the other possible values.

Search algorithm of my website search

I have business web dire ctory and have a problem with the search algorithm.Lets say i have category: "Accountants".But when a user make a search and type lets say: "Accounting Companies" or "Accountancy" ,the results from the category "Accountants" will not come up.How can i solve this problem?I mean is there a way to include all synonyms and different versions of category names in the search algorithm?
P.S: My site is built with CakePHP framework
I would use elastic search + soundex. if you search is really simple and you dont need use elasticsearch or other tool, look how to use soundex in your database enginner.

Google custom search: Query limit, create links to search result page?

I am planning to create a custom search for my website and just want to consider below points
Is there any query limit/day with Google Custom Search?
Can we create direct link to search result page of Custom Search, like
http://xyz.com/result.htm?cx=partner-pub-0567817491096263%3Acozw148egu5&cof=FORID%3A9&ie=UTF-8&q=%E0%A4%AD%E0%A4%BE%E0%A4%B0%E0%A4%A4+&sa=Search&lid=HI&siteurl=localhost%3A88%2Findex.htm%3Flid%3Dhi
Is it legal or breaking any Terms of Services?
The CS limit is 100 queries/day (afterwards it will cost you).
You should be aware that the custom search is limit to 100 results.
AFASIK - there is no legal limitation of creating direct links. After all you pay per query.

Resources