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:
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
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:1,
defType:dismax,