How do i increase maxClauseCount in query #2045
-
I am using ElasticsearchRetriever, with ElasticsearchDocumentStore. candidate_documents = retriever.retrieve(
query=q,
top_k=10,
) I get this error
How do I increase the maxClauseCount. or what else can be a better-optimized approach, my query can be very long ranging from 10-5000 characters in length @tholor @tanaysoni guys any clue |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @K-for-Code, |
Beta Was this translation helpful? Give feedback.
Hello @k-for-code,
maxClauseCount
is a parameter of your Elasticsearch instance. Have a look here: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-settings.html It can be set in theelasticsearch.yml
file (inside the configuration folder of ES).