You can use *MultiFieldQueryParser*.

http://lucene.apache.org/java/2_9_3/api/all/org/apache/lucene/queryParser/MultiFieldQueryParser.html

2010/10/18 Nilesh Vijaywargiay <nilesh.vi...@gmail.com>

> I have many fields in my document and want to parse my query including each
> of them
>
> QueryParser parser = new QueryParser(Version.LUCENE_29, "Field2",new
> StandardAnalyzer(Version.LUCENE_29));
>
> Should I create multiple parsers in this case or is there any other way
> round?
>



-- 
Felipe Lobo
www.jusbrasil.com.br

Reply via email to