Hi,
I am trying to implement solr search with spellcheck. - 

My current seach works like this - I have some specific criteria for every
search query. i.e. If I am hitting search with q=restaurants , I also pass
another param say c=mumbai. So solr returns me restaurants in mumbai.

Now I want to implement spellcheck, but at the same time I also want to make
sure that whatever results my spellcheck is providing, are valid (means have
at least one occurance in combination with my other param as in c=city). I
am not able to decide how to achieve that.

i.e. 
If I pass say "hangry" to solr with spell check then spell check retuerns
few suggestions like "hungry", "angry"
However I want to suggest user only those suggestions which have hitcounts
in my data with common field as in c=mumbai.
Otherwise what happens is - solr returns me some suggestion words "hungry ,
angry" and if they dont have ny records with combination of city, it returns
no result, which is bad user experience.

so ideally Solr should return me suggestion for only those words which have
at least 1 count for that suggestion with mumbai. 

I am currently firing 2 queries to luscene in order to achieve this 
Query one - spellcheck - this gives me word suggestns
Query two - with given words in spell check i run facet query to get
occurance counts to check which ones are valid.
But this seems like unnecessary over head (Query two - with facet takes too
long to respond as well). And I am trying to find more optimized way to do
this.

Can anyone suggest me how to do that ?

thanks,
ndesai

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Better-and-valid-Spellcheck-in-combination-with-other-parameters-with-at-least-one-occurance-tp3993484.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to