Reputation: 7109
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 Laptop
and so on
Upvotes: 0
Views: 224
Reputation: 3209
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
:
samsung
with rows=0
and request a terms facet on category
. samsung
samsung
filtered by the chosen category (eg: q=samsung&fq=category:Mobile&rows=10
)Upvotes: 1