SWISH::Prog::Lucy::Indexer - Swish3 Apache Lucy indexer
use SWISH::Prog::Lucy::Indexer; my $indexer = SWISH::Prog::Lucy::Indexer->new( config => SWISH::Prog::Config->new(), invindex => SWISH::Prog::Lucy::InvIndex->new(), highlightable_fields => 0, );
SWISH::Prog::Lucy::Indexer is an Apache Lucy based indexer class for Swish3.
Only new and overridden methods are documented here. See the SWISH::Prog::Indexer documentation.
Implements basic object set up. Called internally by new(). If you override this method, be sure to call SUPER::init(@_) or the equivalent.
In addition to the attributes documented in SWISH::Prog::Indexer, this class implements the following attributes:
Value should be 0 or 1. Default is 0. Passed directly to the constructor for Lucy::Plan::FullTextField objects as the value for the highlightable option.
highlightable
Overrides base method to parse the doc (a SWISH::Prog::Doc object) with the SWISH::3 parse_buffer() method.
Calls commit() on the internal Lucy::Indexer object, writes the swish.xml header file and calls the superclass finish() method.
swish.xml
Returns the internal Lucy::Index::Indexer object.
Sets the internal Lucy::Index::Indexer to undef, which should release any locks on the index. Also flags the SWISH::Prog::Lucy::Indexer object as stale.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
Please report any bugs or feature requests to bug-swish-prog-lucy at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SWISH-Prog-Lucy. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-swish-prog-lucy at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc SWISH::Prog::Lucy
You can also look for information at:
Mailing list
http://lists.swish-e.org/listinfo/users
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=SWISH-Prog-Lucy
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/SWISH-Prog-Lucy
CPAN Ratings
http://cpanratings.perl.org/d/SWISH-Prog-Lucy
Search CPAN
http://search.cpan.org/dist/SWISH-Prog-Lucy/
Copyright 2009 Peter Karman.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install SWISH::Prog::Lucy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SWISH::Prog::Lucy
CPAN shell
perl -MCPAN -e shell install SWISH::Prog::Lucy
For more information on module installation, please visit the detailed CPAN module installation guide.