You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2010/11/03 04:31:40 UTC
[lucy-commits] svn commit: r1030323 [1/2] - in /incubator/lucy/trunk/perl/lib: KSx/
KSx/Index/ KSx/Remote/ KSx/Search/ KinoSearch/ KinoSearch/Analysis/
KinoSearch/Document/ KinoSearch/Highlight/ KinoSearch/Index/
KinoSearch/Index/Posting/ KinoSearch/Object/ KinoSearc...
Author: marvin
Date: Wed Nov 3 03:31:37 2010
New Revision: 1030323
URL: http://svn.apache.org/viewvc?rev=1030323&view=rev
Log:
Change over all synopsis POD documentation to use Lucy and LucyX instead of
KinoSearch and KSx.
Modified:
incubator/lucy/trunk/perl/lib/KSx/Index/ByteBufDocReader.pm
incubator/lucy/trunk/perl/lib/KSx/Index/ByteBufDocWriter.pm
incubator/lucy/trunk/perl/lib/KSx/Index/LongFieldSim.pm
incubator/lucy/trunk/perl/lib/KSx/Index/ZlibDocReader.pm
incubator/lucy/trunk/perl/lib/KSx/Index/ZlibDocWriter.pm
incubator/lucy/trunk/perl/lib/KSx/Remote/SearchClient.pm
incubator/lucy/trunk/perl/lib/KSx/Remote/SearchServer.pm
incubator/lucy/trunk/perl/lib/KSx/Search/Filter.pm
incubator/lucy/trunk/perl/lib/KSx/Search/MockScorer.pm
incubator/lucy/trunk/perl/lib/KSx/Search/ProximityQuery.pm
incubator/lucy/trunk/perl/lib/KSx/Simple.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/CaseFolder.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/PolyAnalyzer.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Stemmer.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Stopalizer.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Token.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Tokenizer.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Document/Doc.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Highlight/HeatMap.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Highlight/Highlighter.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/BackgroundMerger.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/DocReader.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/IndexManager.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/IndexReader.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/Indexer.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/Lexicon.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/LexiconReader.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/PolyReader.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/MatchPosting.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/RichPosting.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/ScorePosting.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/PostingList.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/PostingListReader.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/SegReader.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/Segment.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/Similarity.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Index/Snapshot.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Object/BitVector.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Object/Err.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Object/Obj.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Architecture.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Plan/BlobType.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Float32Type.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Float64Type.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Plan/FullTextType.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Int32Type.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Int64Type.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Schema.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Plan/StringType.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/ANDQuery.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/Collector.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/Collector/BitCollector.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/Compiler.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/IndexSearcher.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/LeafQuery.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/MatchAllQuery.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/NOTQuery.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/NoMatchQuery.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/ORQuery.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/PhraseQuery.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/PolyQuery.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/PolySearcher.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/Query.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/QueryParser.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/RangeQuery.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/RequiredOptionalQuery.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/Searcher.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/SortRule.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/SortSpec.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/Span.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Search/TermQuery.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Store/FSFolder.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Store/Lock.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Store/LockErr.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Store/LockFactory.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Store/RAMFolder.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Test.pm
incubator/lucy/trunk/perl/lib/KinoSearch/Util/Debug.pm
Modified: incubator/lucy/trunk/perl/lib/KSx/Index/ByteBufDocReader.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KSx/Index/ByteBufDocReader.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KSx/Index/ByteBufDocReader.pm (original)
+++ incubator/lucy/trunk/perl/lib/KSx/Index/ByteBufDocReader.pm Wed Nov 3 03:31:37 2010
@@ -94,11 +94,11 @@ __POD__
=head1 NAME
-KSx::Index::ByteBufDocReader - Read a Doc as a fixed-width byte array.
+LucyX::Index::ByteBufDocReader - Read a Doc as a fixed-width byte array.
=head1 SYNOPSIS
- # See KSx::Index::ByteBufDocWriter
+ # See LucyX::Index::ByteBufDocWriter
=head1 DESCRIPTION
Modified: incubator/lucy/trunk/perl/lib/KSx/Index/ByteBufDocWriter.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KSx/Index/ByteBufDocWriter.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KSx/Index/ByteBufDocWriter.pm (original)
+++ incubator/lucy/trunk/perl/lib/KSx/Index/ByteBufDocWriter.pm Wed Nov 3 03:31:37 2010
@@ -121,21 +121,21 @@ __POD__
=head1 NAME
-KSx::Index::ByteBufDocWriter - Write a Doc as a fixed-width byte array.
+LucyX::Index::ByteBufDocWriter - Write a Doc as a fixed-width byte array.
=head1 SYNOPSIS
-Create an L<Architecture|KinoSearch::Plan::Architecture> subclass which
+Create an L<Architecture|Lucy::Plan::Architecture> subclass which
overrides register_doc_writer() and register_doc_reader():
package MyArchitecture;
- use base qw( KinoSearch::Plan::Architecture );
- use KSx::Index::ByteBufDocReader;
- use KSx::Index::ByteBufDocWriter;
+ use base qw( Lucy::Plan::Architecture );
+ use LucyX::Index::ByteBufDocReader;
+ use LucyX::Index::ByteBufDocWriter;
sub register_doc_writer {
my ( $self, $seg_writer ) = @_;
- my $doc_writer = KSx::Index::ByteBufDocWriter->new(
+ my $doc_writer = LucyX::Index::ByteBufDocWriter->new(
width => 16,
field => 'value',
snapshot => $seg_writer->get_snapshot,
@@ -143,7 +143,7 @@ overrides register_doc_writer() and regi
polyreader => $seg_writer->get_polyreader,
);
$seg_writer->register(
- api => "KinoSearch::Index::DocReader",
+ api => "Lucy::Index::DocReader",
component => $doc_writer,
);
$seg_writer->add_writer($doc_writer);
@@ -151,7 +151,7 @@ overrides register_doc_writer() and regi
sub register_doc_reader {
my ( $self, $seg_reader ) = @_;
- my $doc_reader = KSx::Index::ByteBufDocReader->new(
+ my $doc_reader = LucyX::Index::ByteBufDocReader->new(
width => 16,
field => 'value',
schema => $seg_reader->get_schema,
@@ -161,13 +161,13 @@ overrides register_doc_writer() and regi
snapshot => $seg_reader->get_snapshot,
);
$seg_reader->register(
- api => 'KinoSearch::Index::DocReader',
+ api => 'Lucy::Index::DocReader',
component => $doc_reader,
);
}
package MySchema;
- use base qw( KinoSearch::Plan::Schema );
+ use base qw( Lucy::Plan::Schema );
sub architecture { MyArchitecture->new }
@@ -182,7 +182,7 @@ document supplies a valid value for the
Then, in your search app:
- my $searcher = KinoSearch::Search::IndexSearcher->new(
+ my $searcher = Lucy::Search::IndexSearcher->new(
index => '/path/to/index',
);
my $hits = $searcher->hits( query => $query );
Modified: incubator/lucy/trunk/perl/lib/KSx/Index/LongFieldSim.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KSx/Index/LongFieldSim.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KSx/Index/LongFieldSim.pm (original)
+++ incubator/lucy/trunk/perl/lib/KSx/Index/LongFieldSim.pm Wed Nov 3 03:31:37 2010
@@ -33,21 +33,21 @@ __POD__
=head1 NAME
-KSx::Index::LongFieldSim - Similarity optimized for long fields.
+LucyX::Index::LongFieldSim - Similarity optimized for long fields.
=head1 SYNOPSIS
package MySchema::body;
- use base qw( KinoSearch::Plan::FullTextType );
- use KSx::Index::LongFieldSim;
- sub make_similarity { KSx::Index::LongFieldSim->new }
+ use base qw( Lucy::Plan::FullTextType );
+ use LucyX::Index::LongFieldSim;
+ sub make_similarity { LucyX::Index::LongFieldSim->new }
=head1 DESCRIPTION
-KinoSearch's default L<Similarity|KinoSearch::Index::Similarity>
+Apache Lucy's default L<Similarity|Lucy::Index::Similarity>
implmentation produces a bias towards extremely short fields.
- KinoSearch::Index::Similarity
+ Lucy::Index::Similarity
| more weight
| *
@@ -62,7 +62,7 @@ implmentation produces a bias towards ex
LongFieldSim eliminates this bias.
- KSx::Index::LongFieldSim
+ LucyX::Index::LongFieldSim
| more weight
|
Modified: incubator/lucy/trunk/perl/lib/KSx/Index/ZlibDocReader.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KSx/Index/ZlibDocReader.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KSx/Index/ZlibDocReader.pm (original)
+++ incubator/lucy/trunk/perl/lib/KSx/Index/ZlibDocReader.pm Wed Nov 3 03:31:37 2010
@@ -136,7 +136,7 @@ __POD__
=head1 NAME
-KSx::Index::ZlibDocReader - Compressed doc storage.
+LucyX::Index::ZlibDocReader - Compressed doc storage.
=head1 DESCRIPTION
Modified: incubator/lucy/trunk/perl/lib/KSx/Index/ZlibDocWriter.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KSx/Index/ZlibDocWriter.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KSx/Index/ZlibDocWriter.pm (original)
+++ incubator/lucy/trunk/perl/lib/KSx/Index/ZlibDocWriter.pm Wed Nov 3 03:31:37 2010
@@ -143,7 +143,7 @@ __POD__
=head1 NAME
-KSx::Index::ZlibDocWriter - Compressed doc storage.
+LucyX::Index::ZlibDocWriter - Compressed doc storage.
=head1 DESCRIPTION
Modified: incubator/lucy/trunk/perl/lib/KSx/Remote/SearchClient.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KSx/Remote/SearchClient.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KSx/Remote/SearchClient.pm (original)
+++ incubator/lucy/trunk/perl/lib/KSx/Remote/SearchClient.pm Wed Nov 3 03:31:37 2010
@@ -144,11 +144,11 @@ __END__
=head1 NAME
-KSx::Remote::SearchClient - Connect to a remote SearchServer.
+LucyX::Remote::SearchClient - Connect to a remote SearchServer.
=head1 SYNOPSIS
- my $client = KSx::Remote::SearchClient->new(
+ my $client = LucyX::Remote::SearchClient->new(
peer_address => 'searchserver1:7890',
password => $pass,
);
@@ -156,9 +156,9 @@ KSx::Remote::SearchClient - Connect to a
=head1 DESCRIPTION
-SearchClient is a subclass of L<KinoSearch::Search::Searcher> which can be
+SearchClient is a subclass of L<Lucy::Search::Searcher> which can be
used to search an index on a remote machine made accessible via
-L<SearchServer|KSx::Remote::SearchServer>.
+L<SearchServer|LucyX::Remote::SearchServer>.
=head1 METHODS
Modified: incubator/lucy/trunk/perl/lib/KSx/Remote/SearchServer.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KSx/Remote/SearchServer.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KSx/Remote/SearchServer.pm (original)
+++ incubator/lucy/trunk/perl/lib/KSx/Remote/SearchServer.pm Wed Nov 3 03:31:37 2010
@@ -171,14 +171,14 @@ __END__
=head1 NAME
-KSx::Remote::SearchServer - Make a Searcher remotely accessible.
+LucyX::Remote::SearchServer - Make a Searcher remotely accessible.
=head1 SYNOPSIS
- my $searcher = KinoSearch::Search::IndexSearcher->new(
+ my $searcher = Lucy::Search::IndexSearcher->new(
index => '/path/to/index'
);
- my $search_server = KSx::Remote::SearchServer->new(
+ my $search_server = LucyX::Remote::SearchServer->new(
searcher => $searcher,
port => 7890,
password => $pass,
@@ -188,11 +188,11 @@ KSx::Remote::SearchServer - Make a Searc
=head1 DESCRIPTION
The SearchServer class, in conjunction with
-L<SearchClient|KSx::Remote::SearchClient>, makes it possible to run
+L<SearchClient|LucyX::Remote::SearchClient>, makes it possible to run
a search on one machine and report results on another.
By aggregating several SearchClients under a
-L<PolySearcher|KinoSearch::Search::PolySearcher>, the cost of searching
+L<PolySearcher|Lucy::Search::PolySearcher>, the cost of searching
what might have been a prohibitively large monolithic index can be distributed
across multiple nodes, each with its own, smaller index.
@@ -200,7 +200,7 @@ across multiple nodes, each with its own
=head2 new
- my $search_server = KSx::Remote::SearchServer->new(
+ my $search_server = LucyX::Remote::SearchServer->new(
searcher => $searcher, # required
port => 7890, # required
password => $pass, # required
@@ -212,7 +212,7 @@ Constructor. Takes hash-style parameter
=item *
-B<searcher> - the L<Searcher|KinoSearch::Search::IndexSearcher> that the SearchServer
+B<searcher> - the L<Searcher|Lucy::Search::IndexSearcher> that the SearchServer
will wrap.
=item *
Modified: incubator/lucy/trunk/perl/lib/KSx/Search/Filter.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KSx/Search/Filter.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KSx/Search/Filter.pm (original)
+++ incubator/lucy/trunk/perl/lib/KSx/Search/Filter.pm Wed Nov 3 03:31:37 2010
@@ -198,17 +198,17 @@ __POD__
=head1 NAME
-KSx::Search::Filter - Build a caching filter based on results of a Query.
+LucyX::Search::Filter - Build a caching filter based on results of a Query.
=head1 SYNOPSIS
my %category_filters;
for my $category (qw( sweet sour salty bitter )) {
- my $cat_query = KinoSearch::Search::TermQuery->new(
+ my $cat_query = Lucy::Search::TermQuery->new(
field => 'category',
term => $category,
);
- $category_filters{$category} = KSx::Search::Filter->new(
+ $category_filters{$category} = LucyX::Search::Filter->new(
query => $cat_query,
);
}
@@ -216,7 +216,7 @@ KSx::Search::Filter - Build a caching fi
while ( my $cgi = CGI::Fast->new ) {
my $user_query = $cgi->param('q');
my $filter = $category_filters{ $cgi->param('category') };
- my $and_query = KinoSearch::Search::ANDQuery->new;
+ my $and_query = Lucy::Search::ANDQuery->new;
$and_query->add_child($user_query);
$and_query->add_child($filter);
my $hits = $searcher->hits( query => $and_query );
@@ -224,7 +224,7 @@ KSx::Search::Filter - Build a caching fi
=head1 DESCRIPTION
-A Filter is a L<KinoSearch::Search::Query> subclass that can be used to filter
+A Filter is a L<Lucy::Search::Query> subclass that can be used to filter
the results of another Query. The effect is very similar to simply using the
wrapped inner query, but there are two important differences:
@@ -248,16 +248,16 @@ substitute the wrapped query but use set
=head2 new
- my $filter = KSx::Search::Filter->new(
+ my $filter = LucyX::Search::Filter->new(
query => $query;
);
Constructor. Takes one hash-style parameter, C<query>, which must be an
-object belonging to a subclass of L<KinoSearch::Search::Query>.
+object belonging to a subclass of L<Lucy::Search::Query>.
=head1 BUGS
-Filters do not cache when used in a search cluster with KSx::Remote's
+Filters do not cache when used in a search cluster with LucyX::Remote's
SearchServer and SearchClient.
=cut
Modified: incubator/lucy/trunk/perl/lib/KSx/Search/MockScorer.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KSx/Search/MockScorer.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KSx/Search/MockScorer.pm (original)
+++ incubator/lucy/trunk/perl/lib/KSx/Search/MockScorer.pm Wed Nov 3 03:31:37 2010
@@ -55,11 +55,11 @@ __POD__
=head1 NAME
-KSx::Search::MockScorer - Matcher with arbitrary docs and scores.
+LucyX::Search::MockScorer - Matcher with arbitrary docs and scores.
=head1 DESCRIPTION
-Used for testing combining L<Matchers|KinoSearch::Search::Matcher> such as
+Used for testing combining L<Matchers|Lucy::Search::Matcher> such as
ANDScorer, MockScorer allows arbitrary match criteria to be supplied,
obviating the need for clever index construction to cover corner cases.
@@ -73,7 +73,7 @@ MockScorer is a testing and demonstratio
=item *
-B<doc_ids> - A sorted array of L<doc_ids|KinoSearch::Docs::DocIDs>.
+B<doc_ids> - A sorted array of L<doc_ids|Lucy::Docs::DocIDs>.
=item *
Modified: incubator/lucy/trunk/perl/lib/KSx/Search/ProximityQuery.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KSx/Search/ProximityQuery.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KSx/Search/ProximityQuery.pm (original)
+++ incubator/lucy/trunk/perl/lib/KSx/Search/ProximityQuery.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $proximity_query = KSx::Search::ProximityQuery->new(
+ my $proximity_query = LucyX::Search::ProximityQuery->new(
field => 'content',
terms => [qw( the who )],
within => 10, # match within 10 positions
Modified: incubator/lucy/trunk/perl/lib/KSx/Simple.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KSx/Simple.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KSx/Simple.pm (original)
+++ incubator/lucy/trunk/perl/lib/KSx/Simple.pm Wed Nov 3 03:31:37 2010
@@ -145,13 +145,13 @@ __POD__
=head1 NAME
-KSx::Simple - Basic search engine.
+LucyX::Simple - Basic search engine.
=head1 SYNOPSIS
First, build an index of your documents.
- my $index = KSx::Simple->new(
+ my $index = LucyX::Simple->new(
path => '/path/to/index/'
language => 'en',
);
@@ -178,19 +178,19 @@ Later, search the index.
=head1 DESCRIPTION
-KSx::Simple is a stripped-down interface for the L<KinoSearch> search
+LucyX::Simple is a stripped-down interface for the L<Apache Lucy|Lucy> search
engine library.
=head1 METHODS
=head2 new
- my $index = KSx::Simple->new(
+ my $index = LucyX::Simple->new(
path => '/path/to/index/',
language => 'en',
);
-Create a KSx::Simple object, which can be used for both indexing and
+Create a LucyX::Simple object, which can be used for both indexing and
searching. Two hash-style parameters are required.
=over
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/CaseFolder.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/CaseFolder.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/CaseFolder.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/CaseFolder.pm Wed Nov 3 03:31:37 2010
@@ -23,15 +23,15 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $case_folder = KinoSearch::Analysis::CaseFolder->new;
+ my $case_folder = Lucy::Analysis::CaseFolder->new;
- my $polyanalyzer = KinoSearch::Analysis::PolyAnalyzer->new(
+ my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new(
analyzers => [ $case_folder, $tokenizer, $stemmer ],
);
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $case_folder = KinoSearch::Analysis::CaseFolder->new;
+ my $case_folder = Lucy::Analysis::CaseFolder->new;
END_CONSTRUCTOR
Clownfish::Binding::Perl::Class->register(
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/PolyAnalyzer.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/PolyAnalyzer.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/PolyAnalyzer.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/PolyAnalyzer.pm Wed Nov 3 03:31:37 2010
@@ -23,11 +23,11 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $schema = KinoSearch::Plan::Schema->new;
- my $polyanalyzer = KinoSearch::Analysis::PolyAnalyzer->new(
+ my $schema = Lucy::Plan::Schema->new;
+ my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new(
language => 'en',
);
- my $type = KinoSearch::Plan::FullTextType->new(
+ my $type = Lucy::Plan::FullTextType->new(
analyzer => $polyanalyzer,
);
$schema->spec_field( name => 'title', type => $type );
@@ -35,16 +35,16 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $analyzer = KinoSearch::Analysis::PolyAnalyzer->new(
+ my $analyzer = Lucy::Analysis::PolyAnalyzer->new(
language => 'es',
);
# or...
- my $case_folder = KinoSearch::Analysis::CaseFolder->new;
- my $tokenizer = KinoSearch::Analysis::Tokenizer->new;
- my $stemmer = KinoSearch::Analysis::Stemmer->new( language => 'en' );
- my $polyanalyzer = KinoSearch::Analysis::PolyAnalyzer->new(
+ my $case_folder = Lucy::Analysis::CaseFolder->new;
+ my $tokenizer = Lucy::Analysis::Tokenizer->new;
+ my $stemmer = Lucy::Analysis::Stemmer->new( language => 'en' );
+ my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new(
analyzers => [ $case_folder, $whitespace_tokenizer, $stemmer, ], );
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Stemmer.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Stemmer.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Stemmer.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Stemmer.pm Wed Nov 3 03:31:37 2010
@@ -52,9 +52,9 @@ PPCODE:
END_XS
my $synopsis = <<'END_SYNOPSIS';
- my $stemmer = KinoSearch::Analysis::Stemmer->new( language => 'es' );
+ my $stemmer = Lucy::Analysis::Stemmer->new( language => 'es' );
- my $polyanalyzer = KinoSearch::Analysis::PolyAnalyzer->new(
+ my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new(
analyzers => [ $case_folder, $tokenizer, $stemmer ],
);
@@ -63,7 +63,7 @@ same languages.
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $stemmer = KinoSearch::Analysis::Stemmer->new( language => 'es' );
+ my $stemmer = Lucy::Analysis::Stemmer->new( language => 'es' );
END_CONSTRUCTOR
Clownfish::Binding::Perl::Class->register(
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Stopalizer.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Stopalizer.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Stopalizer.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Stopalizer.pm Wed Nov 3 03:31:37 2010
@@ -23,10 +23,10 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $stopalizer = KinoSearch::Analysis::Stopalizer->new(
+ my $stopalizer = Lucy::Analysis::Stopalizer->new(
language => 'fr',
);
- my $polyanalyzer = KinoSearch::Analysis::PolyAnalyzer->new(
+ my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new(
analyzers => [ $case_folder, $tokenizer, $stopalizer, $stemmer ],
);
@@ -35,12 +35,12 @@ the same set of languages.
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $stopalizer = KinoSearch::Analysis::Stopalizer->new(
+ my $stopalizer = Lucy::Analysis::Stopalizer->new(
language => 'de',
);
# or...
- my $stopalizer = KinoSearch::Analysis::Stopalizer->new(
+ my $stopalizer = Lucy::Analysis::Stopalizer->new(
stoplist => \%stoplist,
);
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Token.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Token.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Token.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Token.pm Wed Nov 3 03:31:37 2010
@@ -102,15 +102,3 @@ Clownfish::Binding::Perl::Class->registe
xs_code => $xs,
);
-__POD__
-
-=head1 NAME
-
-KinoSearch::Analysis::Token - Redacted.
-
-=head1 REDACTED
-
-Token's public API has been redacted.
-
-=cut
-
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Tokenizer.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Tokenizer.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Tokenizer.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Analysis/Tokenizer.pm Wed Nov 3 03:31:37 2010
@@ -24,22 +24,22 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
my $whitespace_tokenizer
- = KinoSearch::Analysis::Tokenizer->new( pattern => '\S+' );
+ = Lucy::Analysis::Tokenizer->new( pattern => '\S+' );
# or...
my $word_char_tokenizer
- = KinoSearch::Analysis::Tokenizer->new( pattern => '\w+' );
+ = Lucy::Analysis::Tokenizer->new( pattern => '\w+' );
# or...
- my $apostrophising_tokenizer = KinoSearch::Analysis::Tokenizer->new;
+ my $apostrophising_tokenizer = Lucy::Analysis::Tokenizer->new;
# Then... once you have a tokenizer, put it into a PolyAnalyzer:
- my $polyanalyzer = KinoSearch::Analysis::PolyAnalyzer->new(
+ my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new(
analyzers => [ $case_folder, $word_char_tokenizer, $stemmer ], );
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $word_char_tokenizer = KinoSearch::Analysis::Tokenizer->new(
+ my $word_char_tokenizer = Lucy::Analysis::Tokenizer->new(
pattern => '\w+', # required
);
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Document/Doc.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Document/Doc.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Document/Doc.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Document/Doc.pm Wed Nov 3 03:31:37 2010
@@ -35,7 +35,7 @@ OUTPUT: RETVAL
END_XS_CODE
my $synopsis = <<'END_SYNOPSIS';
- my $doc = KinoSearch::Document::Doc->new(
+ my $doc = Lucy::Document::Doc->new(
fields => { foo => 'foo foo', bar => 'bar bar' },
);
$indexer->add_doc($doc);
@@ -47,7 +47,7 @@ Doc objects allow access to field values
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $doc = KinoSearch::Document::Doc->new(
+ my $doc = Lucy::Document::Doc->new(
fields => { foo => 'foo foo', bar => 'bar bar' },
);
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Highlight/HeatMap.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Highlight/HeatMap.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Highlight/HeatMap.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Highlight/HeatMap.pm Wed Nov 3 03:31:37 2010
@@ -23,15 +23,15 @@ __END__
__BINDING__
my $constructor = <<'END_CONSTRUCTOR';
- my $heat_map = KinoSearch::Highlight::HeatMap->new(
+ my $heat_map = Lucy::Highlight::HeatMap->new(
spans => \@highlight_spans,
window => 100,
);
END_CONSTRUCTOR
Clownfish::Binding::Perl::Class->register(
- parcel => "KinoSearch",
- class_name => "KinoSearch::Highlight::HeatMap",
+ parcel => "Lucy",
+ class_name => "Lucy::Highlight::HeatMap",
bind_methods => [
qw(
Calc_Proximity_Boost
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Highlight/Highlighter.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Highlight/Highlighter.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Highlight/Highlighter.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Highlight/Highlighter.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $highlighter = KinoSearch::Highlight::Highlighter->new(
+ my $highlighter = Lucy::Highlight::Highlighter->new(
searcher => $searcher,
query => $query,
field => 'body'
@@ -36,7 +36,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $highlighter = KinoSearch::Highlight::Highlighter->new(
+ my $highlighter = Lucy::Highlight::Highlighter->new(
searcher => $searcher, # required
query => $query, # required
field => 'content', # required
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/BackgroundMerger.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/BackgroundMerger.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/BackgroundMerger.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/BackgroundMerger.pm Wed Nov 3 03:31:37 2010
@@ -23,14 +23,14 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $bg_merger = KinoSearch::Index::BackgroundMerger->new(
+ my $bg_merger = Lucy::Index::BackgroundMerger->new(
index => '/path/to/index',
);
$bg_merger->commit;
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $bg_merger = KinoSearch::Index::BackgroundMerger->new(
+ my $bg_merger = Lucy::Index::BackgroundMerger->new(
index => '/path/to/index', # required
manager => $manager # default: created internally
);
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/DocReader.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/DocReader.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/DocReader.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/DocReader.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $doc_reader = $seg_reader->obtain("KinoSearch::Index::DocReader");
+ my $doc_reader = $seg_reader->obtain("Lucy::Index::DocReader");
my $doc = $doc_reader->fetch_doc($doc_id);
END_SYNOPSIS
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/IndexManager.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/IndexManager.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/IndexManager.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/IndexManager.pm Wed Nov 3 03:31:37 2010
@@ -25,26 +25,26 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
use Sys::Hostname qw( hostname );
my $hostname = hostname() or die "Can't get unique hostname";
- my $manager = KinoSearch::Index::IndexManager->new(
+ my $manager = Lucy::Index::IndexManager->new(
host => $hostname,
);
# Index time:
- my $indexer = KinoSearch::Index::Indexer->new(
+ my $indexer = Lucy::Index::Indexer->new(
index => '/path/to/index',
manager => $manager,
);
# Search time:
- my $reader = KinoSearch::Index::IndexReader->open(
+ my $reader = Lucy::Index::IndexReader->open(
index => '/path/to/index',
manager => $manager,
);
- my $searcher = KinoSearch::Search::IndexSearcher->new( index => $reader );
+ my $searcher = Lucy::Search::IndexSearcher->new( index => $reader );
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $manager = KinoSearch::Index::IndexManager->new(
+ my $manager = Lucy::Index::IndexManager->new(
host => $hostname, # default: ""
);
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/IndexReader.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/IndexReader.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/IndexReader.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/IndexReader.pm Wed Nov 3 03:31:37 2010
@@ -43,7 +43,7 @@ OUTPUT: RETVAL
END_XS_CODE
my $synopsis = <<'END_SYNOPSIS';
- my $reader = KinoSearch::Index::IndexReader->open(
+ my $reader = Lucy::Index::IndexReader->open(
index => '/path/to/index',
);
my $seg_readers = $reader->seg_readers;
@@ -51,7 +51,7 @@ my $synopsis = <<'END_SYNOPSIS';
my $seg_name = $seg_reader->get_segment->get_name;
my $num_docs = $seg_reader->doc_max;
print "Segment $seg_name ($num_docs documents):\n";
- my $doc_reader = $seg_reader->obtain("KinoSearch::Index::DocReader");
+ my $doc_reader = $seg_reader->obtain("Lucy::Index::DocReader");
for my $doc_id ( 1 .. $num_docs ) {
my $doc = $doc_reader->fetch_doc($doc_id);
print " $doc_id: $doc->{title}\n";
@@ -60,7 +60,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $reader = KinoSearch::Index::IndexReader->open(
+ my $reader = Lucy::Index::IndexReader->open(
index => '/path/to/index', # required
snapshot => $snapshot,
manager => $index_manager,
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/Indexer.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/Indexer.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/Indexer.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/Indexer.pm Wed Nov 3 03:31:37 2010
@@ -88,7 +88,7 @@ PPCODE:
END_XS_CODE
my $synopsis = <<'END_SYNOPSIS';
- my $indexer = KinoSearch::Index::Indexer->new(
+ my $indexer = Lucy::Index::Indexer->new(
schema => $schema,
index => '/path/to/index',
create => 1,
@@ -105,7 +105,7 @@ END_SYNOPSIS
my $constructor = <<'END_NEW';
==head2 new( I<[labeled params]> )
- my $indexer = KinoSearch::Index::Indexer->new(
+ my $indexer = Lucy::Index::Indexer->new(
schema => $schema, # required at index creation
index => '/path/to/index', # required
create => 1, # default: 0
@@ -161,8 +161,8 @@ params.
==item *
-B<doc> - Either a KinoSearch::Document::Doc object, or a hashref (which will
-be attached to a KinoSearch::Document::Doc object internally).
+B<doc> - Either a Lucy::Document::Doc object, or a hashref (which will
+be attached to a Lucy::Document::Doc object internally).
==item *
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/Lexicon.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/Lexicon.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/Lexicon.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/Lexicon.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $lex_reader = $seg_reader->obtain('KinoSearch::Index::LexiconReader');
+ my $lex_reader = $seg_reader->obtain('Lucy::Index::LexiconReader');
my $lexicon = $lex_reader->lexicon( field => 'content' );
while ( $lexicon->next ) {
print $lexicon->get_term . "\n";
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/LexiconReader.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/LexiconReader.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/LexiconReader.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/LexiconReader.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $lex_reader = $seg_reader->obtain("KinoSearch::Index::LexiconReader");
+ my $lex_reader = $seg_reader->obtain("Lucy::Index::LexiconReader");
my $lexicon = $lex_reader->lexicon( field => 'title' );
END_SYNOPSIS
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/PolyReader.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/PolyReader.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/PolyReader.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/PolyReader.pm Wed Nov 3 03:31:37 2010
@@ -23,10 +23,10 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $polyreader = KinoSearch::Index::IndexReader->open(
+ my $polyreader = Lucy::Index::IndexReader->open(
index => '/path/to/index',
);
- my $doc_reader = $polyreader->obtain("KinoSearch::Index::DocReader");
+ my $doc_reader = $polyreader->obtain("Lucy::Index::DocReader");
for my $doc_id ( 1 .. $polyreader->doc_max ) {
my $doc = $doc_reader->fetch_doc($doc_id);
print " $doc_id: $doc->{title}\n";
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/MatchPosting.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/MatchPosting.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/MatchPosting.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/MatchPosting.pm Wed Nov 3 03:31:37 2010
@@ -25,10 +25,10 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
# MatchPosting is used indirectly, by specifying in FieldType subclass.
package MySchema::Category;
- use base qw( KinoSearch::Plan::FullTextType );
+ use base qw( Lucy::Plan::FullTextType );
sub posting {
my $self = shift;
- return KinoSearch::Index::Posting::MatchPosting->new(@_);
+ return Lucy::Index::Posting::MatchPosting->new(@_);
}
END_SYNOPSIS
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/RichPosting.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/RichPosting.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/RichPosting.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/RichPosting.pm Wed Nov 3 03:31:37 2010
@@ -25,10 +25,10 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
# RichPosting is used indirectly, by specifying in FieldType subclass.
package MySchema::Category;
- use base qw( KinoSearch::Plan::FullTextType );
+ use base qw( Lucy::Plan::FullTextType );
sub posting {
my $self = shift;
- return KinoSearch::Index::Posting::RichPosting->new(@_);
+ return Lucy::Index::Posting::RichPosting->new(@_);
}
END_SYNOPSIS
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/ScorePosting.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/ScorePosting.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/ScorePosting.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/Posting/ScorePosting.pm Wed Nov 3 03:31:37 2010
@@ -47,11 +47,11 @@ END_XS_CODE
my $synopsis = <<'END_SYNOPSIS';
# ScorePosting is used indirectly, by specifying in FieldType subclass.
package MySchema::Category;
- use base qw( KinoSearch::Plan::FullTextType );
+ use base qw( Lucy::Plan::FullTextType );
# (It's the default, so you don't need to spec it.)
# sub posting {
# my $self = shift;
- # return KinoSearch::Index::Posting::ScorePosting->new(@_);
+ # return Lucy::Index::Posting::ScorePosting->new(@_);
# }
END_SYNOPSIS
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/PostingList.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/PostingList.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/PostingList.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/PostingList.pm Wed Nov 3 03:31:37 2010
@@ -24,7 +24,7 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
my $posting_list_reader
- = $seg_reader->obtain("KinoSearch::Index::PostingListReader");
+ = $seg_reader->obtain("Lucy::Index::PostingListReader");
my $posting_list = $posting_list_reader->posting_list(
field => 'content',
term => 'foo',
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/PostingListReader.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/PostingListReader.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/PostingListReader.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/PostingListReader.pm Wed Nov 3 03:31:37 2010
@@ -24,7 +24,7 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
my $posting_list_reader
- = $seg_reader->obtain("KinoSearch::Index::PostingListReader");
+ = $seg_reader->obtain("Lucy::Index::PostingListReader");
my $posting_list = $posting_list_reader->posting_list(
field => 'title',
term => 'foo',
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/SegReader.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/SegReader.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/SegReader.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/SegReader.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $polyreader = KinoSearch::Index::IndexReader->open(
+ my $polyreader = Lucy::Index::IndexReader->open(
index => '/path/to/index',
);
my $seg_readers = $polyreader->seg_readers;
@@ -31,7 +31,7 @@ my $synopsis = <<'END_SYNOPSIS';
my $seg_name = $seg_reader->get_seg_name;
my $num_docs = $seg_reader->doc_max;
print "Segment $seg_name ($num_docs documents):\n";
- my $doc_reader = $seg_reader->obtain("KinoSearch::Index::DocReader");
+ my $doc_reader = $seg_reader->obtain("Lucy::Index::DocReader");
for my $doc_id ( 1 .. $num_docs ) {
my $doc = $doc_reader->fetch_doc($doc_id);
print " $doc_id: $doc->{title}\n";
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/Segment.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/Segment.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/Segment.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/Segment.pm Wed Nov 3 03:31:37 2010
@@ -25,7 +25,7 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
# Index-time.
package MyDataWriter;
- use base qw( KinoSearch::Index::DataWriter );
+ use base qw( Lucy::Index::DataWriter );
sub finish {
my $self = shift;
@@ -40,7 +40,7 @@ my $synopsis = <<'END_SYNOPSIS';
# Search-time.
package MyDataReader;
- use base qw( KinoSearch::Index::DataReader );
+ use base qw( Lucy::Index::DataReader );
sub new {
my $self = shift->SUPER::new(@_);
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/Similarity.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/Similarity.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/Similarity.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/Similarity.pm Wed Nov 3 03:31:37 2010
@@ -40,12 +40,12 @@ my $synopsis = <<'END_SYNOPSIS';
sub length_norm { return 1.0 } # disable length normalization
package MyFullTextType;
- use base qw( KinoSearch::Plan::FullTextType );
+ use base qw( Lucy::Plan::FullTextType );
sub make_similarity { MySimilarity->new }
END_SYNOPSIS
-my $constructor = qq| my \$sim = KinoSearch::Index::Similarity->new;\n|;
+my $constructor = qq| my \$sim = Lucy::Index::Similarity->new;\n|;
Clownfish::Binding::Perl::Class->register(
parcel => "KinoSearch",
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Index/Snapshot.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Index/Snapshot.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Index/Snapshot.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Index/Snapshot.pm Wed Nov 3 03:31:37 2010
@@ -23,14 +23,14 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $snapshot = KinoSearch::Index::Snapshot->new;
+ my $snapshot = Lucy::Index::Snapshot->new;
$snapshot->read_file( folder => $folder ); # load most recent snapshot
my $files = $snapshot->list;
print "$_\n" for @$files;
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $snapshot = KinoSearch::Index::Snapshot->new;
+ my $snapshot = Lucy::Index::Snapshot->new;
END_CONSTRUCTOR
Clownfish::Binding::Perl::Class->register(
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Object/BitVector.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Object/BitVector.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Object/BitVector.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Object/BitVector.pm Wed Nov 3 03:31:37 2010
@@ -23,15 +23,15 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $bit_vec = KinoSearch::Object::BitVector->new( capacity => 8 );
- my $other = KinoSearch::Object::BitVector->new( capacity => 8 );
+ my $bit_vec = Lucy::Object::BitVector->new( capacity => 8 );
+ my $other = Lucy::Object::BitVector->new( capacity => 8 );
$bit_vec->set($_) for ( 0, 2, 4, 6 );
$other->set($_) for ( 1, 3, 5, 7 );
$bit_vec->or($other);
print "$_\n" for @{ $bit_vec->to_array }; # prints 0 through 7.
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $bit_vec = KinoSearch::Object::BitVector->new(
+ my $bit_vec = Lucy::Object::BitVector->new(
capacity => $doc_max + 1, # default 0,
);
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Object/Err.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Object/Err.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Object/Err.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Object/Err.pm Wed Nov 3 03:31:37 2010
@@ -27,10 +27,10 @@ my $synopsis = <<'END_SYNOPSIS';
my $bg_merger;
while (1) {
$bg_merger = eval {
- KinoSearch::Index::BackgroundMerger->new( index => $index );
+ Lucy::Index::BackgroundMerger->new( index => $index );
};
last if $bg_merger;
- if ( blessed($@) and $@->isa("KinoSearch::Store::LockErr") ) {
+ if ( blessed($@) and $@->isa("Lucy::Store::LockErr") ) {
warn "Retrying...\n";
}
else {
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Object/Obj.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Object/Obj.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Object/Obj.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Object/Obj.pm Wed Nov 3 03:31:37 2010
@@ -123,7 +123,7 @@ END_XS_CODE
my $synopsis = <<'END_SYNOPSIS';
package MyObj;
- use base qw( KinoSearch::Object::Obj );
+ use base qw( Lucy::Object::Obj );
# Inside-out member var.
my %foo;
@@ -149,13 +149,13 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $description = <<'END_DESCRIPTION';
-All objects in the KinoSearch:: hierarchy descend from
-KinoSearch::Object::Obj. All classes are implemented as blessed scalar
+All objects in the Lucy:: hierarchy descend from
+Lucy::Object::Obj. All classes are implemented as blessed scalar
references, with the scalar storing a pointer to a C struct.
==head2 Subclassing
-The recommended way to subclass KinoSearch::Object::Obj and its descendants is
+The recommended way to subclass Lucy::Object::Obj and its descendants is
to use the inside-out design pattern. (See L<Class::InsideOut> for an
introduction to inside-out techniques.)
@@ -176,7 +176,7 @@ Caveats:
==item *
Inside-out aficionados will have noted that the "cached scalar id" stratagem
-recommended above isn't compatible with ithreads -- but KinoSearch doesn't
+recommended above isn't compatible with ithreads -- but Lucy doesn't
support ithreads anyway, so it doesn't matter.
==item *
@@ -192,7 +192,7 @@ results in a segfault rather than an exc
==head2 new()
Abstract constructor -- must be invoked via a subclass. Attempting to
-instantiate objects of class "KinoSearch::Object::Obj" directly causes an
+instantiate objects of class "Lucy::Object::Obj" directly causes an
error.
Takes no arguments; if any are supplied, an error will be reported.
@@ -201,7 +201,7 @@ Takes no arguments; if any are supplied,
==head2 DESTROY
-All KinoSearch classes implement a DESTROY method; if you override it in a
+All Lucy classes implement a DESTROY method; if you override it in a
subclass, you must call C<< $self->SUPER::DESTROY >> to avoid leaking memory.
END_DESCRIPTION
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Architecture.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Architecture.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Architecture.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Architecture.pm Wed Nov 3 03:31:37 2010
@@ -24,20 +24,20 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
package MyArchitecture;
- use base qw( KinoSearch::Plan::Architecture );
+ use base qw( Lucy::Plan::Architecture );
- use KSx::Index::ZlibDocWriter;
- use KSx::Index::ZlibDocReader;
+ use LucyX::Index::ZlibDocWriter;
+ use LucyX::Index::ZlibDocReader;
sub register_doc_writer {
my ( $self, $seg_writer ) = @_;
- my $doc_writer = KSx::Index::ZlibDocWriter->new(
+ my $doc_writer = LucyX::Index::ZlibDocWriter->new(
snapshot => $seg_writer->get_snapshot,
segment => $seg_writer->get_segment,
polyreader => $seg_writer->get_polyreader,
);
$seg_writer->register(
- api => "KinoSearch::Index::DocReader",
+ api => "Lucy::Index::DocReader",
component => $doc_writer,
);
$seg_writer->add_writer($doc_writer);
@@ -45,7 +45,7 @@ my $synopsis = <<'END_SYNOPSIS';
sub register_doc_reader {
my ( $self, $seg_reader ) = @_;
- my $doc_reader = KSx::Index::ZlibDocReader->new(
+ my $doc_reader = LucyX::Index::ZlibDocReader->new(
schema => $seg_reader->get_schema,
folder => $seg_reader->get_folder,
segments => $seg_reader->get_segments,
@@ -53,13 +53,13 @@ my $synopsis = <<'END_SYNOPSIS';
snapshot => $seg_reader->get_snapshot,
);
$seg_reader->register(
- api => 'KinoSearch::Index::DocReader',
+ api => 'Lucy::Index::DocReader',
component => $doc_reader,
);
}
package MySchema;
- use base qw( KinoSearch::Plan::Schema );
+ use base qw( Lucy::Plan::Schema );
sub architecture {
shift;
@@ -68,7 +68,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $arch = KinoSearch::Plan::Architecture->new;
+ my $arch = Lucy::Plan::Architecture->new;
END_CONSTRUCTOR
Clownfish::Binding::Perl::Class->register(
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Plan/BlobType.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Plan/BlobType.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Plan/BlobType.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Plan/BlobType.pm Wed Nov 3 03:31:37 2010
@@ -23,14 +23,14 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $string_type = KinoSearch::Plan::StringType->new;
- my $blob_type = KinoSearch::Plan::BlobType->new( stored => 1 );
- my $schema = KinoSearch::Plan::Schema->new;
+ my $string_type = Lucy::Plan::StringType->new;
+ my $blob_type = Lucy::Plan::BlobType->new( stored => 1 );
+ my $schema = Lucy::Plan::Schema->new;
$schema->spec_field( name => 'id', type => $string_type );
$schema->spec_field( name => 'jpeg', type => $blob_type );
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $blob_type = KinoSearch::Plan::BlobType->new(
+ my $blob_type = Lucy::Plan::BlobType->new(
stored => 1, # default: false
);
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Float32Type.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Float32Type.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Float32Type.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Float32Type.pm Wed Nov 3 03:31:37 2010
@@ -23,12 +23,12 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $schema = KinoSearch::Plan::Schema->new;
- my $float32_type = KinoSearch::Plan::FloatType->new;
+ my $schema = Lucy::Plan::Schema->new;
+ my $float32_type = Lucy::Plan::FloatType->new;
$schema->spec_field( name => 'intensity', type => $float32_type );
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $float32_type = KinoSearch::Plan::Float32Type->new(
+ my $float32_type = Lucy::Plan::Float32Type->new(
indexed => 0, # default true
stored => 0, # default true
sortable => 1, # default false
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Float64Type.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Float64Type.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Float64Type.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Float64Type.pm Wed Nov 3 03:31:37 2010
@@ -23,12 +23,12 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $schema = KinoSearch::Plan::Schema->new;
- my $float64_type = KinoSearch::Plan::FloatType->new;
+ my $schema = Lucy::Plan::Schema->new;
+ my $float64_type = Lucy::Plan::FloatType->new;
$schema->spec_field( name => 'intensity', type => $float64_type );
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $float64_type = KinoSearch::Plan::Float64Type->new(
+ my $float64_type = Lucy::Plan::Float64Type->new(
indexed => 0 # default true
stored => 0, # default true
sortable => 1, # default false
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Plan/FullTextType.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Plan/FullTextType.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Plan/FullTextType.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Plan/FullTextType.pm Wed Nov 3 03:31:37 2010
@@ -23,19 +23,19 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $polyanalyzer = KinoSearch::Analysis::PolyAnalyzer->new(
+ my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new(
language => 'en',
);
- my $type = KinoSearch::Plan::FullTextType->new(
+ my $type = Lucy::Plan::FullTextType->new(
analyzer => $polyanalyzer,
);
- my $schema = KinoSearch::Plan::Schema->new;
+ my $schema = Lucy::Plan::Schema->new;
$schema->spec_field( name => 'title', type => $type );
$schema->spec_field( name => 'content', type => $type );
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $type = KinoSearch::Plan::FullTextType->new(
+ my $type = Lucy::Plan::FullTextType->new(
analyzer => $analyzer, # required
boost => 2.0, # default: 1.0
indexed => 1, # default: true
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Int32Type.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Int32Type.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Int32Type.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Int32Type.pm Wed Nov 3 03:31:37 2010
@@ -23,12 +23,12 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $schema = KinoSearch::Plan::Schema->new;
- my $int32_type = KinoSearch::Plan::Int32Type->new;
+ my $schema = Lucy::Plan::Schema->new;
+ my $int32_type = Lucy::Plan::Int32Type->new;
$schema->spec_field( name => 'count', type => $int32_type );
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $int32_type = KinoSearch::Plan::Int32Type->new(
+ my $int32_type = Lucy::Plan::Int32Type->new(
indexed => 0, # default true
stored => 0, # default true
sortable => 1, # default false
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Int64Type.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Int64Type.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Int64Type.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Int64Type.pm Wed Nov 3 03:31:37 2010
@@ -23,12 +23,12 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $schema = KinoSearch::Plan::Schema->new;
- my $int64_type = KinoSearch::Plan::Int64Type->new;
+ my $schema = Lucy::Plan::Schema->new;
+ my $int64_type = Lucy::Plan::Int64Type->new;
$schema->spec_field( name => 'count', type => $int64_type );
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $int64_type = KinoSearch::Plan::Int64Type->new(
+ my $int64_type = Lucy::Plan::Int64Type->new(
indexed => 0, # default true
stored => 0, # default true
sortable => 1, # default false
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Schema.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Schema.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Schema.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Plan/Schema.pm Wed Nov 3 03:31:37 2010
@@ -23,15 +23,15 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- use KinoSearch::Plan::Schema;
- use KinoSearch::Plan::FullTextType;
- use KinoSearch::Analysis::PolyAnalyzer;
+ use Lucy::Plan::Schema;
+ use Lucy::Plan::FullTextType;
+ use Lucy::Analysis::PolyAnalyzer;
- my $schema = KinoSearch::Plan::Schema->new;
- my $polyanalyzer = KinoSearch::Analysis::PolyAnalyzer->new(
+ my $schema = Lucy::Plan::Schema->new;
+ my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new(
language => 'en',
);
- my $type = KinoSearch::Plan::FullTextType->new(
+ my $type = Lucy::Plan::FullTextType->new(
analyzer => $polyanalyzer,
);
$schema->spec_field( name => 'title', type => $type );
@@ -39,7 +39,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $schema = KinoSearch::Plan::Schema->new;
+ my $schema = Lucy::Plan::Schema->new;
END_CONSTRUCTOR
Clownfish::Binding::Perl::Class->register(
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Plan/StringType.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Plan/StringType.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Plan/StringType.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Plan/StringType.pm Wed Nov 3 03:31:37 2010
@@ -23,13 +23,13 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $type = KinoSearch::Plan::StringType->new;
- my $schema = KinoSearch::Plan::Schema->new;
+ my $type = Lucy::Plan::StringType->new;
+ my $schema = Lucy::Plan::Schema->new;
$schema->spec_field( name => 'category', type => $type );
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $type = KinoSearch::Plan::StringType->new(
+ my $type = Lucy::Plan::StringType->new(
boost => 0.1, # default: 1.0
indexed => 1, # default: true
stored => 1, # default: true
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/ANDQuery.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/ANDQuery.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/ANDQuery.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/ANDQuery.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $foo_and_bar_query = KinoSearch::Search::ANDQuery->new(
+ my $foo_and_bar_query = Lucy::Search::ANDQuery->new(
children => [ $foo_query, $bar_query ],
);
my $hits = $searcher->hits( query => $foo_and_bar_query );
@@ -31,7 +31,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $foo_and_bar_query = KinoSearch::Search::ANDQuery->new(
+ my $foo_and_bar_query = Lucy::Search::ANDQuery->new(
children => [ $foo_query, $bar_query ],
);
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/Collector.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/Collector.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/Collector.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/Collector.pm Wed Nov 3 03:31:37 2010
@@ -24,7 +24,7 @@ __BINDING__
my $constructor = <<'END_CONSTRUCTOR';
package MyCollector;
- use base qw( KinoSearch::Search::Collector );
+ use base qw( Lucy::Search::Collector );
our %foo;
sub new {
my $self = shift->SUPER::new;
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/Collector/BitCollector.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/Collector/BitCollector.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/Collector/BitCollector.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/Collector/BitCollector.pm Wed Nov 3 03:31:37 2010
@@ -23,10 +23,10 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $bit_vec = KinoSearch::Object::BitVector->new(
+ my $bit_vec = Lucy::Object::BitVector->new(
capacity => $searcher->doc_max + 1,
);
- my $bit_collector = KinoSearch::Search::Collector::BitCollector->new(
+ my $bit_collector = Lucy::Search::Collector::BitCollector->new(
bit_vector => $bit_vec,
);
$searcher->collect(
@@ -36,7 +36,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $bit_collector = KinoSearch::Search::Collector::BitCollector->new(
+ my $bit_collector = Lucy::Search::Collector::BitCollector->new(
bit_vector => $bit_vec, # required
);
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/Compiler.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/Compiler.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/Compiler.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/Compiler.pm Wed Nov 3 03:31:37 2010
@@ -25,7 +25,7 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
# (Compiler is an abstract base class.)
package MyCompiler;
- use base qw( KinoSearch::Search::Compiler );
+ use base qw( Lucy::Search::Compiler );
sub make_matcher {
my $self = shift;
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/IndexSearcher.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/IndexSearcher.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/IndexSearcher.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/IndexSearcher.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $searcher = KinoSearch::Search::IndexSearcher->new(
+ my $searcher = Lucy::Search::IndexSearcher->new(
index => '/path/to/index'
);
my $hits = $searcher->hits(
@@ -34,7 +34,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $searcher = KinoSearch::Search::IndexSearcher->new(
+ my $searcher = Lucy::Search::IndexSearcher->new(
index => '/path/to/index'
);
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/LeafQuery.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/LeafQuery.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/LeafQuery.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/LeafQuery.pm Wed Nov 3 03:31:37 2010
@@ -24,7 +24,7 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
package MyQueryParser;
- use base qw( KinoSearch::Search::QueryParser );
+ use base qw( Lucy::Search::QueryParser );
sub expand_leaf {
my ( $self, $leaf_query ) = @_;
@@ -41,7 +41,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $leaf_query = KinoSearch::Search::LeafQuery->new(
+ my $leaf_query = Lucy::Search::LeafQuery->new(
text => '"three blind mice"', # required
field => 'content', # default: undef
);
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/MatchAllQuery.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/MatchAllQuery.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/MatchAllQuery.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/MatchAllQuery.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $constructor = <<'END_CONSTRUCTOR';
- my $match_all_query = KinoSearch::Search::MatchAllQuery->new;
+ my $match_all_query = Lucy::Search::MatchAllQuery->new;
END_CONSTRUCTOR
Clownfish::Binding::Perl::Class->register(
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/NOTQuery.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/NOTQuery.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/NOTQuery.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/NOTQuery.pm Wed Nov 3 03:31:37 2010
@@ -23,10 +23,10 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $not_bar_query = KinoSearch::Search::NOTQuery->new(
+ my $not_bar_query = Lucy::Search::NOTQuery->new(
negated_query => $bar_query,
);
- my $foo_and_not_bar_query = KinoSearch::Search::ANDQuery->new(
+ my $foo_and_not_bar_query = Lucy::Search::ANDQuery->new(
children => [ $foo_query, $not_bar_query ].
);
my $hits = $searcher->hits( query => $foo_and_not_bar_query );
@@ -34,7 +34,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $not_query = KinoSearch::Search::NOTQuery->new(
+ my $not_query = Lucy::Search::NOTQuery->new(
negated_query => $query,
);
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/NoMatchQuery.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/NoMatchQuery.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/NoMatchQuery.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/NoMatchQuery.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $constructor = <<'END_CONSTRUCTOR';
- my $no_match_query = KinoSearch::Search::NoMatchQuery->new;
+ my $no_match_query = Lucy::Search::NoMatchQuery->new;
END_CONSTRUCTOR
Clownfish::Binding::Perl::Class->register(
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/ORQuery.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/ORQuery.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/ORQuery.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/ORQuery.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $foo_or_bar_query = KinoSearch::Search::ORQuery->new(
+ my $foo_or_bar_query = Lucy::Search::ORQuery->new(
children => [ $foo_query, $bar_query ],
);
my $hits = $searcher->hits( query => $foo_or_bar_query );
@@ -31,7 +31,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $foo_or_bar_query = KinoSearch::Search::ORQuery->new(
+ my $foo_or_bar_query = Lucy::Search::ORQuery->new(
children => [ $foo_query, $bar_query ],
);
END_CONSTRUCTOR
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/PhraseQuery.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/PhraseQuery.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/PhraseQuery.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/PhraseQuery.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $phrase_query = KinoSearch::Search::PhraseQuery->new(
+ my $phrase_query = Lucy::Search::PhraseQuery->new(
field => 'content',
terms => [qw( the who )],
);
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/PolyQuery.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/PolyQuery.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/PolyQuery.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/PolyQuery.pm Wed Nov 3 03:31:37 2010
@@ -25,13 +25,13 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
sub walk {
my $query = shift;
- if ( $query->isa("KinoSearch::Search::PolyQuery") ) {
- if ( $query->isa("KinoSearch::Search::ORQuery") ) { ... }
- elsif ( $query->isa("KinoSearch::Search::ANDQuery") ) { ... }
- elsif ( $query->isa("KinoSearch::Search::RequiredOptionalQuery") ) {
+ if ( $query->isa("Lucy::Search::PolyQuery") ) {
+ if ( $query->isa("Lucy::Search::ORQuery") ) { ... }
+ elsif ( $query->isa("Lucy::Search::ANDQuery") ) { ... }
+ elsif ( $query->isa("Lucy::Search::RequiredOptionalQuery") ) {
...
}
- elsif ( $query->isa("KinoSearch::Search::NOTQuery") ) { ... }
+ elsif ( $query->isa("Lucy::Search::NOTQuery") ) { ... }
}
else { ... }
}
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/PolySearcher.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/PolySearcher.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/PolySearcher.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/PolySearcher.pm Wed Nov 3 03:31:37 2010
@@ -25,13 +25,13 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
my $schema = MySchema->new;
for my $server_name (@server_names) {
- push @searchers, KSx::Remote::SearchClient->new(
+ push @searchers, LucyX::Remote::SearchClient->new(
peer_address => "$server_name:$port",
password => $pass,
schema => $schema,
);
}
- my $poly_searcher = KinoSearch::Search::PolySearcher->new(
+ my $poly_searcher = Lucy::Search::PolySearcher->new(
schema => $schema,
searchers => \@searchers,
);
@@ -39,7 +39,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $poly_searcher = KinoSearch::Search::PolySearcher->new(
+ my $poly_searcher = Lucy::Search::PolySearcher->new(
schema => $schema,
searchers => \@searchers,
);
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/Query.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/Query.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/Query.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/Query.pm Wed Nov 3 03:31:37 2010
@@ -25,7 +25,7 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
# Query is an abstract base class.
package MyQuery;
- use base qw( KinoSearch::Search::Query );
+ use base qw( Lucy::Search::Query );
sub make_compiler {
my $self = shift;
@@ -33,7 +33,7 @@ my $synopsis = <<'END_SYNOPSIS';
}
package MyCompiler;
- use base ( KinoSearch::Search::Compiler );
+ use base ( Lucy::Search::Compiler );
...
END_SYNOPSIS
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/QueryParser.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/QueryParser.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/QueryParser.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/QueryParser.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $query_parser = KinoSearch::Search::QueryParser->new(
+ my $query_parser = Lucy::Search::QueryParser->new(
schema => $searcher->get_schema,
fields => ['body'],
);
@@ -32,7 +32,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $query_parser = KinoSearch::Search::QueryParser->new(
+ my $query_parser = Lucy::Search::QueryParser->new(
schema => $searcher->get_schema, # required
analyzer => $analyzer, # overrides schema
fields => ['bodytext'], # default: indexed fields
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/RangeQuery.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/RangeQuery.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/RangeQuery.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/RangeQuery.pm Wed Nov 3 03:31:37 2010
@@ -24,16 +24,16 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
# Match all articles by "Foo" published since the year 2000.
- my $range_query = KinoSearch::Search::RangeQuery->new(
+ my $range_query = Lucy::Search::RangeQuery->new(
field => 'publication_date',
lower_term => '2000-01-01',
include_lower => 1,
);
- my $author_query = KinoSearch::Search::TermQuery->new(
+ my $author_query = Lucy::Search::TermQuery->new(
field => 'author_last_name',
text => 'Foo',
);
- my $and_query = KinoSearch::Search::ANDQuery->new(
+ my $and_query = Lucy::Search::ANDQuery->new(
children => [ $range_query, $author_query ],
);
my $hits = $searcher->hits( query => $and_query );
@@ -41,7 +41,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $range_query = KinoSearch::Search::RangeQuery->new(
+ my $range_query = Lucy::Search::RangeQuery->new(
field => 'product_number', # required
lower_term => '003', # see below
upper_term => '060', # see below
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/RequiredOptionalQuery.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/RequiredOptionalQuery.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/RequiredOptionalQuery.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/RequiredOptionalQuery.pm Wed Nov 3 03:31:37 2010
@@ -23,7 +23,7 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $foo_and_maybe_bar = KinoSearch::Search::RequiredOptionalQuery->new(
+ my $foo_and_maybe_bar = Lucy::Search::RequiredOptionalQuery->new(
required_query => $foo_query,
optional_query => $bar_query,
);
@@ -32,7 +32,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $reqopt_query = KinoSearch::Search::RequiredOptionalQuery->new(
+ my $reqopt_query = Lucy::Search::RequiredOptionalQuery->new(
required_query => $foo_query, # required
optional_query => $bar_query, # required
);
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/Searcher.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/Searcher.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/Searcher.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/Searcher.pm Wed Nov 3 03:31:37 2010
@@ -24,7 +24,7 @@ __BINDING__
my $constructor = <<'END_CONSTRUCTOR';
package MySearcher;
- use base qw( KinoSearch::Search::Searcher );
+ use base qw( Lucy::Search::Searcher );
sub new {
my $self = shift->SUPER::new;
...
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/SortRule.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/SortRule.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/SortRule.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/SortRule.pm Wed Nov 3 03:31:37 2010
@@ -45,19 +45,19 @@ OUTPUT: RETVAL
END_XS_CODE
my $synopsis = <<'END_SYNOPSIS';
- my $sort_spec = KinoSearch::Search::SortSpec->new(
+ my $sort_spec = Lucy::Search::SortSpec->new(
rules => [
- KinoSearch::Search::SortRule->new( field => 'date' ),
- KinoSearch::Search::SortRule->new( type => 'doc_id' ),
+ Lucy::Search::SortRule->new( field => 'date' ),
+ Lucy::Search::SortRule->new( type => 'doc_id' ),
],
);
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $by_title = KinoSearch::Search::SortRule->new( field => 'title' );
- my $by_score = KinoSearch::Search::SortRule->new( type => 'score' );
- my $by_doc_id = KinoSearch::Search::SortRule->new( type => 'doc_id' );
- my $reverse_date = KinoSearch::Search::SortRule->new(
+ my $by_title = Lucy::Search::SortRule->new( field => 'title' );
+ my $by_score = Lucy::Search::SortRule->new( type => 'score' );
+ my $by_doc_id = Lucy::Search::SortRule->new( type => 'doc_id' );
+ my $reverse_date = Lucy::Search::SortRule->new(
field => 'date',
reverse => 1,
);
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/SortSpec.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/SortSpec.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/SortSpec.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/SortSpec.pm Wed Nov 3 03:31:37 2010
@@ -23,10 +23,10 @@ __END__
__BINDING__
my $synopsis = <<'END_SYNOPSIS';
- my $sort_spec = KinoSearch::Search::SortSpec->new(
+ my $sort_spec = Lucy::Search::SortSpec->new(
rules => [
- KinoSearch::Search::SortRule->new( field => 'date' ),
- KinoSearch::Search::SortRule->new( type => 'doc_id' ),
+ Lucy::Search::SortRule->new( field => 'date' ),
+ Lucy::Search::SortRule->new( type => 'doc_id' ),
],
);
my $hits = $searcher->hits(
@@ -36,7 +36,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $sort_spec = KinoSearch::Search::SortSpec->new( rules => \@rules );
+ my $sort_spec = Lucy::Search::SortSpec->new( rules => \@rules );
END_CONSTRUCTOR
Clownfish::Binding::Perl::Class->register(
Modified: incubator/lucy/trunk/perl/lib/KinoSearch/Search/Span.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/lib/KinoSearch/Search/Span.pm?rev=1030323&r1=1030322&r2=1030323&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/lib/KinoSearch/Search/Span.pm (original)
+++ incubator/lucy/trunk/perl/lib/KinoSearch/Search/Span.pm Wed Nov 3 03:31:37 2010
@@ -25,7 +25,7 @@ __BINDING__
my $synopsis = <<'END_SYNOPSIS';
my $combined_length = $upper_span->get_length
+ ( $upper_span->get_offset - $lower_span->get_offset );
- my $combined_span = KinoSearch::Search::Span->new(
+ my $combined_span = Lucy::Search::Span->new(
offset => $lower_span->get_offset,
length => $combined_length,
);
@@ -33,7 +33,7 @@ my $synopsis = <<'END_SYNOPSIS';
END_SYNOPSIS
my $constructor = <<'END_CONSTRUCTOR';
- my $span = KinoSearch::Search::Span->new(
+ my $span = Lucy::Search::Span->new(
offset => 75, # required
length => 7, # required
weight => 1.0, # default 0.0