Re: Identify exact search in edismax

2012-10-06 Thread rhl4tr
I Overrrided DefaultSimilarity class to return idf=1 always Now score is fully dependent on term matching. If single term is matching, matching docs have same score. If phrase is matching it has maximum score. -- View this message in context: http://lucene.472066.n3.nabble.com/Identify-exact

Re: Identify exact search in edismax

2012-10-04 Thread rhl4tr
But user query can contain any number of terms. I can not know how many fields term it has to match. { "responseHeader":{ "status":0, "QTime":1, "params":{ "mm":"0", "sort":"score desc", "indent":"true", "qf":"exact_keywords", "wt":"json", "rows":"

Identify exact search in edismax

2012-10-04 Thread rhl4tr
I am using edismax for guessing category from user query. If user says "I want to buy BMW and Audi car". This query will be fed to edismax which will give me results based on phrase match. Field contains following values -BMW => Cars category -Audi => Cars -2 BHK => Real Estate -need job => jobs