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
I have been using the highlighting when I came across this error message: elasticsearch.exceptions.RequestError: RequestError(400, 'search_phase_execution_exception', 'The length of [myfield] field of [37] doc of [my-index] index has exceeded [1000000] - maximum allowed to be analyzed for highlighting. This maximum can be set by changing the [index.highlight.max_analyzed_offset] index level setting. For large texts, indexing with offsets or term vectors is recommended!')
As suggested in the documentation I tried to set max_analyzed_offset as an option, so the highlighting just stop at a certain point without returning an error message.
However, doing so has returned a different error message. elasticsearch.exceptions.RequestError: RequestError(400, 'x_content_parse_exception', '[1:329] [highlight] unknown field [max_analyzed_offset]')
It seems like this merge has not been implemented in the python client. A fix for this would greatly be appreciated.
A suggestions for a temporary solution would be appreciated
The text was updated successfully, but these errors were encountered:
There might be some confusion about "query" parameter language being used in the documentation you linked to. If I understand the confusion correctly, you think there should be a max_analyzed_offset parameter on the search API for example, but actually the parameter should be placed like so:
Uh oh!
There was an error while loading. Please reload this page.
Describe the feature:
I have been using the highlighting when I came across this error message:
elasticsearch.exceptions.RequestError: RequestError(400, 'search_phase_execution_exception', 'The length of [myfield] field of [37] doc of [my-index] index has exceeded [1000000] - maximum allowed to be analyzed for highlighting. This maximum can be set by changing the [index.highlight.max_analyzed_offset] index level setting. For large texts, indexing with offsets or term vectors is recommended!')
As suggested in the documentation I tried to set
max_analyzed_offset
as an option, so the highlighting just stop at a certain point without returning an error message.However, doing so has returned a different error message.
elasticsearch.exceptions.RequestError: RequestError(400, 'x_content_parse_exception', '[1:329] [highlight] unknown field [max_analyzed_offset]')
It seems like this merge has not been implemented in the python client. A fix for this would greatly be appreciated.
A suggestions for a temporary solution would be appreciated
The text was updated successfully, but these errors were encountered: