line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Elastic::Model::Store; |
2
|
|
|
|
|
|
|
$Elastic::Model::Store::VERSION = '0.52'; |
3
|
1
|
|
|
1
|
|
1006
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
4
|
|
|
|
|
|
|
with 'Elastic::Model::Role::Store'; |
5
|
1
|
|
|
1
|
|
6892
|
use namespace::autoclean; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
13
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
1; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=pod |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=encoding UTF-8 |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 NAME |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
Elastic::Model::Store - A default implementation of the Elasticsearch backend |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 VERSION |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
version 0.52 |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 DESCRIPTION |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
This is an empty class which provides the default implementation of |
24
|
|
|
|
|
|
|
the Elasticsearch backend as implemented in L<Elastic::Model::Role::Store>. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 IMPORTED ATTRIBUTES |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head2 L<es|Elastic::Model::Role::Store/es> |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 IMPORTED METHODS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 L<get_doc()|Elastic::Model::Role::Store/get_doc()> |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head2 L<doc_exists()|Elastic::Model::Role::Store/doc_exists()> |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head2 L<create_doc()|Elastic::Model::Role::Store/create_doc()> |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head2 L<index_doc()|Elastic::Model::Role::Store/index_doc()> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head2 L<delete_doc()|Elastic::Model::Role::Store/delete_doc()> |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 L<bulk()|Elastic::Model::Role::Store/bulk()> |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 L<search()|Elastic::Model::Role::Store/search()> |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 L<scrolled_search()|Elastic::Model::Role::Store/scrolled_search()> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 L<delete_by_query()|Elastic::Model::Role::Store/delete_by_query()> |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 L<index_exists()|Elastic::Model::Role::Store/index_exists()> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 L<create_index()|Elastic::Model::Role::Store/create_index()> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 L<delete_index()|Elastic::Model::Role::Store/delete_index()> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 L<refresh_index()|Elastic::Model::Role::Store/refresh_index()> |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 L<open_index()|Elastic::Model::Role::Store/open_index()> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 L<close_index()|Elastic::Model::Role::Store/close_index()> |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 L<update_index_settings()|Elastic::Model::Role::Store/update_index_settings()> |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head2 L<get_aliases()|Elastic::Model::Role::Store/get_aliases()> |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 L<put_aliases()|Elastic::Model::Role::Store/put_aliases()> |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head2 L<get_mapping()|Elastic::Model::Role::Store/get_mapping()> |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head2 L<put_mapping()|Elastic::Model::Role::Store/put_mapping()> |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head2 L<delete_mapping()|Elastic::Model::Role::Store/delete_mapping()> |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head2 L<reindex()|Elastic::Model::Role::Store/reindex()> |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head2 L<bootstrap_uniques()|Elastic::Model::Role::Store/bootstrap_uniques()> |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 L<create_unique_keys()|Elastic::Model::Role::Store/create_unique_keys()> |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head2 L<delete_unique_keys()|Elastic::Model::Role::Store/delete_unique_keys()> |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 AUTHOR |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Clinton Gormley <drtech@cpan.org> |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Clinton Gormley. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
91
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=cut |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
__END__ |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
# ABSTRACT: A default implementation of the Elasticsearch backend |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
|