KinoSearch::Posting::RichPosting - Posting with per-position boost.
# RichPosting is used indirectly, by specifying in FieldSpec subclass.
package MySchema::Category;
use base qw( KinoSearch::FieldSpec::TextField );
sub posting {
my $self = shift;
return KinoSearch::Posting::RichPosting->new(@_);
}
RichPosting is similar to ScorePosting, but weighting is per-position rather than per-field. To exploit this, you need a custom Analyzer which assigns varying boosts to individual Token objects.
A typical application for RichPosting is an HTMLAnalyzer which assigns boost based on the visual size and weight of the marked up text: H1 blocks get the greatest weight, H2 blocks almost as much, etc.
KinoSearch::Posting::RichPosting isa KinoSearch::Posting::ScorePosting isa KinoSearch::Posting::MatchPosting isa KinoSearch::Posting isa KinoSearch::Util::Stepper isa KinoSearch::Obj::FastObj isa KinoSearch::Obj.
Copyright 2005-2008 Marvin Humphrey
See KinoSearch version 0.20.