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.zh...@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:abgr...@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-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- Alex