Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to lucene-5.2-snapshot-1675363. #10727

Merged
merged 1 commit into from Apr 22, 2015

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Apr 22, 2015

This snapshot contains in particular LUCENE-6446 (refactored explanation API)
and LUCENE-6448 (better equals/hashcode for filters).

Closes #10728

Explanation boostExpl = Explanation.match(maxBoost, "maxBoost");
Explanation minExpl = Explanation.match(
Math.min(funcExpl.getValue(), maxBoost),
"Math.min of",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we just say min of or minimum of?

@rmuir
Copy link
Contributor

rmuir commented Apr 22, 2015

Looks great. I think in general i prefer "min of" or "minimum of" where we currently say "Math.min of", because that only makes sense to java developers. Otherwise I am happy the equals/hashcode are all using superclass methods, and ComplexExplanation is out of here.

@jpountz
Copy link
Contributor Author

jpountz commented Apr 22, 2015

Thanks Robert. I kept the explanation descriptions as they were but I don't mind applying the fixes you suggest. We might find more bugs in equals/hashcode as we migrate to queries which recursively call QueryUtils.check on sub queries on the contrary to filters.

@rmuir
Copy link
Contributor

rmuir commented Apr 22, 2015

Indeed, they were in the CombineFunction before that way (I missed that). I thought they were newly introduced here.

This snapshot contains in particular LUCENE-6446 (refactored explanation API)
and LUCENE-6448 (better equals/hashcode for filters).
@jpountz jpountz force-pushed the upgrade/lucene-5.2-snapshot-1675363 branch from 5142b60 to dd679a3 Compare April 22, 2015 15:25
jpountz added a commit that referenced this pull request Apr 22, 2015
…75363

Upgrade to lucene-5.2-snapshot-1675363.
@jpountz jpountz merged commit c2d3478 into elastic:master Apr 22, 2015
rjernst added a commit that referenced this pull request Apr 23, 2015
rjernst added a commit that referenced this pull request Apr 23, 2015
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
@clintongormley clintongormley added :Core/Infra/Core Core issues without another label and removed >enhancement labels Aug 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >upgrade v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search: FielddataTermsFilter equality is based on hash codes
4 participants