lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bmdakshinamurthy@gmail.com" <bmdakshinamur...@gmail.com>
Subject Re: which analyzer for exact matchs
Date Mon, 30 May 2011 15:25:24 GMT
I think you are looking for a keyword analyzer.
http://lucene.apache.org/java/3_0_2/api/core/org/apache/lucene/analysis/KeywordAnalyzer.html

On Mon, May 30, 2011 at 8:48 PM, G.Long <jdevgl@gmail.com> wrote:

> Hello :)
>
> I'm wondering which Analyzer would be the best to query exact value for a
> property. I read the javadoc and it it said that when a document is indexed,
> I could use the Field.Index.NOT_ANALYZED to store the value as is and then I
> would be able to query for it. But in the same time, I need to provide an
> analyzer for the indexWriter constructor and for my queries.
>
> Is it possible to specify that no analyzer should be used for both indexing
> and querying ?
>
> If not, which analyzer would be the best choice?
>
> Thanks for the help :)
> Regards.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
Thanks and Regards,
DakshinaMurthy BM

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message