I have Indexed some data with the following mapping
- {
- "inventory": {
- "products": {
- "properties": {
- "exp_date": {
- "type": "date",
- "format": "dateOptionalTime"
- },
- "man_date": {
- "type": "date",
- "format": "dateOptionalTime"
- },
- "price": {
- "type": "long"
- },
- "product_description": {
- "type": "string"
- },
- "product_name": {
- "type": "string"
- },
- "quan_available": {
- "type": "long"
- }
- }
- }
- }
- }
Using [108 TO 110] as query string, results unwanted document to be
selected in search result
https://lh4.googleusercontent.com/-BI-JpAj0ymc/U3MmC9YNh2I/AAAAAAAAAYk/gEbNk9wRykc/s1600/ESrange.png
And when I add the field Name to the query string , the result is as
expected.
query string -> price:[108 TO 110] returns correct result as follows
https://lh6.googleusercontent.com/-nx9g-_5RFvA/U3MmzhA4MqI/AAAAAAAAAYs/nxxyMhnvlME/s1600/ESrangewithfieldname.png
Any insight for this problem will be great.
Thanks In Advance.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/29129d48-7b4b-4fe1-afa2-f8746e0e6abb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.