App::CSE - Code search engine. Implements the 'cse' program
Using system wide cpan:
sudo cpan -i App::CSE
Using cpanm:
cpanm App::CSE
cse
See App::CSE::Command::Help For a description the available commands.
In addition of using this via the command line program 'cse', you can use this app in an object oriented way.
For instance:
my $app = App::CSE->new( { command_name => 'index', options => { 'idx' => '/path/to/the/index' , 'dir' => '/code/directory/to/index' }); if( $app->execute() ){ .. and error occured .. }else{ .. It is a success .. }
Retrieving search hits after a search:
my $app = App::CSE->new( { command_name => 'search', args => [ 'search_query' ], options => { 'idx' => '/path/to/the/index' , 'dir' => '/code/directory/to/index' }); my $hits = $app->command()->hits(); # This is a L<Lucy::Search::Hits>
See App::CSE::Command::Help for a list of available commands and options.
App::CSE uses Log::Log4perl
See App::CSE::Command::Help
To install App::CSE, copy and paste the appropriate command in to your terminal.
cpanm
CPAN shell
perl -MCPAN -e shell install App::CSE
For more information on module installation, please visit the detailed CPAN module installation guide.