You are right I didn't think about it at all to be honest.
-Original Message-
From: karl wettin [mailto:[EMAIL PROTECTED]
Sent: 09 February 2007 10:46
To: java-user@lucene.apache.org
Subject: Re: Empty search
9 feb 2007 kl. 11.34 skrev Kainth, Sachin:
> Yep it is the querypar
do nothing then it would return null. And that would just
cause another exception.
--
karl
-Original Message-
From: karl wettin [mailto:[EMAIL PROTECTED]
Sent: 08 February 2007 18:05
To: java-user@lucene.apache.org
Subject: Re: Empty search
8 feb 2007 kl. 18.46 skrev Kainth, Sachin:
e.org
Subject: Re: Empty search
8 feb 2007 kl. 18.46 skrev Kainth, Sachin:
> Is it my imagination or does lucene produce an error if you present it
> with an empty string to search for?
I presume you are referring to the QueryParser? It sounds about right
that it would throw an except
If you are refering to QueryParser, and if you mean that you want
Lucene to *find everything* when you actually say *search for
nothing*, you could easily extend current Queryparser to suit your
needs:
public class MyQueryParser extends QueryParser
{
public MyQueryParser(String f, Analy
8 feb 2007 kl. 18.46 skrev Kainth, Sachin:
Is it my imagination or does lucene produce an error if you present it
with an empty string to search for?
I presume you are referring to the QueryParser? It sounds about right
that it would throw an exception at some point if you supplied it an