line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Model::WebService::Lucene; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
46300
|
use base qw( WebService::Lucene Catalyst::Model ); |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
1798
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use strict; |
6
|
|
|
|
|
|
|
use warnings; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.05'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Catalyst::Model::WebService::Lucene - Use WebService::Lucene in your Catalyst application |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
package MyApp::Model::Lucene; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use base qw( Catalyst::Model::WebService::Lucene ); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__PACKAGE__->config( |
21
|
|
|
|
|
|
|
server => 'http://localhost:8080/lucene/' |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 DESCRIPTION |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
This module helps you use remote indexes via WebService::Lucene in your |
27
|
|
|
|
|
|
|
Catalyst application. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 METHODS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 COMPONENT( ) |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
passes your config options to L<WebService::Lucene>'s C<new> method. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub COMPONENT { |
38
|
|
|
|
|
|
|
my ( $class, $c, $config ) = @_; |
39
|
|
|
|
|
|
|
my $self = $class->new( $config->{ server } ); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
$self->config( $self->merge_config_hashes( $self->config, $config ) ); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
return $self; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 SEE ALSO |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=over 4 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=item * L<Catalyst> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item * L<WebService::Lucene> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=back |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 AUTHORS |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Brian Cassidy E<lt>bricas@cpan.orgE<gt> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Adam Paynter E<lt>adapay@cpan.orgE<gt> |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Copyright 2006-2009 National Adult Literacy Database |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
67
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
1; |