No- there are various analyzers. StandardAnalyzer is geared toward
searching bodies of text for interesting words -  punctuation is
ripped out. Other analyzers are more useful for "concrete" text. You
may have to work at finding one that leaves punctuation in.

On Wed, Sep 23, 2009 at 2:14 PM, Ensdorf Ken <ensd...@zoominfo.com> wrote:
> Hi-
>
> let's say you have two indexed fields, "F1" and "F2".  F1 uses the 
> StandardAnalyzer, while F2 doesn't.  Now imagine you index a document where 
> you have
>
> F1="A & B"
>
> F2="C + D"
>
> Now imagine you run a query:
>
> (F1:A OR F2:A) AND (F1:B OR F2:B)
>
> in other words, both "A" and "B" must exist in at least one of F1 or F2.  
> This  returns the document in question.  Now imagine you run another query:
>
> (F1:A OR F2:A) AND (F1:& OR F2:&)
>
> Since "&" is removed by the StandardAnalyzer, the parsed query looks like
>
> (F1:A OR F2:A) AND (F2:&)
>
> Now you don't match the document.  Is this a bug?
>
> Thanks!
> -Ken
>
>



-- 
Lance Norskog
goks...@gmail.com

Reply via email to