-
-
27 Oct 2007 19:46:10 UTC
- Development release
- Distribution: KinoSearch
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (5)
- Testers (21 / 5 / 2)
- Kwalitee
Bus factor: 0- License: perl_5
- Activity
24 month- Tools
- Download (460.82KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Marvin Humphrey <marvin at rectangular dot com>
- Dependencies
- Compress::Zlib
- HTML::Parser
- Lingua::Stem::Snowball
- Lingua::StopWords
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
KinoSearch::Search::RangeFilter - Filter search results by range of values.
SYNOPSIS
my $filter = KinoSearch::Search::RangeFilter->new( field => 'date', lower_term => '2000-01-01', upper_term => '2001-01-01', include_lower => 1, include_upper => 0, ); my $hits = $searcher->search( query => $query, filter => $filter, );
DESCRIPTION
RangeFilter allows you to limit search results to documents where the value for a particular field falls within a given range.
METHODS
new
my $filter = KinoSearch::Search::RangeFilter->new( field => 'product_number', # required lower_term => '003', # see below upper_term => '060', # see below include_lower => 0, # default 1 include_upper => 0, # default 1 );
Constructor. Takes 5 hash-style parameters;
field
is required, as is at least one of eitherlower_term
orupper_term
.field - The name of a field which is
indexed
but notanalyzed
.lower_term - Text string for the lower bound. If not supplied, all values less than
upper_term
will pass.upper_term - Text string for the upper bound. If not supplied, all values greater than
lower_term
will pass.include_lower - indicate whether docs which match
lower_term
should be included in the results.include_upper - indicate whether docs which match
upper_term
should be included in the results.
COPYRIGHT
Copyright 2007 Marvin Humphrey
LICENSE, DISCLAIMER, BUGS, etc.
See KinoSearch version 0.20.
Module Install Instructions
To install KinoSearch, copy and paste the appropriate command in to your terminal.
cpanm KinoSearch
perl -MCPAN -e shell install KinoSearch
For more information on module installation, please visit the detailed CPAN module installation guide.