lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brisbart Franck <>
Subject Re: boolean operators and score
Date Fri, 09 Jul 2004 07:43:58 GMT
There's no need to sort the words here.
You just have to ensure that the lucene query built is the same for the 
requests that you consider as equivalent.
I mean that if a request 'word1 word2' gives results different than 
'word2 word1', the problem is in your query parser or in the way you 
give the requests to it.
I keep on saying that with the lucene query parser, the requests 'word1 
and word2' & the request 'word2 and word1' are different because of the 
'required' flag.


Niraj Alok wrote:
> Hi Don,
> After months of struggling with lucene and finally achieving the complex
> relevancy desired, the client would kill me if i now make that relevancy all
> lost.
> I am trying to do it with the way Franck suggested by sorting the words the
> user has entered, but otherwise, isn't this a bug of lucene ?
> Regards,
> Niraj
> ----- Original Message -----
> From: "Don Vaillancourt" <>
> To: "Lucene Users List" <>
> Sent: Thursday, July 08, 2004 7:15 PM
> Subject: Re: boolean operators and score
>>What could actually be done is perhaps sort the search result by document
>>id.  Of course your relevancy will be all shot, but at least you would
> have
>>control over the sorting order.

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

View raw message