lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
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
http://www.mail-archive.com/lucene-user@jakarta.apache.org/msg08849.html.

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


--
Ian.


On Tue, Feb 28, 2012 at 1:30 AM, ☼ 林永忠 ☼ (Yung-chung Lin)
<henearkrxern@gmail.com> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message