Is it possible to filter by an integer field? I want to do an exact value
match.
I have tried Elasticsearch Head to perform test queries. The integer field
is indexed, but I can not perform a match to it: the option is not
available, whereas it is available for the other fields.
I really need to match this field (it is the organization id, which is used
to split the data for our different clients). What are my options?
Yes. The option is available, but unfortunately a little bit hidden in
the docs. For integers you can just use the "term" filter. Example:
Jörg
Am 05.03.13 22:21, schrieb Daniel Gonzalez:
Hi,
Is it possible to filter by an integer field? I want to do an exact
value match.
I have tried Elasticsearch Head to perform test queries. The integer
field is indexed, but I can not perform a match to it: the option is
not available, whereas it is available for the other fields.
I really need to match this field (it is the organization id, which is
used to split the data for our different clients). What are my options?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.