Skip to content

Add codec support for Lucene 6 and 7 versions #81258

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

Merged
merged 16 commits into from
Dec 8, 2021

Conversation

ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Dec 2, 2021

Adds Lucene support for reading _id and _source from ES 5 / ES 6 indices.

The codec classes are copies from Lucene where only read path is kept.

Relates #81210

public SegmentInfoFormat segmentInfoFormat() {
return segmentInfosFormat;
}
private final PostingsFormat postingsFormat = new EmptyPostingsFormat();
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's fix Lucene to only pull the postings format if any of the fields has postings, like we already do for points and doc values?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dnhatn dnhatn self-requested a review December 6, 2021 03:07
@ywelsch ywelsch added :Search/Search Search-related issues that do not fall into other categories >non-issue labels Dec 6, 2021
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Dec 6, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

I left some comments but this looks great. Thanks @ywelsch.

@ywelsch ywelsch merged commit 0685af2 into elastic:master Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants