| 1 |
# Licensed to Elasticsearch B.V. under one or more contributor |
| 2 |
# license agreements. See the NOTICE file distributed with |
| 3 |
# this work for additional information regarding copyright |
| 4 |
# ownership. Elasticsearch B.V. licenses this file to you under |
| 5 |
# the Apache License, Version 2.0 (the "License"); you may |
| 6 |
# not use this file except in compliance with the License. |
| 7 |
# You may obtain a copy of the License at |
| 8 |
# |
| 9 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
# |
| 11 |
# Unless required by applicable law or agreed to in writing, |
| 12 |
# software distributed under the License is distributed on an |
| 13 |
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 |
# KIND, either express or implied. See the License for the |
| 15 |
# specific language governing permissions and limitations |
| 16 |
# under the License. |
| 17 |
|
| 18 |
package Search::Elasticsearch::Client::8_0::Direct::Esql; |
| 19 |
$Search::Elasticsearch::Client::8_0::Direct::Esql::VERSION = '8.12'; |
| 20 |
use Moo; |
| 21 |
with 'Search::Elasticsearch::Client::8_0::Role::API'; |
| 22 |
with 'Search::Elasticsearch::Role::Client::Direct'; |
| 23 |
use namespace::clean; |
| 24 |
|
| 25 |
__PACKAGE__->_install_api('esql'); |
| 26 |
|
| 27 |
1; |
| 28 |
|
| 29 |
=pod |
| 30 |
|
| 31 |
=encoding UTF-8 |
| 32 |
|
| 33 |
=head1 NAME |
| 34 |
|
| 35 |
Search::Elasticsearch::Client::8_0::Direct::Esql - The Elasticsearch Query Language (ES|QL) provides a |
| 36 |
|
| 37 |
=head1 VERSION |
| 38 |
|
| 39 |
version 8.12 |
| 40 |
|
| 41 |
=head2 DESCRIPTION |
| 42 |
|
| 43 |
The full documentation for ES|QL feature is available here: |
| 44 |
L<https://www.elastic.co/guide/en/elasticsearch/reference/master/esql-apis.html> |
| 45 |
|
| 46 |
=head1 FOLLOW METHODS |
| 47 |
|
| 48 |
=head2 C<follow()> |
| 49 |
|
| 50 |
my $response = $es->esql->query( |
| 51 |
'body' => { |
| 52 |
'query' => 'FROM sample_data' |
| 53 |
} |
| 54 |
); |
| 55 |
|
| 56 |
An introduction to Elasticsearch Query Language is available here: |
| 57 |
L<https://www.elastic.co/guide/en/elasticsearch/reference/current/esql.html> |
| 58 |
|
| 59 |
=head1 AUTHOR |
| 60 |
|
| 61 |
Enrico Zimuel <[email protected]> |
| 62 |
|
| 63 |
=head1 COPYRIGHT AND LICENSE |
| 64 |
|
| 65 |
This software is Copyright (c) 2024 by Elasticsearch BV. |
| 66 |
|
| 67 |
This is free software, licensed under: |
| 68 |
|
| 69 |
The Apache License, Version 2.0, January 2004 |
| 70 |
|
| 71 |
=cut |
| 72 |
|
| 73 |
__END__ |
| 74 |
|
| 75 |
# ABSTRACT: The Elasticsearch Query Language (ES|QL) provides a |
| 76 |
powerful way to filter, transform, and analyze data stored in |
| 77 |
Elasticsearch, and in the future in other runtimes. |
| 78 |
It is designed to be easy to learn and use, by end users, |
| 79 |
SRE teams, application developers, and administrators. |
| 80 |
|