Skip to content

[BUG] Cant use maxAnalyzerOffset correctly #17698

Open
@luisferreira93

Description

@luisferreira93

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

  1. Create a query with HighlightBuilder
  2. Insert a maxAnalyzerOffset
  3. Execute the query on ElasticSearch

Expected behavior

The query should be consumed and the values returned.

Additional Details

Metadata

Metadata

Assignees

No one assigned

    Labels

    SearchSearch query, autocomplete ...etcbugSomething isn't working

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions