lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Haruska <ja...@haruska.com>
Subject Re: Question: force a field must be matched?
Date Thu, 15 Sep 2005 16:36:33 GMT
On 9/15/05, James Huang <metaprgmr@yahoo.com> wrote:
> 
> Suppose I have a book index with field="publisher", field="title", etc.
> I want to search for books only from "Manning", do I have to do anything 
> special? how?
> 

add new BooleanClause(new TermQuery(new Term("publisher","Manning")), true, 
false) to your BooleanQuery

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