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.


Franck

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" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to