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
Postings highlighter doesn't return snippets when using "path":"just_name" #4116
Comments
…s highlighter Previously the field name specified in the search request was used, which isn't correct in case a custom index_name has been used for a field or the "path":"just_name" has been used in the mapping. Closes #4116
Hi @javanna just checked it out and made a build. now more records are highlighted but not all the problem I think is because there are very many fields named "name" in various mappings (for example award.type.name) and they all are lumped together somehow!
|
I see what you mean, I think it happens using I think the same would happen with the fast vector highlighter too, while with the plain highlighter it doesn't happen because the text is being re-analyzed on-the-fly. Can you open another issue with a small recreation for it? |
Yes I can but i thought that primary field in multifield mapping gets resolved to full name regardless of the "just_name" option. If so why would there be any name clash? BTW I posted another issue #4108 which seems to be looking into. With all the traffic it is easy to miss but is rather critical for us, could you possible tell me if it is a fixable bug or a feasible enhancement or it can't be achieved? |
@roytmana the fact that a field gets resolved doesn't say much about how it is actually indexed. When you use "just_name" for different fields with different path but same name, they get merged into the same lucene field. E.g. |
…s highlighter Previously the field name specified in the search request was used, which isn't correct in case a custom index_name has been used for a field or the "path":"just_name" has been used in the mapping. Closes elastic#4116
The postings highlighter doesn't return snippets when the field name in the index is different from the one specified in the search request. That happens either using
"path":"just_name"
or using a customindex_name
in the mapping.The text was updated successfully, but these errors were encountered: