• NAME
  • SYNOPSIS
  • DESCRIPTION
  • INHERITANCE
  • COPYRIGHT
  • LICENSE, DISCLAIMER, BUGS, etc.

NAME

KinoSearch::Posting::RichPosting - Posting with per-position boost.

SYNOPSIS

    # 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(@_);
    }

DESCRIPTION

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.

INHERITANCE

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

Copyright 2005-2008 Marvin Humphrey

LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch version 0.20.

Copyright © 2004-2008 Marvin Humphrey