Aleksandar Radovanovic wrote on 7/1/13 6:38 AM:
> Great work Peter! Thank you!
> 
> And, ... :-) just wondering, is there a way one ca use NullTermQuery /
> AnyTermQuery to return all records for an empty query string? 


The classes themselves do not require a query term. They just require a field 
name.

 my $null_query = LucyX::Search::NullTermQuery->new( field => 'foo' );

Or are you asking if the query parser supports this syntax:

 foo:

instead of:

 foo:NULL

I.e., the empty string and the undef value are considered equivalent to NULL.


> Also, is there a
> way to query multiple fields?
> 

sure. join them with OR or AND.

 foo:NULL or bar:NULL


-- 
Peter Karman  .  http://peknet.com/  .  [email protected]

Reply via email to