07 Mar 2007 06:17:55 UTC
- Development release
- Distribution: KinoSearch
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (5)
- Testers (1 / 2 / 0)
- KwaliteeBus factor: 0
- License: perl_5
- Activity24 month
- Download (367.35KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCREAMYG Marvin Humphreyand 1 contributors
- Marvin Humphrey <marvin at rectangular dot com>
KinoSearch::Search::RangeFilter - Filter search results by range of values.
my $filter = KinoSearch::Search::RangeFilter->new( field => 'date', lower_term => '2000-01-01', upper_term => '9999-01-01', include_lower => 1, include_upper => 1, ); my $hits = $searcher->search( query => $query, filter => $filter, );
Range filter allows you to limit search results to documents where the value for a particular field falls within a given range.
my $filter = KinoSearch::Search::RangeFilter->new( field => 'product_number', # required lower_term => '003', # required upper_term => '060', # required include_lower => 1, # required include_upper => 1, # required );
Constructor. Takes 5 hash-style parameters, all of which are required.
field - The name of a field which is
lower_term - Text string for the lower bound.
lower_term - Text string for the upper bound.
include_lower - indicate whether docs which match the lower bound should be included in the results.
include_upper - indicate whether docs which match the upper bound should be included in the results.
Copyright 2007 Marvin Humphrey
See KinoSearch version 0.20.