Hi,
I'm, trying to execute a query to find some words, and I'm using

QueryParser queryParser = new MultiFieldQueryParser(new String[] {"tags", "title"}, ProcessConstants.analyzer);
Query query = queryParser.parse("word1 word2 word3");

I want to show the results sorted like this:

first, documents containing all of the three words, and this documents sorted by one of the index fields. Next, documents containing two of the words, also sorted by the same field like before.
And so on.

¿How can I do this?

I wold like to avoid executing several queries of this kind:
"word1 + word2 + word3"
"word1 + word2 - word3"
"word1 - word2 + word3"
"word1 - word2 - word3"
.....

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to