On Wed, Dec 15, 2010 at 3:08 PM, Marvin Humphrey <[email protected]> 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
case

Reply via email to