lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: how to remove the dash
Date Mon, 25 Jun 2012 13:37:37 GMT
I'm positive that StandardAnalyzer won't change "drinks - water" to
"drinks -water".  So it must be something in your code.  Which you
don't show us.  Best guess is that the changes you've made to the Flex
file have caused the problem.  If you created your tokenizer by
copying and modifying StandardTokenizer you could start again or do a
diff or something.  Good luck.


On Mon, Jun 25, 2012 at 2:40 AM,  <> wrote:
> hi
> I have strings like "drinks - water" and I've read in "Lucene in Action"
> that
> the StandardAnalyzer and other analyzers removes the "-" from the string
> but so far none of them worked... All of them change my string to something
> like
> "drinks -water" so the "-" is used as an "prohibit operator" and this is a
> BIG problem for me.
> I'm using Lucene 3.6.
> I'am also using my own Analyzer, Filters and a Tokenizer based on
> StandardTokenizer with changes
> on the Flex file to remove some othe stuff.
> How can i remove the "-"?
> Thanks
> xpete
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message