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}) content:xml i have added the fields to the document correctly. Have also tried using the MutipleFieldQueryParser without success. The only query that works is, which is not correct as they are OR's keyword:computers subject:IT content:xml Is anyone having the same problems Thanks in advance Tate -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Multiple field searching
Tate, The correct syntax is something like +(keyword:computers) -(subject:News). HTH. Maybe it would be helpful to add parse(String[] query, String[] fields, Analyzer analyzer) methods into MultiFieldQueryParser? What do you think Otis? Kelvin - Original Message - From: Tate Jones [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}) content:xml i have added the fields to the document correctly. Have also tried using the MutipleFieldQueryParser without success. The only query that works is, which is not correct as they are OR's keyword:computers subject:IT content:xml Is anyone having the same problems Thanks in advance Tate -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Multiple field searching
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 added the fields to the document correctly. Have also tried using the MutipleFieldQueryParser without success. The only query that works is, which is not correct as they are OR's keyword:computers subject:IT content:xml Is anyone having the same problems Thanks in advance Tate -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Lucene Bugs
Hello, --- David Smiley [EMAIL PROTECTED] wrote: I have reported bugs about Lucene in the fall of 2001 but no Lucene developer has responded. I am sending this summary as a reminder. My original message to the mailing list is here: [Lucene-dev] More bugs http://www.geocrawler.com/archives/3/2626/2001/8/0/6409669/ The bugs at SourceForge are here: DateFilter: call enum.next() first DateFilter.java has changed since the report, but I think I found the piece of code that you were referring to. After looking at DateFilter, TermEnum, and FilteredTermEnum it seems to me that next() does not need to be called first. This is not java.util.Enumeration enum, it is TermEnum's enum. Also, if you look at methods next() and term() in FilteredTermEnum you'll see that term() does need to be called first, otherwise the first term would get skipped. I'm not very familiar with this code, but this is what it seems like from looking at it for 7:32 minutes. Otis __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Lucene Bugs
Hello, SegmentTermEnum.clone(), term == null http://sourceforge.net/tracker/index.php?func=detailaid=451315group_id=3922; atid=103922 Aha, this was a bug, indeed, but it looks like this bug has been fixed about 6 months ago: revision 1.2 date: 2001/10/11 15:14:14; author: scottganyo; state: Exp; lines: +1 -1 Fix NullPointerException in clone() method when the Term is null. Otis __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Lucene Bugs
Hello, Has anyone else observed this behaviour? Wrong ordering from Document.fields() http://sourceforge.net/tracker/index.php?func=detailaid=451317group_id=3922; atid=103922 It looks like java.util.Enumeration is used to store the fields, so if Enumeration guarantees order than this should, too. Could you please provide a self-contained test case that I can just put somewhere, compile, and run? I can't compile the snippet in the above bug report. No software is bug free; I just want to help make Lucene better. If I can be of any help, please ask. Thanks! Otis __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]