AnsweredAssumed Answered

Lucene and Advanced Search

Question asked by netos on Jan 24, 2008
Latest reply on Feb 7, 2008 by andy
hi all.

i have changed the advanced search screen so that i can search for some custom properties of mine in a range search (i.e. from x to y).

i thought it worked fine, i used the same addRangeAttribute method similiar to what is done with dates. the problem is that i found out that lucene searches the property lexicographically and as a result 20 becomes bigger than 108 for example…

does it help if i change the custom property from text to int or long? do i have to go through the entire DB and change the representation there also? can i just tell lucene i am referring to numbers? any idea?


thx, netanel