lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Bredariol Grilo <abgr...@gmail.com>
Subject Re: Search with whitespaces
Date Fri, 25 Sep 2009 17:38:09 GMT
Yes, but I'd like to do it in a generic way. I wouldn't like to search if my
query contains the word "notebook".
Thank you

On Fri, Sep 25, 2009 at 2:33 PM, Zhang, Lisheng <
Lisheng.Zhang@broadvision.com> wrote:

> Hi,
>
> Simplest way is to add one condition (assuming field is f1):
>
> f1:notebook f1:"note book"
>
> which means (notebook OR "note book"), 2nd condition is phrase
> search.
>
> Best regards, Lisheng
>
> -----Original Message-----
> From: Alex Bredariol Grilo [mailto:abgrilo@gmail.com]
> Sent: Friday, September 25, 2009 10:12 AM
> To: java-user@lucene.apache.org
> Subject: Search with whitespaces
>
>
> Hi,
> I'm new to Lucene and I'm trying to do some stuff with Lucene but I have
> some problems.
>
> I have some documents, in which some contain the word notebook written
> separated,  e.g. "some dummy words note book other dummy words". And I'd
> like that when I search notebook, these documents could be found and I'd
> like to do it for a general case, like trying to search the words joining
> the word before or after.
>
> How could I do that? Is there an analyzer which tokenize like that?
>
> Thank you
>
>
> Alex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
Alex

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message