lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felipe Lobo <fel...@jusbrasil.com.br>
Subject Re: Parse multiple fields using Queryparser
Date Mon, 18 Oct 2010 18:18:04 GMT
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.vijay@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

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