Re: Search with whitespaces

2009-09-29 Thread Robert Muir
Alex, to fix your compile problem, check to see if you have lucene 2.9 core in your classpath. The analyzers contrib depends upon this. If you fix it so you can change TOKEN_SEPARATOR, maybe you want to submit a patch? :) On Tue, Sep 29, 2009 at 12:39 PM, Alex Bredariol Grilo wrote: > To use Shi

Re: Search with whitespaces

2009-09-29 Thread Alex Bredariol Grilo
To use ShingleFilter, I'd like to change its TOKEN_SEPARATOR, but it's final. Furthermore, I tryed to compile its source code but the compiler isn't finding some methods like addAtribute. Does someone know how could I do that? Alex On Fri, Sep 25, 2009 at 2:42 PM, Robert Muir wrote: > i might s

Re: Search with whitespaces

2009-09-25 Thread Robert Muir
i might suggest the shingle package in lucene's contrib for this case. > 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 > > > > --

Re: Search with whitespaces

2009-09-25 Thread Alex Bredariol Grilo
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

RE: Search with whitespaces

2009-09-25 Thread Zhang, Lisheng
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,