Since you say you're new, I'll risk stating the obvious . Do you
know about the BooleanQuery class?
But do note that the TermQuery isn't quite what
you might expect. For instance, making a TermQuery from the
string "this is junk" is different from making three TermQuery
objects, one for each word.
I did this yesterday. Manually appended an extra field to the query. It
works fine.
On 7/26/07, Erik Hatcher <[EMAIL PROTECTED]> wrote:
>
>
> On Jul 25, 2007, at 5:05 PM, Joe Attardi wrote:
> > As far as I can tell, I basically have two options:
> > (1) Manually prepend the field identifier to the
On Jul 25, 2007, at 5:05 PM, Joe Attardi wrote:
As far as I can tell, I basically have two options:
(1) Manually prepend the field identifier to the query text, for
example:
String fullQuery = field + ":" + queryText;
then parse this query normally with QueryParser, OR
(2) Since