summaryrefslogtreecommitdiff
path: root/docs/perl
diff options
context:
space:
mode:
authorClinton Gormley <clint@traveljury.com>2014-03-09 19:45:16 +0100
committerClinton Gormley <clint@traveljury.com>2014-03-09 19:45:16 +0100
commit8383f271d1443d197328f9c7f30470f7fd441917 (patch)
treee7a83ebffce948d5980da3ca9fac3f1b06406960 /docs/perl
parent51f869cfc273a1ab8ae163831a39917f133e096c (diff)
[DOCS] Updated the Perl docs
Diffstat (limited to 'docs/perl')
-rw-r--r--docs/perl/index.asciidoc20
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/perl/index.asciidoc b/docs/perl/index.asciidoc
index 30adee262b..ebe2883b01 100644
--- a/docs/perl/index.asciidoc
+++ b/docs/perl/index.asciidoc
@@ -2,14 +2,14 @@
== Overview
-Elasticsearch.pm is the official Perl API for Elasticsearch. The full
-documentation is available on https://metacpan.org/module/Elasticsearch.
+Search::Elasticsearch is the official Perl API for Elasticsearch. The full
+documentation is available on https://metacpan.org/module/Search::Elasticsearch.
It can be installed with:
[source,sh]
------------------------------------
-cpanm Elasticsearch
+cpanm Search::Elasticsearch
------------------------------------
=== Features
@@ -36,13 +36,13 @@ This client provides:
[source,perl]
------------------------------------
-use Elasticsearch;
+use Search::Elasticsearch;
# Connect to localhost:9200:
-my $e = Elasticsearch->new();
+my $e = Search::Elasticsearch->new();
# Round-robin between two nodes:
-my $e = Elasticsearch->new(
+my $e = Search::Elasticsearch->new(
nodes => [
'search1:9200',
'search2:9200'
@@ -50,7 +50,7 @@ my $e = Elasticsearch->new(
);
# Connect to cluster at search1:9200, sniff all nodes and round-robin between them:
-my $e = Elasticsearch->new(
+my $e = Search::Elasticsearch->new(
nodes => 'search1:9200',
cxn_pool => 'Sniff'
);
@@ -92,11 +92,11 @@ The current version of the client supports the Elasticsearch 1.0 branch by
default, which is not backwards compatible with the 0.90 branch.
If you need to talk to a version of Elasticsearch before 1.0.0,
-please use `Elasticsearch::Client::0_90::Direct` as follows:
+please use `Search::Elasticsearch::Client::0_90::Direct` as follows:
[source,perl]
------------------------------------
- $es = Elasticsearch->new(
+ $es = Search::Elasticsearch->new(
client => '0_90::Direct'
);
------------------------------------
@@ -115,7 +115,7 @@ https://github.com/elasticsearch/elasticsearch-perl/blob/master/CONTRIBUTING.asc
== Copyright and License
-This software is Copyright (c) 2013 by Elasticsearch BV.
+This software is Copyright (c) 2013-2014 by Elasticsearch BV.
This is free software, licensed under:
https://github.com/elasticsearch/elasticsearch-perl/blob/master/LICENSE.txt[The Apache License Version 2.0].