You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The size of a highlighted fragment, specified as the number of characters. If number_of_fragments is set to 0, fragment_size is ignored. Default is 100.
The maximum number of returned fragments. If number_of_fragments is set to 0, OpenSearch returns the highlighted contents of the entire field. Default is 5.
In this case, "Test. DevPage_1" satisfies the default 100 character fragment size, yet the highlight is only returning "DevPage_1".
Edds390
changed the title
[BUG] Highlight behavior not working as expected for fields with periods (.)
[BUG] Highlight behavior not working as expected for fields with periods (.) as part of their values
Jun 17, 2024
Describe the bug
Documents that follow a pattern such as:"Test. DevPage_1" does not return the full field in the highlights block returned, despite default settings being applied.
As per https://opensearch.org/docs/latest/search-plugins/searching-data/highlight/#:~:text=If%20number_of_fragments%20is%20set%20to,Default%20is%205.
In this case, "Test. DevPage_1" satisfies the default 100 character fragment size, yet the highlight is only returning "DevPage_1".
Related component
Search
To Reproduce
Index a document with title "Test. DevPage_1"
Search the document with highlights enabled:
This returns a response with the full title omitted.
Expected behavior
Expected the full field to be returned in the highlight i.e. "Test. DevPage_1"
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: