Re: Multiple field searching

2002-03-21 Thread Mehran Mehr
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

Re: Multiple field searching

2002-03-21 Thread Otis Gospodnetic
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

Re: Multiple field searching

2002-03-21 Thread Kelvin Tan
- 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

RE: Multiple field searching

2002-03-20 Thread Aruna Raghavan
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

Re: Multiple field searching

2002-03-20 Thread Tate Jones
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 ));

Re: Multiple field searching

2002-03-20 Thread Kelvin Tan
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

Re: Multiple field searching

2002-03-20 Thread Kelvin Tan
- 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

Multiple field searching

2002-03-19 Thread Tate Jones
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

Re: Multiple field searching

2002-03-19 Thread Kelvin Tan
[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

Re: Multiple field searching

2002-03-19 Thread Otis Gospodnetic
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