Open
Description
Describe the bug
Hello, I am executing a query to ElasticSearch but when setting the following highlights with your HighLightBuilder, like this:
highlightBuilder.preTags("")
.postTags("")
.fragmentSize(h.getSize())
.noMatchSize(h.getSize())
.numOfFragments(1)
.maxAnalyzerOffset(1_000_000);
The following message is returned:
OpenSearchStatusException[OpenSearch exception [type=x_content_parse_exception, reason=[1:2314] [highlight] unknown field [max_analyzer_offset] did you mean [max_analyzed_offset]?]]
I believe the name of the field is set wrong in the builder. Can someone help?
Related component
Search
To Reproduce
- Create a query with HighlightBuilder
- Insert a maxAnalyzerOffset
- Execute the query on ElasticSearch
Expected behavior
The query should be consumed and the values returned.
Additional Details
Metadata
Metadata
Assignees
Type
Projects
Status
🆕 New