Dancer::SearchApp::Entry - a search index entry
my $entry = Dancer::SearchApp::Entry->new({ url => 'http://www.example.com/', title => 'An Example', content => '<html>...</html>', language => 'en', mime_type => 'text/html', author => 'A. U. Thor', });
This is a aonvenience package to hold the information on an entry in the index. This should basically match whatever you have in the index, like an ORM or a glorified hash.
->url
->id
->mime_type
->author
->creation_date
->content
->title
->language
->from_es
Parses the elements as returned from Elasticsearch.
->basic_mime_type
if( 'text/plain' eq $item->basic_mime_type ) { print "<pre>" . $item->content . "</pre>" }
Converts
text/plain; encoding=Latin-1
to
text/plain
The public repository of this module is https://github.com/Corion/dancer-searchapp.
The public support forum of this module is https://perlmonks.org/.
I've given a talk about this module at Perl conferences:
German Perl Workshop 2016, German
Please report bugs in this module via the RT CPAN bug queue at https://rt.cpan.org/Public/Dist/Display.html?Name=Dancer-SearchApp or via mail to dancer-searchapp-Bugs@rt.cpan.org.
Max Maischein corion@cpan.org
corion@cpan.org
Copyright 2014-2016 by Max Maischein corion@cpan.org.
This module is released under the same terms as Perl itself.
To install Dancer::SearchApp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::SearchApp
CPAN shell
perl -MCPAN -e shell install Dancer::SearchApp
For more information on module installation, please visit the detailed CPAN module installation guide.