Possibility to configure max_analyzed_offset in highlight request #159391
Labels
enhancement
New value added to drive a business result
Feature:FieldFormatters
Feature:Search
Querying infrastructure in Kibana
Icebox
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Describe the feature: currently, if highlighting is enabled, Kibana performs an highlight request with only "pre_tags", "post_tags", "fields" and "fragment_size" attributes when querying Elastic. There are many other attributes that might be useful to configure for an highlight request. In my case, "max_analyzed_offset" would be very useful to bypass the shard failures when the searched field is longer than the index setting (default 1000000) without disabling highlighting in Kibana or changing the config on Elastic that might degrade performance (increase the default index setting, using offsets or term vectors).
Describe a specific use case for the feature: with a default of 1000000 (or 999999 if we are scared by off-by-one errors!), it will possible to completely avoid shard failures (if also Elastic config is set to default) in case of fields longer than 1MB. Even without setting a default, it will be possible to readily solve the issue on Kibana-side.
The text was updated successfully, but these errors were encountered: