query: { term_query: { fields: ["id"], operator: "is", values: ["my_id"] } }Example: (id IN ("my_id","other_id"))
query: { term_query: { fields: ["id"], operator: "one_of", values: ["my_id","other_id"] } }Example: (id=null)
query: { term_query: { fields: ["description"], operator: "is_null" } }Example: ((id IN ('generic', 'keyword')) OR (description IN ('generic', 'keyword'))
query: { term_query: { fields: ["id", "description"], operator: "one_of", values: ["generic","keyword"] } }
Property | Type | Constraints | Description |
---|---|---|---|
fields
|
[String] | mandatory=true, minItems=1, nullable=false | The document field(s), the value(s) are matched against, combined with the operator. |
operator
|
Enum {is, one_of, is_null, is_not_null, less, greater, not_in, neq} | mandatory=true, nullable=false | Returns the operator to use for the term query. |
values
|
[Object] | The values, the field(s) are compared against, combined with the operator. |