Interchange-Search-Solr

 view release on metacpan or  search on metacpan

lib/Interchange/Search/Solr/UpdateIndex.pm  view on Meta::CPAN

58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
=head3 update
 
Updates index. Returns 1 on success.
 
Requires C<$mode> parameter which is either I<full>
or I<delta>.
 
=cut
 
sub update {
    my ($self, $mode) = @_;
    my ($update_url, $command, $request, $response);
 
    # reset status line
    $self->_set_status_line('');
 
    # construct url and request
    $update_url = $self->_construct_url($mode);
    $response = $self->agent->get($update_url);



( run in 0.225 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )