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
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
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
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
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
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
rm Regards,
> > > > Allahbaksh
> > > >
> > > > Allahbaksh Mohammedali Asadullah,
> > > > Software Engineering & Technology Labs,
> > > > Infosys Technolgies Limited, Electronics City,
> > > > Hosur Road, Bangalore 560 10
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---
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
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
: 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)
:
:
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
---
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
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
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
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
>
&
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
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
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
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
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
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)
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
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
---
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
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
26 matches
Mail list logo