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
Add ignore_above option for ICUCollationKeywordFieldMapper #40413
Comments
Pinging @elastic/es-search |
@clement-tourriere to check my understanding of your use case: would you expect that |
In fact my use case is to be able to configure a max length on text field indexed with a sort "sub field" https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html. The use case is to ignore long field (considering that they are not sortable) and in the worst case to protect against lucene byte-ref limit https://www.elastic.co/guide/en/elasticsearch/reference/current/ignore-above.html. It might be more logical to apply the |
Thanks for the additional details. I could also see an argument for applying |
+1 to support |
Yes, it would be absolutely fine for our use case to check the length before collation ;) |
Great, now that we are clear on that I will take a look at your PR. |
Add the possibility to use ignore_above parameter in ICUCollationKeywordFieldMapper. Close #40413
Add the possibility to use ignore_above parameter in ICUCollationKeywordFieldMapper. Close #40413
Add the possibility to use ignore_above parameter in ICUCollationKeywordFieldMapper. Close elastic#40413
ICUCollationKeywordFieldMapper is not derived from KeywordFieldMapper, but from FieldMapper, so it doesn't have the
ignore_above
configuration.The use case is to be able to add a sort field for specific language, ignoring long values.
For the moment the only solution is to perform this check in the client and separate the
sort
field from thekeyword
field.I can provide a PR for this feature.
The text was updated successfully, but these errors were encountered: