java-user@lucene.apache.org
[Top] [All Lists]

Re: Question: force a field must be matched?

Subject: Re: Question: force a field must be matched?
From: Jason Haruska
Date: Thu, 15 Sep 2005 12:36:33 -0400
On 9/15/05, James Huang <metaprgmr@xxxxxxxxx> 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
<Prev in Thread] Current Thread [Next in Thread>