lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <>
Subject Re: [lucy-dev] Re: [KinoSearch] Stopwords and AND queries
Date Thu, 16 Dec 2010 17:42:53 GMT
On Wed, Dec 15, 2010 at 3:08 PM, Marvin Humphrey <> wrote:
> On Wed, Dec 15, 2010 at 04:28:54PM +0100, Nick Wellnhofer wrote:
>> I only had a cursory glance at the code and it seems that returning NULL
>> is the easiest approach though it looks a bit hackish. Introducing a new
>> VoidQuery class is probably the cleanest solution but I guess it
>> requires a lot more additional code.

FWIW (definitely not trying to imply its the best!), NULL is what
lucene-java does if the Analyzer returns zero tokens.
This means it has to be careful too in all the other processing, for
example the code that applies boost has to handle the query == null

View raw message