lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Jain <>
Subject Re: Open-ended range queries
Date Thu, 10 Jun 2004 16:53:29 GMT
> What would you suggest as a way to denote an open end?

'test:[TO 100] test[200 TO]' would seem okay, though this would preclude 
the string 'TO' from being used to begin or end of a range - but who cares?

> FYI - You could override getRangeQuery on a custom QueryParser subclass 
> and implement this yourself.

The problem I see here is that the QueryParser will most likely complain 
already before calling getRangeQuery. Nevertheless useful for padding 
numbers, e.g. '1' to '00000001'.

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

View raw message