lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Davis <jada...@gmail.com>
Subject Re: non-lexical comparisons
Date Thu, 07 Jul 2005 19:13:02 GMT
Have you considered left-padding your numbers with zeros to make each
number a string of the same length?

e.g., The number 5 would be indexed/queried as "00005", which can be
correctly compared to 10 ("00010"), 2345 ("02345"), etc. in a lexical
comparison...

Jeff

On 7/7/05, Leos Literak <literakl@seznam.cz> wrote:
> I know the answear, but just for curiosity:
> 
> have you guys ever thought about non-lexical comparison
> support? For example I started to index number of replies
> in discussion, so I can find questions without answear,
> with one reply, two comments etc. But I cannot simply
> express that I want to find questions with more than five
> comments (there are ways using regexp, but I dont consider
> them as simple).
> 
> Probably such feature belongs to RDBMS rather than to fulltext
> library .. I am just interested in you opinion. (I expect,
> that my users will raise the question, why they cannot use
> such condition so I ask in advance).
> 
> Leos
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message