You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by mitu2009 <mu...@gmail.com> on 2009/03/31 02:16:45 UTC
Lucene analyzer and dots
Is there any way I can make Lucene analyzer not ignore dots in the string??
for example,if my search criteria is: "A.B.C.D",Lucene should give me only
those documents in the search results which have "A.B.C.D" and not
"ABCD"....
--
View this message in context: http://www.nabble.com/Lucene-analyzer-and-dots-tp22795889p22795889.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: Lucene analyzer and dots
Posted by Matthew Hall <mh...@informatics.jax.org>.
Sure, you could simply use a different analyzer, like the
KeywordAnalyzer, or if that doesn't suit your needs, roll your own.
The Analyzer/Tokenizers are setup in such a way that they are pretty
easy to extend, and you can chain their functionality together pretty
easily.
Matt
mitu2009 wrote:
> Is there any way I can make Lucene analyzer not ignore dots in the string??
> for example,if my search criteria is: "A.B.C.D",Lucene should give me only
> those documents in the search results which have "A.B.C.D" and not
> "ABCD"....
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org