lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29256] - RangeQuery when no upperbound is set does'nt find anything
Date Sat, 29 May 2004 15:23:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29256>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29256

RangeQuery when no upperbound is set does'nt find anything

jakarta@ehatchersolutions.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From jakarta@ehatchersolutions.com  2004-05-29 15:23 -------
Since when does "" == null?

QueryParser itself cannot deal with open ended range queries - you have to provide a concrete

beginning and ending term.  Using "" as the begin works because nothing is less than that.
 But using "" 
as the end term is like saying a range like this [m TO a] - it just doesn't make sense since
the ending 
term is less than the beginning term and nothing will be in that range.

RangeQuery API, however, does allow you to put null (again, NOT "") for a begin or end value
leaving an 
end open.

I'm closing this issue as INVALID.

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


Mime
View raw message