The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

LucyX::Search::AnyTermCompiler - Lucy query extension

SYNOPSIS

    # see Lucy::Search::Compiler

METHODS

This class isa Lucy::Search::Compiler subclass. Only new or overridden methods are documented.

new( args )

Returns a new Compiler object.

args may contain optional term_limit key/value pair. If the number of unique values for the relevant field exceeds the limit, a WildcardQuery will be used internally instead of an ORQuery, as an optimization.

get_term_limit

Returns the term_limit set in new.

make_matcher( args )

Returns a Lucy::Search::Matcher-based object.

make_matcher() creates a Lucy::Search::ORQuery or LucyX::Search::WildcardQuery internally based on the terms associated with the parent AnyTermQuery field value, and returns the internal Query's Matcher.

get_child_compiler

Returns the child Compiler, or undef if not defined.

get_weight

Delegates to ChildCompiler child.

get_similarity

Delegates to ChildCompiler child.

normalize

Delegates to ChildCompiler child.

sum_of_squared_weights

Delegates to ChildCompiler child.

highlight_spans

Delegates to ChildCompiler child.

AUTHOR

Peter Karman, <karman at cpan.org>

BUGS

Please report any bugs or feature requests to bug-lucyx-search-wildcardquery at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LucyX-Search-NullTermQuery. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc LucyX::Search::NullTermQuery

You can also look for information at:

COPYRIGHT & LICENSE

Copyright 2013 Peter Karman.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.