-
-
17 Jun 2009 21:04:37 UTC
- Distribution: KSx-Search-WildCardQuery
- Module version: 0.05
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (2 / 87 / 65)
- Kwalitee
Bus factor: 0- 39.53% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (6.74KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Hash::Util::FieldHash::Compat
- KinoSearch::Analysis::Tokenizer
- KinoSearch::FieldType::FullTextType
- KinoSearch::Indexer
- KinoSearch::Schema
- KinoSearch::Search::Compiler
- KinoSearch::Search::Matcher
- KinoSearch::Search::Query
- KinoSearch::Search::Span
- KinoSearch::Searcher
- KinoSearch::Store::RAMFolder
- Test::More
- base
- strict
- utf8
- warnings
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- SYNOPSIS
- DESCRIPTION
- PERFORMANCE
- METHODS
- PREREQUISITES
- AUTHOR & COPYRIGHT
- ACKNOWLEDGEMENTS
- SEE ALSO
NAME
KSx::Search::RegexpTermQuery - Regular expression term query class for KinoSearch
VERSION
0.05
SYNOPSIS
use KSx::Search::RegexpTermQuery my $query = new KSx::Search::RegexpTermQuery regexp => qr/^foo/, field => 'content', ; $searcher->hits($query); # etc.
DESCRIPTION
This module provides search query objects for KinoSearch that find terms that match a particular regular expression. Note that a query will only match a single term; it is not a regexp match against an entire field.
PERFORMANCE
If a regular expression has a fixed literal prefix anchored to the beginning of the string (e.g., the
foo
inqr/^foo[dl]$/
), only the 'foo' words in the index will be scanned, so this should not be too slow, as long as the prefix is fairly long, or there are sufficiently few 'foo' words. If, however, there is no literal prefix (e.g.,qr/foo/
), the entire index will be scanned, so beware.METHODS
new
This is the constructor. It constructs. Call it with hash-style arguments as shown in the "SYNOPSIS". The
regexp
can be aqr//
thingy or a string.PREREQUISITES
The development version of KinoSearch available at http://www.rectangular.com/svn/kinosearch/trunk, revision 4810 or higher.
AUTHOR & COPYRIGHT
Copyright (C) 2008-9 Father Chrysostomos <sprout at, um, cpan.org>
This program is free software; you may redistribute or modify it (or both) under the same terms as perl.
ACKNOWLEDGEMENTS
Much of the code in this module was plagiarized from Marvin Humphrey's KinoSearch modules.
SEE ALSO
KinoSearch, KinoSearch::Search::Query, KSx::Search::WildCardQuery
Module Install Instructions
To install KSx::Search::WildCardQuery, copy and paste the appropriate command in to your terminal.
cpanm KSx::Search::WildCardQuery
perl -MCPAN -e shell install KSx::Search::WildCardQuery
For more information on module installation, please visit the detailed CPAN module installation guide.