-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Term Vectors doesn't work on artificial docs with keyword fields #53494
Labels
Comments
matriv
added
>bug
:Search/Search
Search-related issues that do not fall into other categories
labels
Mar 12, 2020
Pinging @elastic/es-search (:Search/Search) |
matriv
added a commit
to matriv/elasticsearch
that referenced
this issue
Mar 12, 2020
Previously, Term Vectors API was returning empty results for artificial documents with keyword fields. Checking only for `string()` on `IndexableField` is not enough, since for `KeywordFieldType` `binaryValue()` must be used instead. Fixes elastic#53494
matriv
added a commit
that referenced
this issue
Mar 13, 2020
Previously, Term Vectors API was returning empty results for artificial documents with keyword fields. Checking only for `string()` on `IndexableField` is not enough, since for `KeywordFieldType` `binaryValue()` must be used instead. Fixes #53494
matriv
added a commit
to matriv/elasticsearch
that referenced
this issue
Mar 13, 2020
Previously, Term Vectors API was returning empty results for artificial documents with keyword fields. Checking only for `string()` on `IndexableField` is not enough, since for `KeywordFieldType` `binaryValue()` must be used instead. Fixes elastic#53494 (cherry picked from commit 1fc3fe3)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Steps to reproduce:
Issue is spotted in
ParseContext#getValues()
wherefield.stringValue()
returnsnull
for keyword fields. Need to check for theKeywordFieldType
and convert BytesRef to UTF8 string.The text was updated successfully, but these errors were encountered: