This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

lucene - range search - numerical values

Questions relating to sfLucenePlugin, sfSearch etc

lucene - range search - numerical values

by andys » Mon Jul 05, 2010 7:30 pm

Hi,

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?
andys
Junior Member
 
Posts: 8
Joined: Tue Jan 12, 2010 8:29 pm