RE: Lucene multifield query problem

2007-12-19 Thread Rakesh Shete
java-user@lucene.apache.org > Subject: Re: Lucene multifield query problem > > Hi Rakseh, > > It just occurred to me that your code has > String searchCriteria = "Indoor*"; > > Assuming StandardAnalyzer used at indexing time, all text words were > lowercased.

RE: Lucene multifield query problem

2007-12-18 Thread Steven A Rowe
oleanClause.Occur.MUST_NOT);booleanQuery.add(topicQuery, > BooleanClause.Occur.MUST); > > This produces the following query: > +(i_title:Indoor* i_description:Indoor*) -i_published:false > +i_topicsClasses.id:1_1_*_* > But no results are fetched :( > > Any hints if am

Re: Lucene multifield query problem

2007-12-18 Thread Doron Cohen
> BooleanClause.Occur.MUST);booleanQuery.add(q3, > BooleanClause.Occur.MUST_NOT);booleanQuery.add(topicQuery, > BooleanClause.Occur.MUST); > > This produces the following query: > +(i_title:Indoor* i_description:Indoor*) -i_published:false > +i_topicsClasses.id:1_1_

RE: Lucene multifield query problem

2007-12-18 Thread Rakesh Shete
e, 18 Dec 2007 23:09:09 +0200 > From: [EMAIL PROTECTED] > To: java-user@lucene.apache.org > Subject: Re: Lucene multifield query problem > > Hi Rakesh, > > Perhaps the confusion comes from the asymmetry > between +X and -X. I.e., for the query: > A B -C +D > one

Re: Lucene multifield query problem

2007-12-18 Thread Doron Cohen
escription' field, > > eliminate if not published (-i_published:false) but should > > have topic id of the form "1_1_*_*" (i_topicsClasses.id:1_1_*_*) > > > > i_title:indoor* i_description:indoor* -i_published:false > > +i_topicsClasses.id:1_1_*_* returns me

RE: Lucene multifield query problem

2007-12-18 Thread Steven A Rowe
false > +i_topicsClasses.id:1_1_*_* returns me extra results which > should not be fetched. > > -- Regards, > Rakesh Shete > > > Subject: RE: Lucene multifield query problem > > Date: Tue, 18 Dec 2007 13:26:24 -0500 > > From: [EMAIL PROTECTED] > > To:

RE: Lucene multifield query problem

2007-12-18 Thread Rakesh Shete
-i_published:false) but should have topic id of the form "1_1_*_*" (i_topicsClasses.id:1_1_*_*) i_title:indoor* i_description:indoor* -i_published:false +i_topicsClasses.id:1_1_*_* returns me extra results which should not be fetched. -- Regards, Rakesh Shete > Subject: RE: Luce

RE: Lucene multifield query problem

2007-12-18 Thread Steven A Rowe
Hi Rakesh, Set the default QueryParser operator to AND (default default operator :) is OR): Steve On 12/18/2007 at 1:22 PM, Rakesh Shet

Lucene multifield query problem

2007-12-18 Thread Rakesh Shete
Hi all, I am facing problem with the following multifield query: i_title:indoor* i_description:indoor* -i_published:false +i_topicsClasses.id:1_1_*_* The above query returns me even results which should not be there. Ideally I would like the query resullts as: (i_title:indoor* i_description: