I have a "not analyzed" field that contains an integer. Can I use the
query language to compare that integer to something, like 'field' > 0,
'field' < 0, etc?
-Andrei
I have a "not analyzed" field that contains an integer. Can I use the
query language to compare that integer to something, like 'field' > 0,
'field' < 0, etc?
-Andrei
On Tue, 2010-09-07 at 11:01 -0700, Andrei wrote:
I have a "not analyzed" field that contains an integer. Can I use the
query language to compare that integer to something, like 'field' > 0,
'field' < 0, etc?
You can do less-than and greater-than with range filters and queries
And you can combine various ranges together with bool/and/or/not filters
or with bool queries:
http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/
clint
© 2020. All Rights Reserved - Elasticsearch
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.