this is the right syntax:
+(keyword:{computers}) AND +(subject:{News}) AND
content:xml
__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
in QueryParser.jj.
Otis
- Original Message -
From: Mehran Mehr [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]; Kelvin
Tan
[EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 8:11 PM
Subject: Re: Multiple field searching
this is the right syntax:
+(keyword:{computers
- Original Message -
From: Otis Gospodnetic [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Friday, March 22, 2002 1:24 AM
Subject: Re: Multiple field searching
--- Kelvin Tan [EMAIL PROTECTED] wrote:
hmmm...really?
My impression was that the ANDs are treated
I use a BooleanQuery and add individual queries to it, it is working for me.
-Original Message-
From: Otis Gospodnetic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 1:59 AM
To: Lucene Users List; [EMAIL PROTECTED]
Subject: Re: Multiple field searching
I'm using
Thanks for all your help.
The only way i could get it to work was the following
BooleanQuery bQuery = new BooleanQuery();
TermQuery tSubject = new TermQuery( new Term( SUBJECT_KEY, subject ));
TermQuery tKeyword = new TermQuery( new Term( KEYWORD_KEY, keyword ));
Tate,
snip
Could not see how the MultiFieldQueryParser could take in multiple
queries. ie. SUBJECT, KEYWORD CONTENT field
have different values to be queried. It only takes a single query.
You're right in that it doesn't. What I'm wondering right now, is if that's
a reasonably common
- Original Message -
From: Otis Gospodnetic [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]; Kelvin Tan
[EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 2:13 PM
Subject: Re: Multiple field searching
Kelvin,
Right now I can't imagine a situation where one would need to pass
hi,
I am trying to search across multiple fields using the following query
+keyword:computers +subject:News content:xml
or
+(keyword:{computers}) +(subject:{News}) content:xml
i have added the fields to the document correctly.
Have also tried using the MutipleFieldQueryParser without
[EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Wednesday, March 20, 2002 3:36 PM
Subject: Multiple field searching
hi,
I am trying to search across multiple fields using the following query
+keyword:computers +subject:News content:xml
or
+(keyword:{computers}) +(subject:{News
I'm using MultiTermQueryParser and it works for me.
Otis
--- Tate Jones [EMAIL PROTECTED] wrote:
hi,
I am trying to search across multiple fields using the following
query
+keyword:computers +subject:News content:xml
or
+(keyword:{computers}) +(subject:{News}) content:xml
i have
10 matches
Mail list logo