[
https://issues.apache.org/jira/browse/LUCENE-5245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Uwe Schindler updated LUCENE-5245:
----------------------------------
Attachment: LUCENE-5245.patch
Here is a patch that fixes both issues!
[~mikemccand]: The issue is only affecting rewrites with 0 terms, so our
shortcut is too aggressive. We return BooleanQuery(true) empty in that case,
hwich has a different querynorm than ConstantScoreQuery, resulting in different
scores. To be consistent we should return the same query type
(ConstantScoreQuery for the constant rewrites). This has no speed impact, as
the scorer is always empty.
> ConstantScoreAutoRewrite rewrites prefix queryies that don't match anything
> before query weight is calculated
> -------------------------------------------------------------------------------------------------------------
>
> Key: LUCENE-5245
> URL: https://issues.apache.org/jira/browse/LUCENE-5245
> Project: Lucene - Core
> Issue Type: Bug
> Affects Versions: 4.4
> Reporter: Nik Everett
> Assignee: Uwe Schindler
> Fix For: 5.0, 4.6
>
> Attachments: LUCENE-5245.patch, LUCENE-5245.patch
>
>
> ConstantScoreAutoRewrite rewrites prefix queryies that don't match anything
> before query weight is calculated. This dramatically changes the resulting
> score which is bad when comparing scores across different Lucene
> indexes/shards/whatever.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]