Sunday, April 1, 2018

FW: Solr 7.1 and 5.4 differences in bf

-----Original Message-----
From: Homero Gonzalez [mailto:hgonzalez@costar.com]
Sent: 23 March 2018 20:46
To: solr-user@lucene.apache.org
Subject: Solr 7.1 and 5.4 differences in bf

Hi,
I am working on the migration of SOLR 5.4 to 7.1 and I have not been able to
get the same order in the results. Looks like the problem is with the bf
parameter.

We use edismax with both boost and bf functions. It is important to have
some functions as bf so they add to the score and the impact is less than
the ones in the boost parameter.

I have tried overriding the similarity class by specifying the following in
schema.xml but I am still not able to get the same score and order of
results with equal queries in 5.4 and 7.1 <similarity
class="org.apache.lucene.search.similarities.ClassicSimilarity" />

We are also using qf to boost some query fields.

Enabling debug=true I noticed that 5.4 uses the queryNorm as the boost value
of the bf formulas. Version 7.1 is using a boost value of 1 in all bf
formulas.

Is there a way to configure 7.1 so it uses queryNorm in bf and produces the
same results as 5.4?

Thanks,
Homero.

No comments:

Post a Comment