| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: Small problem in searching, jian chen |
|---|---|
| Next by Date: | Re: Question: force a field must be matched?, James Huang |
| Previous by Thread: | Re: Question: dynamic sorting, Otis Gospodnetic |
| Next by Thread: | Re: Question: force a field must be matched?, James Huang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |