KSx-Search-WildCardQuery
view release on metacpan or search on metacpan
lib/KSx/Search/RegexpTermQuery.pm view on Meta::CPAN
sub get_value { shift->get_parent->get_boost }
sub sum_of_squared_weights { $raw_impact{+shift}**2 }
sub normalize { # copied from TermQuery
my ( $self, $query_norm_factor ) = @_;
$query_norm_factor{$self} = $query_norm_factor;
# Multiply raw impact by ( tf_q * idf_q / norm_q )
#
# Note: factoring in IDF a second time is correct. See formula.
$normalized_impact{$self}
= $raw_impact{$self} * $idf{$self} * $query_norm_factor;
}
sub make_matcher {
my $self = shift;
return KSx::Search::RegexpTermScorer->new(
# posting_lists => $plists{$self},
@_,
( run in 0.497 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )