No prob reviving the dead from my perspective
field:[* TO *]
Should return all the docs that have "field" populated. Negating it
should yield the negative set:
-companynames:[* TO *]
In pure Lucene purely negative queries don't work as the negative set
must be removed by something. So in Lucene syntax, it'd look like:
(-field:[* TO *] AND :)
Kimchy was clever enough to detect pure negatives in ES and do this
implicitly in some cases. Here are more details on when it isn't
On Oct 21, 9:32 am, elasticsearcher elasticsearc...@gmail.com wrote:
However, afterwards, I discovered this syntax:
(-companynames:[* TO *])
Sorry to revive a dead thread but could you explain what you mean by this
syntax? I tried using it as a query string and then I thought maybe a range
query but neither of them retrieved the results I expected.
Thanks for your help.
View this message in context:http://elasticsearch-users.115913.n3.nabble.com/Query-for-null-tp9826...
Sent from the ElasticSearch Users mailing list archive at Nabble.com.