Comparison operator

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