Re: Parse multiple fields using Queryparser

2010-10-18 Thread Erick Erickson
You can create your own BooleanQuery and just add clauses as you need to as well... Best Erick On Mon, Oct 18, 2010 at 1:55 PM, Nilesh Vijaywargiay wrote: > I have many fields in my document and want to parse my query including each > of them > > QueryParser parser = new QueryParser(Version.LUC

Re: Parse multiple fields using Queryparser

2010-10-18 Thread Felipe Lobo
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 > I have many fields in my document and want to parse my query including each > of them > > QueryParser parser = new QueryPars

Parse multiple fields using Queryparser

2010-10-18 Thread Nilesh Vijaywargiay
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?