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 8.1.0-snapshot-e460356abe #40952

Merged
merged 6 commits into from
Apr 16, 2019

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Apr 8, 2019

This commit upgrades the master branch to the latest snapshot of lucene 8.1.0.

@jimczi jimczi added >upgrade :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. v8.0.0 labels Apr 8, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@jimczi
Copy link
Contributor Author

jimczi commented Apr 11, 2019

A small note for reviewer, I had to revert #33196 because the ConstantScoreScorer does not expose the inner scorer anymore:
https://issues.apache.org/jira/browse/LUCENE-8732

@jimczi jimczi requested a review from romseygeek April 15, 2019 16:52
Copy link
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM - I have one query, which I guess is to do with changes to the highlighter now using query visitors, but just wanted to double check.

} else if (query instanceof FunctionScoreQuery) {
return Collections.singletonList(((FunctionScoreQuery) query).getSubQuery());
} else if (query instanceof ESToParentBlockJoinQuery) {
return Collections.singletonList(((ESToParentBlockJoinQuery) query).getChildQuery());
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not need these any more?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The unified highlighter uses a QueryVisitor to extract the terms now so I added a visit implementation for these queries since this code is only called to extract phrase and span queries:
https://github.com/elastic/elasticsearch/pull/40952/files#diff-4d092acdc70f570b9d18594dcffb95a6R80
https://github.com/elastic/elasticsearch/pull/40952/files#diff-80c91092d36bb5d49bdd3ef462f75e40R201

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@jimczi jimczi merged commit 01ab82f into elastic:master Apr 16, 2019
@jimczi jimczi deleted the upgrade/lucene_8_1_0_e460356abe branch April 16, 2019 07:29
jimczi added a commit to jimczi/elasticsearch that referenced this pull request May 9, 2019
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. >non-issue >upgrade v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants