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
Adds support for wildcards in selected fields #7061
Adds support for wildcards in selected fields #7061
Conversation
This commit simply adds the option to retrieve or generate all possible term vectors of a document, without having to specify a set of selected fields. This could be useful for MLT with items, for example, to provide a nice default if users do not specify any field.
The change looks good but I think it would be more consistent with other APIs to accept wildcards in field names than having a |
@@ -339,7 +339,7 @@ public void writeTo(StreamOutput out) throws IOException { | |||
public static enum Flag { | |||
// Do not change the order of these flags we use | |||
// the ordinal for encoding! Only append to the end! | |||
Positions, Offsets, Payloads, FieldStatistics, TermStatistics; | |||
Positions, Offsets, Payloads, FieldStatistics, TermStatistics, GenerateAll; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be needed anymore?
@alexksikes left some comments |
LGTM |
This could useful to generate all term vectors or a chosen set of them. Closes #7061
This could useful to generate all term vectors or a chosen set of them. Closes #7061
This could useful to generate all term vectors or a chosen set of them.