The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Terse::Es - Terse Elasticsearch.

VERSION

Version 0.02

SYNOPSIS

Quick summary of what the module does.

Perhaps a little code snippet.

package MyApp::Plugin::Es;

use base 'Terse::Plugin::Es';

sub connect_info {
	...
	return ($host, $user, $password);
}

1;

...

package MyApp::Model::Shiva;

use base 'Terse::Model::Es';

sub index { return 'shiva'; }

sub columns { 
	$_[0]->{_columns} ||= {
		id => {
			display => 'ID',
			table => {
				response => 8,
				sort => 1
			}
		},
		name => {
			alias => 'name.keyword',
			display => 'Name',
			table => {
				response => 1,
				sort => 1,
			}
		},
		type => { ... },
		body => { ... }
	};
}

sub jokes {
	my ($self, $t) = ($_[0]->clone(), $_[1]);
	$self->size = 10;
	$self->type = 'joke';
	return $self->search($t);
}

1;

AUTHOR

LNATION, <email at lnation.org>

BUGS

Please report any bugs or feature requests to bug-terse-es at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Terse-Es. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Terse::Es

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2023 by LNATION.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)