lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: How to deal with not analyzed fields and analyzed ones in the same query
Date Mon, 20 Jun 2011 14:43:37 GMT
See PerFieldAnalyzerWrapper, then form your query like
field1:word1 OR field2:word1

Best
Erick

On Mon, Jun 20, 2011 at 10:40 AM, G.Long <jdevgl@gmail.com> wrote:
> Hi :)
>
> I know it is possible to create a query on different fields with different
> analyzers with PerFieldAnalyzer class but is it possible to also include
> fields which are not analyzed ?
>
> I want some fields not to be tokenized (an exact reference of an article for
> example) and others to be tokenized (like the description of the article). I
> would like to be able to search for a word in both fields with one single
> query.
>
> Thank you :)
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message