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 have noticed that when using the edismax bq parameter, the bq gets applied twice: once to the synonym expansion and once as an addition to the overall score.
I have a fresh download of solr 4.5.
I have a synonym file containing only one line:
usa, united states of america
I have the following 2 documents that I index into solr using the post.jar:
[
{
"id":"1",
"name":"Enterprises in the USA.",
"cat":"Y"
},
{
"id":"2",
"name":"Enterprises in the United States of America.",
"cat":"Y"
}
]
when I search for "USA" using the following query:
<strname="parsedquery">(+(DisjunctionMaxQuery((name:usa)) (((+DisjunctionMaxQuery((name:"united states of america")) () cat:Y^1000.0)/no_coord))) () cat:Y^1000.0)/no_coord</str>
<strname="parsedquery_toString">+((name:usa) ((+(name:"united states of america") () cat:Y^1000.0))) () cat:Y^1000.0</str>
meaning that doc 2 comes first as the expansion "united states of america" gets one extra bq boost.
Note the duplicate cat:Y^1000.0 in the parsedQuery. The first of which may be the actual bug?
Same when I search for "United States of America":
http://localhost:8983/solr/collection1/select?q="united states of america"&pf=name&qf=name&bq=cat:Y^1000&debugQuery=true&defType=synonym_edismax&synonyms=true
I get
<strname="parsedquery">(+(DisjunctionMaxQuery((name:"united states of america")) (((+DisjunctionMaxQuery((name:usa)) () cat:Y^1000.0)/no_coord))) () cat:Y^1000.0)/no_coord</str>
<strname="parsedquery_toString">+((name:"united states of america") ((+(name:usa) () cat:Y^1000.0))) () cat:Y^1000.0</str>
meaning that doc 1 which contains the expansion "USA" get one additional bq boost.
In general, the bug is that the synonym expansion get a duplicate bq boost.
Note that none of synonyms.originalBoost or synonyms.synonymBoost is being used.
I have seen this issue in solr 3.6 as well as 4.5.
The text was updated successfully, but these errors were encountered:
Yes, I came accross this bug as well. Note, that pf works great, when it is applied twice, because it is actually applied only once as you have different phrases, but if I boost by some other field (e.g. boost=popularity), the synonyms are boosted twice, which is wrong.
Hello
I have noticed that when using the edismax
bq
parameter, thebq
gets applied twice: once to the synonym expansion and once as an addition to the overall score.I have a fresh download of solr 4.5.
I have a synonym file containing only one line:
usa, united states of america
I have the following 2 documents that I index into solr using the post.jar:
when I search for "USA" using the following query:
I get back in the debug query
meaning that doc 2 comes first as the expansion "united states of america" gets one extra bq boost.
Note the duplicate
cat:Y^1000.0
in the parsedQuery. The first of which may be the actual bug?Same when I search for "United States of America":
http://localhost:8983/solr/collection1/select?q="united states of america"&pf=name&qf=name&bq=cat:Y^1000&debugQuery=true&defType=synonym_edismax&synonyms=true
I get
meaning that doc 1 which contains the expansion "USA" get one additional bq boost.
In general, the bug is that the synonym expansion get a duplicate bq boost.
Note that none of
synonyms.originalBoost
orsynonyms.synonymBoost
is being used.I have seen this issue in solr 3.6 as well as 4.5.
The text was updated successfully, but these errors were encountered: