|lucene - range search - numerical values [message #102028]
||Mon, 05 July 2010 19:30
Registered: January 2010
I have a really frustrating problem.
In Zend_Search_Lucene, I store price as keyword
I've tried to make range queries, but I've noticed that it returns items from outside of the range. For example:
3 items in index with prices: 0,500,600000
And now when I use this query: price:[4000 TO 6000], it return item with price of 500.
As far I've red it uses lexicographical comparison, so the price is in its range.
Any ideas how to solve this issue?