lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: AND / OR mutiple term queris
Date Fri, 16 May 2003 14:51:06 GMT
The better the match, the closer the result to the beginning of the
Hits, so the document that has all the terms should be listed before
those documents that are matched only partially.

Note that you do not need to use both AND and + in your query string.


--- Xavier Guardiola <> wrote:
> Hi all,
> I've got a question regarding how Lucene priorizes complex --like
> "yoggy
> drop the honey pot"-- query results.
> I wanted lucene to show first those results having ALL terms. By
> default
> lucene doesn't do this, so I transform all user queries to + AND
> ("+yoggy
> AND +drop AND +the AND +honey AND +pot"). It works nicely. However
> now I
> face the need to show AFTER the ALL-terms-results those results where
> of the terms do appear. Is there a way of doing that easily?
> Thanks!
> --    Today's fortune:
> I never cheated an honest man, only rascals.  They wanted something
> for
> nothing.  I gave them nothing for something.
>                 -- Joseph "Yellow Kid" Weil
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

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

View raw message