Re: lucene search options

2008-12-08 Thread no spam
Yes I've seen that syntax too used to search for null values. You can do -(reporter:* AND -reporter:[* to *]) which says all values minus docs with a value. Your suggestion did the trick, thanks! On Mon, Dec 8, 2008 at 11:40 AM, Erick Erickson <[EMAIL PROTECTED]>wrote: > That'll teach me to scan

Re: lucene search options

2008-12-08 Thread no spam
The way I got that query was doing: new MatchAllDocsQuery().toString(). I thought the "matchalldocsquery" part was a bit odd but figured it might be a known keyword with lucene. Thanks for the help! On Mon, Dec 8, 2008 at 11:40 AM, Erick Erickson <[EMAIL PROTECTED]>wrote: > That'll teach me t

Re: lucene search options

2008-12-08 Thread Erick Erickson
That'll teach me to scan e-mail. You can't use MatchAllDocsQuery that way. What you're actually searching for is the word "matchalldocsquery" in the field "summary". Which returns nothing. Then you're subtracting any documents with reporter *mark*. That isn't what you're after at all. If you're do

Re: lucene search options

2008-12-08 Thread no spam
Yes that is set. It works if I do a query like this: status:* -reporter:*mark* The status field only has a few possible values. On Mon, Dec 8, 2008 at 10:54 AM, Erick Erickson <[EMAIL PROTECTED]>wrote: > Have you enabled leading wildcards? They are not (or at least weren't > last I knew) enabl

Re: lucene search options

2008-12-08 Thread Erick Erickson
Have you enabled leading wildcards? They are not (or at least weren't last I knew) enabled by default <<>> from http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-4d62118417eaef0dcb87f4370583f809848ea695 Best Erick On Mon, Dec 8, 2008 at 10:24 AM, no spam <[EMAIL PROTECTED]> wrote: > T

Re: lucene search options

2008-12-08 Thread no spam
The reason our users want to do this is because they want to search for instances where certain negative conditions are true. My client is the news industry and this is metadata for things like reporter, type, etc. Sometimes you want -reporter:mark for example and this is the only criteria to sea

Re: lucene search options

2008-12-07 Thread Erick Erickson
rm Regards, > > > > Allahbaksh > > > > > > > > Allahbaksh Mohammedali Asadullah, > > > > Software Engineering & Technology Labs, > > > > Infosys Technolgies Limited, Electronics City, > > > > Hosur Road, Bangalore 560 10

Re: lucene search options

2008-12-06 Thread Anshum
100, India. > > > *Board: +91-80-28520261 | Extn: 53915 | Direct: 41173915. > > > Fax: +91-80-28520362 | Mobile: +91-9845505322. > > > http://setlabs/slim/ > > > http://allahbaksh.blogspot.com > > > > > > > > > -Original Message---

Re: lucene search options

2008-12-06 Thread no spam
ore 560 100, India. > > *Board: +91-80-28520261 | Extn: 53915 | Direct: 41173915. > > Fax: +91-80-28520362 | Mobile: +91-9845505322. > > http://setlabs/slim/ > > http://allahbaksh.blogspot.com > > > > > > -Original Message- > > From: Aditi Goy

Re: lucene search options

2008-12-06 Thread no spam
ad, Bangalore 560 100, India. > > *Board: +91-80-28520261 | Extn: 53915 | Direct: 41173915. > > Fax: +91-80-28520362 | Mobile: +91-9845505322. > > http://setlabs/slim/ > > http://allahbaksh.blogspot.com > > > > > > -Original Message- > > From: Adit

Re: lucene search options

2008-06-24 Thread Chris Hostetter
: I am using MultiFieldQueryParser. Can I use setAllowLeadingWildCard with : MultiFieldQueryParser?I am doing the following: : : parser = lucene.MultiFieldQueryParser(fields, analyzer ) : parser.setAllowLeadingWildcard(True) : query = parser.parse(command) : :

Re: lucene search options

2008-06-23 Thread Daniel Noll
On Monday 23 June 2008 18:08:29 Aditi Goyal wrote: > Oh. For one moment I was elated to hear the news. :( > Is there any way out? *:* -"jakarta apache" Or subclass QueryParser and override the getBooleanQuery() method to do this behind the scenes using MatchAllDocsQuery. Daniel ---

Re: lucene search options

2008-06-23 Thread saikrishna venkata pendyala
Hi Aditi, As Rohit said, the best way to solve this problem is to have two fields for indexing an email-id, one for the username and another for domain name. Having two fields and using a Boolean Query with MUST condition should solve your problem. You can also perform restricted search with the

Re: lucene search options

2008-06-23 Thread rohit saini
Hi aditi, U can have a field corresponding to this domainIt will solve ur problem.. bye Rohit Impetus technologies- noida mob. 09910220475 On 6/23/08, Aditi Goyal <[EMAIL PROTECTED]> wrote: > > Hi All, > > I am using Lucene for creating indexes. There is one field as "email" which > st

Re: lucene search options

2008-06-23 Thread Aditi Goyal
60 100, India. >> *Board: +91-80-28520261 | Extn: 53915 | Direct: 41173915. >> Fax: +91-80-28520362 | Mobile: +91-9845505322. >> http://setlabs/slim/ >> http://allahbaksh.blogspot.com >> >> >> -Original Message- >> From: Allahbaksh Mohammedali

Re: lucene search options

2008-06-23 Thread Aditi Goyal
1-9845505322. > http://setlabs/slim/ > http://allahbaksh.blogspot.com > > > -Original Message- > From: Allahbaksh Mohammedali Asadullah [mailto: > [EMAIL PROTECTED] > Sent: Monday, June 23, 2008 1:25 PM > To: java-user@lucene.apache.org > Subject: RE: lucene search options > &

RE: lucene search options

2008-06-23 Thread Allahbaksh Mohammedali Asadullah
Fax: +91-80-28520362 | Mobile: +91-9845505322. http://setlabs/slim/ http://allahbaksh.blogspot.com -Original Message- From: Allahbaksh Mohammedali Asadullah [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 1:25 PM To: java-user@lucene.apache.org Subject: RE: lucene search options

RE: lucene search options

2008-06-23 Thread Allahbaksh Mohammedali Asadullah
0362 | Mobile: +91-9845505322. http://setlabs/slim/ http://allahbaksh.blogspot.com -Original Message- From: Aditi Goyal [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 1:24 PM To: java-user@lucene.apache.org Subject: Re: lucene search options Thank you Allahbaksh for taking so much p

Re: lucene search options

2008-06-23 Thread Aditi Goyal
llahbaksh.blogspot.com > > > -Original Message- > From: Aditi Goyal [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2008 12:06 PM > To: java-user@lucene.apache.org > Subject: Re: lucene search options > > Thanks a lot Daniel, I will try this option. :) > Is ther

RE: lucene search options

2008-06-23 Thread Allahbaksh Mohammedali Asadullah
8 12:06 PM To: java-user@lucene.apache.org Subject: Re: lucene search options Thanks a lot Daniel, I will try this option. :) Is there a way to search for not equal to query alone? On Mon, Jun 23, 2008 at 12:03 PM, Daniel Noll <[EMAIL PROTECTED]> wrote: > On Monday 23 June 2008 16:21:1

Re: lucene search options

2008-06-22 Thread Aditi Goyal
Thanks a lot Daniel, I will try this option. :) Is there a way to search for not equal to query alone? On Mon, Jun 23, 2008 at 12:03 PM, Daniel Noll <[EMAIL PROTECTED]> wrote: > On Monday 23 June 2008 16:21:17 Aditi Goyal wrote: > > I think wildcard (*) cannot be used in the beginning :( > > Wron

RE: lucene search options

2008-06-22 Thread Allahbaksh Mohammedali Asadullah
: Re: lucene search options On Monday 23 June 2008 16:21:17 Aditi Goyal wrote: > I think wildcard (*) cannot be used in the beginning :( Wrong: http://lucene.apache.org/java/2_3_0/api/core/org/apache/lucene/queryParser/QueryParser.html#setAllowLeadingWildcard(boolean)

RE: lucene search options

2008-06-22 Thread Allahbaksh Mohammedali Asadullah
M To: java-user@lucene.apache.org Subject: Re: lucene search options Thanks Allahbaksh, But this was just an example. I want to search for lot more fields like this. On Mon, Jun 23, 2008 at 11:55 AM, Allahbaksh Mohammedali Asadullah < [EMAIL PROTECTED]> wrote: > One way of doing it is

Re: lucene search options

2008-06-22 Thread Daniel Noll
On Monday 23 June 2008 16:21:17 Aditi Goyal wrote: > I think wildcard (*) cannot be used in the beginning :( Wrong: http://lucene.apache.org/java/2_3_0/api/core/org/apache/lucene/queryParser/QueryParser.html#setAllowLeadingWildcard(boolean) Daniel ---

Re: lucene search options

2008-06-22 Thread Aditi Goyal
Thanks Allahbaksh, But this was just an example. I want to search for lot more fields like this. On Mon, Jun 23, 2008 at 11:55 AM, Allahbaksh Mohammedali Asadullah < [EMAIL PROTECTED]> wrote: > One way of doing it is while parsing email if it has .gmail.com add it to > different field also. > Wa

RE: lucene search options

2008-06-22 Thread Allahbaksh Mohammedali Asadullah
One way of doing it is while parsing email if it has .gmail.com add it to different field also. Warm Regards, Allahbaksh Allahbaksh Mohammedali Asadullah, Software Engineering & Technology Labs, Infosys Technolgies Limited, Electronics City, Hosur Road, Bangalore 560 100, India. *Board: +91-80-285