Elasticsearch Servlet Transport plugin

The wares transport plugin allows to use the REST interface over servlets.

License

License

Categories

Categories

Search Business Logic Libraries Elasticsearch
GroupId

GroupId

org.elasticsearch
ArtifactId

ArtifactId

elasticsearch-transport-wares
Last Version

Last Version

2.7.0
Release Date

Release Date

Type

Type

jar
Description

Description

Elasticsearch Servlet Transport plugin
The wares transport plugin allows to use the REST interface over servlets.
Project URL

Project URL

https://github.com/elastic/elasticsearch-transport-wares/
Source Code Management

Source Code Management

http://github.com/elastic/elasticsearch-transport-wares

Download elasticsearch-transport-wares

How to add to project

<!-- https://jarcasting.com/artifacts/org.elasticsearch/elasticsearch-transport-wares/ -->
<dependency>
    <groupId>org.elasticsearch</groupId>
    <artifactId>elasticsearch-transport-wares</artifactId>
    <version>2.7.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.elasticsearch/elasticsearch-transport-wares/
implementation 'org.elasticsearch:elasticsearch-transport-wares:2.7.0'
// https://jarcasting.com/artifacts/org.elasticsearch/elasticsearch-transport-wares/
implementation ("org.elasticsearch:elasticsearch-transport-wares:2.7.0")
'org.elasticsearch:elasticsearch-transport-wares:jar:2.7.0'
<dependency org="org.elasticsearch" name="elasticsearch-transport-wares" rev="2.7.0">
  <artifact name="elasticsearch-transport-wares" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.elasticsearch', module='elasticsearch-transport-wares', version='2.7.0')
)
libraryDependencies += "org.elasticsearch" % "elasticsearch-transport-wares" % "2.7.0"
[org.elasticsearch/elasticsearch-transport-wares "2.7.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.elasticsearch : elasticsearch jar 1.7.0
log4j : log4j jar 1.2.17

provided (1)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 3.0.1

Project Modules

There are no modules declared in this project.

Servlet Transport for Elasticsearch

The wares transport plugin allows to use the REST interface over servlets. You don't really install this plugin, but instead use the jar file in addition to elasticsearch itself in your web app using the maven repo:

<dependency>
    <groupId>org.elasticsearch</groupId>
    <artifactId>elasticsearch-transport-wares</artifactId>
    <version>2.6.0</version>
</dependency>
elasticsearch Wares Transport Plugin Documentation
master Build from source See below
es-1.7 2.7.0 2.7.0
es-1.6 2.6.0 2.6.0
es-1.5 2.5.0 2.5.0
es-1.4 2.4.1 2.4.1
es-1.3 2.3.0 2.3.0
es-1.2 2.2.0 2.2.0
es-1.0 2.0.0.RC1 2.0.0.RC1
es-0.90 1.8.0 1.8.0

Tomcat configuration (CORS filter)

The Tomcat configuration to allow CORS is:

<filter>
  <filter-name>CorsFilter</filter-name>
  <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
</filter>
<filter-mapping>
  <filter-name>CorsFilter</filter-name>
  <url-pattern>/*</url-pattern>
</filter-mapping>

Node resource

The node is registered as a servlet context attribute under elasticsearchNode so it is easily accessible from other web resources if needed.

You can also preregister your own node using elasticsearchNode servlet context attribute. It will be used by the NodeServlet.

License

This software is licensed under the Apache 2 license, quoted below.

Copyright 2009-2014 Elasticsearch <http://www.elasticsearch.org>

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
org.elasticsearch

elastic

Versions

Version
2.7.0
2.6.0
2.5.0
2.4.1
2.4.0
2.3.0
2.2.0
2.0.0.RC1
1.8.0
1.7.0
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
0.18.7
0.18.6
0.18.5
0.18.4
0.18.3
0.18.2
0.18.1
0.18.0
0.17.10
0.17.9
0.17.8
0.17.7
0.17.6
0.17.5
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.5
0.16.4
0.16.3
0.16.2
0.16.1
0.16.0
0.15.2
0.15.1
0.15.0