lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: How to exclude words with overlapping patterns?
Date Wed, 29 Feb 2012 09:43:56 GMT
Sounds a bit like the thread starting with

Should be possible with some combination of boosts and should/must/not logic.


On Tue, Feb 28, 2012 at 1:30 AM, ☼ 林永忠 ☼ (Yung-chung Lin)
<> wrote:
> Hi all,
> I have a question. Is there a way to distinguish queries like 'hotel' and
> 'hotel restaurant', queries with overlapping patterns, effectively?
> For example, if I want the search to return 'hotel' in the top 100 results
> while 'hotel restaurant' results come after those of 'hotel', when I search
> for 'hotel'.
> But it returns 'hotel restaurant' in the top results with 'hotel' results
> coming after the top results, when I search for 'hotel restaurant'.
> Thank you very much.
> Yung-chung Lin

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

View raw message