My use case: I am using a graph database to determine access/visibility to documents in my ElasticSearch index. I would like to be able to execute a compound search query with a clause that will use an array of "visible" documents ("terms"), where each entry in "terms" will match an id for a document in the index.
Is there any sort of upper-bound to the size of this array? I am expecting that a typical query may have 1000s of "terms".
If you want to get 1000 matching documents, there are two way to do it. The first method is the one you mentioned - using the size parameter. This will create problems as your size number keeps increasing. Its advisable to use the helpers.scan method and iterate over the cursor returned.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments