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
Using search with list of long named parameters in es.search _source_excludes/_source_includes fails with HTTP 400 'too long http line exception'
Elasticsearch 8.14.1 and python Elasticsearch client 8.14.0
es.search(
...
_source_includes=[... list of fields ...],
_source_excludes=[... list of fields ...],
...
)
POST .../_search:
the _source_excludes/_source_includes are passed as query parameters bloating the http line,
can be passed in request body _source.excludes/_source.includes to avoid this issue
GET _mget:
same solution can be applied
Same issue with GET .../_doc/... but there no easy way around
The text was updated successfully, but these errors were encountered:
Hello, and thanks for your question. Unfortunately, there's nothing I can do with the client, this is the default value in Netty. If you're hosting Elasticsearch yourself, you can tune http.max_initial_line_length wich default to 4096.
Otherwise, you can use the mget API or try to reduce the list of fields, possibly by using regexes.
Using search with list of long named parameters in es.search _source_excludes/_source_includes fails with HTTP 400 'too long http line exception'
Elasticsearch 8.14.1 and python Elasticsearch client 8.14.0
es.search(
...
_source_includes=[... list of fields ...],
_source_excludes=[... list of fields ...],
...
)
POST .../_search:
the _source_excludes/_source_includes are passed as query parameters bloating the http line,
can be passed in request body _source.excludes/_source.includes to avoid this issue
GET _mget:
same solution can be applied
Same issue with GET .../_doc/... but there no easy way around
The text was updated successfully, but these errors were encountered: