lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nilesh Bansal" <>
Subject Range queries in Lucene - numerical or lexicographical
Date Sat, 11 Aug 2007 20:27:05 GMT
Hi all,

Lucene query parser synax page
( provides
the following two examples of range query:
mod_date:[20020101 TO 20030101]
title:{Aida TO Carmen}

Now my question is, numerically 10 is greater than 2, but in
string-only comparison 2 is greater than 10. So if I search for
field:[10 TO 30]
will a document with field=2 will be in result or not.

And if I search for a string field,
field:[AA TO CC]
will document with field="B" will be in result or not.

The semantics of range is not clear (numerical or lexicographical)
from the documentation.


Nilesh Bansal.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message