You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've a single synonym pair:
laptop,dizüstü
And I have 2 documents with to fields:
<doc>
<field name="id">01</field>
<field name="title">laptop</field>
<field name="content">laptop</field>
</doc>
<doc>
<field name="id">02</field>
<field name="title">laptop</field>
<field name="content">dizüstü</field>
</doc>
When q=laptop, the document with id=02 always has a higher score. Even I give synonyms.originalBoost=10 or give different weights for the fields, it doesn't change. I thought since the it has the original term in both fields, its score would be higher. It seems having the original term in one field and the synonym in another field is a positive boost factor. Am I wrong?
Here are the parsedQuery value (tie=0.1):
+((title:laptop^1.5 | content:laptop)~0.1^1.2 ((+(title:dizüstü^1.5 | content:dizüstü)~0.1 () ()))) () ()
The text was updated successfully, but these errors were encountered:
hrzafer
changed the title
Is this Scoring Correct?
Having the original term in one field and the synonym in the other gets higher score than having the original term in both fields
Aug 7, 2014
Yeah, this is a bug because the dismax calculations are applied separately (and dismax boosts docs containing the term in multiple fields). Would be hard to fix.
This is effectively a showstopper for me (I haven't been able to come up with a workaround). Has anybody made any progress on this? Is it not possible to somehow modify the original clause such that dismax will pick the highest score overall instead of highest score out of all of the clauses including main and every synonym clause?
I've a single synonym pair:
laptop,dizüstü
And I have 2 documents with to fields:
<doc>
<field name="id">01</field>
<field name="title">laptop</field>
<field name="content">laptop</field>
</doc>
<doc>
<field name="id">02</field>
<field name="title">laptop</field>
<field name="content">dizüstü</field>
</doc>
When q=laptop, the document with id=02 always has a higher score. Even I give synonyms.originalBoost=10 or give different weights for the fields, it doesn't change. I thought since the it has the original term in both fields, its score would be higher. It seems having the original term in one field and the synonym in another field is a positive boost factor. Am I wrong?
Here are the parsedQuery value (tie=0.1):
+((title:laptop^1.5 | content:laptop)~0.1^1.2 ((+(title:dizüstü^1.5 | content:dizüstü)~0.1 () ()))) () ()
The text was updated successfully, but these errors were encountered: