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 <jde...@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-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

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

Reply via email to