lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aviran Mordo" <>
Subject RE: Range Query
Date Mon, 28 Apr 2003 15:19:03 GMT
Well I use the toString() method to store the query in the result page
in order to run the same query to get the next page.
The reason that I use the toString method this way is because the query
can be very complicated and consists of several Query objects
(TermQuery, BooleanQuery, RangeQuery and plain ParsedQuery) combined
together in one BooleanQuery. So this way I build the query object once
according to the parameters that the user specified, and by using the
toString() method I store the query string in the result page so when
the user hit next page I can requery and get the next page, because at
this point I don't have the original query parameters which can be a
very long list of fields and values. Unless there is a better way of
doing it?

As for your question what is lo0ddiz2jml. This is a DateField


-----Original Message-----
From: Otis Gospodnetic [] 
Sent: Monday, April 28, 2003 11:02 AM
To: Lucene Users List
Subject: Re: Range Query


Yes, it looks like there is a discrepency between QueryParser's Range
Query syntax and RangeQuery.toString() method. I can change the latter,
but who uses toString() for anything other than human-friendly

What I wonder is why that Term, lo0ddiz2jml, oks like gibberish?


--- Aviran Mordo <> wrote:
> Hi All,
> I have submitted a bug report on this issue to bugzilla, but since I 
> haven't got any response to it I ask you guys
> When the RangeQuery.toString() outputs. The result is something like
> this: "PostDate:[0ddiz2jml-null]"
> But the QueryParser does not handles the (-) sign (Throws and 
> exception), it expects the "TO" keyword. So in order for it to parse 
> the string.
> The String has to be converted to "PostDate:[0ddiz2jml TO null]" 
> instead of "PostDate:[0ddiz2jml-null]"
> Is this a BUG?
> BTW: I use Lucene 1.3-RC1
> Thanks,
> Aviran Mordo

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

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

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

View raw message