lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin L. Cobb" <>
Subject RE: Help with Search Java Code set up
Date Wed, 26 Oct 2005 17:39:17 GMT
It well could be that I'm lacking in setting up my queries. Here's the
gist of what I'm trying to do, it a little pseudocode. 

1. inputs: 1) termToSearch 2) keywordField
2. Use MultiFieldQueryParser to build the query for the termToSearch in
the searchable fields
3. Use QueryParser to build the query for the keywordField (only one
field to search)
4. Can I combine these separate queries together into one? 



-----Original Message-----
From: Jeff Rodenburg [] 
Sent: Wednesday, October 26, 2005 1:04 PM
Subject: Re: Help with Search Java Code set up

Kevin -

Maybe I'm misunderstanding, but how is this not a BooleanQuery with two

- j

On 10/26/05, Kevin L. Cobb <> wrote:
> I've been using Lucene happily for a couple of years now. But, this 
> new search functionality I'm trying to add is somewhat different that 
> what I'm used to doing. Would help if the smart folks on this list 
> would drive me in the right direction.
> I have several "searchable" fields and one keyword field in my index. 
> I usually work with EITHER the keyword or the searchable (non-keyword)

> fields at a time, but this time I want to deal with them together. I 
> need to be able to do a term search in the "searchable" fields but at 
> the same time apply another term to the keyword field.
> At this point, I'm thinking that I'll need to do two distinct 
> searches, one using the search term in what I'm calling my searchable 
> fields, and the other using the other term in the keyword field. Then 
> join the two HIT lists together.
> Looking for some advice.
> Thanks,
> Kevin

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message