ElasticSearch: is there a limit to the size of "terms" when doing a match on multiple values?

Joel Stevick

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".

Jai Sharma

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Elasticsearch Multiple Terms to Boost

From Dev

Elasticsearch multiple values match without analyzer

From Dev

Elasticsearch match on property that has multiple values (array)

From Dev

ElasticSearch match multiple fields with different values

From Dev

Multiple Fields for Prefix in ElasticSearch and auto From and Size limit

From Dev

Multiple Fields for Prefix in ElasticSearch and auto From and Size limit

From Dev

Elasticsearch terms query on array of values

From Dev

In ElasticSearch is there is limit to the number of items in a terms query?

From Dev

SQL - Get multiple values when limit 1

From Dev

elasticsearch - Terms filter with multiple condition

From Dev

Elasticsearch: merge terms query and match query

From Dev

Optional terms in match_phrase elasticsearch

From Dev

Is it possible to limit a size of an Elasticsearch index?

From Dev

Terms filter not matching with multiple values

From Dev

Elasticsearch match multiple fields

From Dev

Elasticsearch match multiple fields

From Dev

Elasticsearch NEST: ordering terms aggregation with multiple criteria

From Dev

Match multiple attribute terms in Wordpress PHP loop

From Dev

Size of a request header field exceeds server limit due to many If-None-Match values

From Dev

Select values with multiple limit

From Dev

LIMIT claus when doing a load more function

From Dev

ElasticSearch: how to combine match phrase prefix with terms prefix?

From Dev

Elasticsearch match exact terms with spaces across different fields

From Dev

How to match query terms containing hyphens or trailing space in elasticsearch

From Dev

Elasticsearch match exact terms with spaces across different fields

From Dev

terms query does not support minimum_match in Elasticsearch 2.3.3

From Dev

Multiple solutions when doing ILP

From Dev

Match on multiple ORed values but know when one using XSLT

From Dev

Elasticsearch uses 100% CPU when doing nothing

Related Related

  1. 1

    Elasticsearch Multiple Terms to Boost

  2. 2

    Elasticsearch multiple values match without analyzer

  3. 3

    Elasticsearch match on property that has multiple values (array)

  4. 4

    ElasticSearch match multiple fields with different values

  5. 5

    Multiple Fields for Prefix in ElasticSearch and auto From and Size limit

  6. 6

    Multiple Fields for Prefix in ElasticSearch and auto From and Size limit

  7. 7

    Elasticsearch terms query on array of values

  8. 8

    In ElasticSearch is there is limit to the number of items in a terms query?

  9. 9

    SQL - Get multiple values when limit 1

  10. 10

    elasticsearch - Terms filter with multiple condition

  11. 11

    Elasticsearch: merge terms query and match query

  12. 12

    Optional terms in match_phrase elasticsearch

  13. 13

    Is it possible to limit a size of an Elasticsearch index?

  14. 14

    Terms filter not matching with multiple values

  15. 15

    Elasticsearch match multiple fields

  16. 16

    Elasticsearch match multiple fields

  17. 17

    Elasticsearch NEST: ordering terms aggregation with multiple criteria

  18. 18

    Match multiple attribute terms in Wordpress PHP loop

  19. 19

    Size of a request header field exceeds server limit due to many If-None-Match values

  20. 20

    Select values with multiple limit

  21. 21

    LIMIT claus when doing a load more function

  22. 22

    ElasticSearch: how to combine match phrase prefix with terms prefix?

  23. 23

    Elasticsearch match exact terms with spaces across different fields

  24. 24

    How to match query terms containing hyphens or trailing space in elasticsearch

  25. 25

    Elasticsearch match exact terms with spaces across different fields

  26. 26

    terms query does not support minimum_match in Elasticsearch 2.3.3

  27. 27

    Multiple solutions when doing ILP

  28. 28

    Match on multiple ORed values but know when one using XSLT

  29. 29

    Elasticsearch uses 100% CPU when doing nothing

HotTag

Archive