package Main;
# PODNAME: koha-index
# ABSTRACT: Index Koha biblio/authority records
$Main::VERSION = '0.068';
use 5.010;
use utf8;
use warnings;
use strict;
use Koha::Contrib::Tamil::Indexer;
use Pod::Usage;

my $indexer = Koha::Contrib::Tamil::Indexer->new_with_options();
if ( $indexer->help ) {
    pod2usage( -verbose => 99 );



=encoding UTF-8

=head1 NAME

koha-index - Index Koha biblio/authority records

=head1 VERSION

version 0.068



 koha-index --verbose

 koha-index --source biblio --select queue

 koha-index --source authority --select all

 koha-index conf /etc/koha/mylib.xml --select queue \\
            --directory /tmp/koha-index-mylib --keep


Index queued biblio/autority record, or reindex the whole DB. Koha standard
environment variables must ne set appropriately: KOHA_CONF and PERL5LIB.

=head1 OPTIONS


=item --source

Select records to be indexed: C<biblio> or C<authority>. If not specified,
biblio by default.

=item --select

Select record to be indexed: C<all> or C<queue>. If not specified, C<all> is
selected. If C<all> is selected, zebra database is reset before indexing.

=item --directory

Directory where records to be indexed by Zebra are exported. If not specified,
a direcory named C<koha-index> is used, and if necessary created, in the
current directory. In this directory, sub-directories are created containing
records to be updated or deleted by Zebra. If those subdirectories already
exist, they are first emptied. The export directory tree is kept after zebra

=item --keep

Keep the directory, and its content, where biblio/authority records have been

=item --conf

Specify Koha configuration file.

=item --verbose

Increase the amount of logging. Normally only warnings and errors from the
indexing are shown.


=head1 SEE ALSO

=over 4

=item *



=head1 AUTHOR

Frédéric Demians <f.demians@tamil.fr>


This software is Copyright (c) 2022 by Fréderic Démians.

This is free software, licensed under:

  The GNU General Public License, Version 3, June 2007