Range Type - null values

How is a null value handled in a given range type , ie if doc has field with gte=null and lte=5 and a query looks for the value 4 in the range, will it bring up the doc with the given ranges or not?

if you indexed a document where a field is either missing or set to null, then it is not part of your range. Only document that have this field set, will be part of the range.

You could use the null_value feature in the mapping to change this behaviour.


that doesn't answer how a range type is handled when one of the values is null, ie gte=null & lte=500 and do a search on field for 400 inside the range, what happens?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.