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
er part of the 'i_title' field or 'i_description' 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_de

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