Elasticsearch Chinese API (i)

Source: Internet
Author: User
Tags jboss

Java API

This section describes the Java APIs supported by Elasticsearch. All elasticsearch operations are performed using the client object. Essentially, all operations are performed in parallel.

In addition, operations in the client are likely to accumulate and execute through bulk.

Maven

Elasticsearch is hosted in the MAVEN repository. For example, you can define the latest version in Pom.xml.

<dependency>    <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>${es.version}</version></dependency>
Deploying in the JBoss EAP6 module

The Elasticsearch and Lucene classes must be in the same JBoss module, and you should define them as follows module.xml .

<?xml version= "1.0" encoding= "UTF-8"?><ModuleName="Org.elasticsearch" ><Resources><!--Elasticsearch--<Resource-rootPath="Elasticsearch-1.4.1.jar"/><!--Lucene--<Resource-rootPath="Lucene-core-4.10.2.jar"/><Resource-rootPath="Lucene-analyzers-common-4.10.2.jar"/><Resource-rootPath="Lucene-queries-4.10.2.jar"/><Resource-rootPath="Lucene-memory-4.10.2.jar"/><Resource-rootPath="Lucene-highlighter-4.10.2.jar"/><Resource-rootPath="Lucene-queryparser-4.10.2.jar"/><Resource-rootPath="Lucene-sandbox-4.10.2.jar"/><Resource-rootPath="Lucene-suggest-4.10.2.jar"/><Resource-rootPath="Lucene-misc-4.10.2.jar"/><Resource-rootPath="Lucene-join-4.10.2.jar"/><Resource-rootPath="Lucene-grouping-4.10.2.jar"/><Resource-rootPath="Lucene-spatial-4.10.2.jar"/><Resource-rootPath="Lucene-expressions-4.10.2.jar"/><!--Insert Other resources here--</Resources><Dependencies><ModuleName="Sun.jdk"export="True" ><Imports><include path= "Sun/misc/Unsafe"/ > </imports> </module> <module  Name= "org.apache.log4j"/> < Module name= "org.apache.commons.logging"/> <module name=" Javax.api "/> </dependencies> </MODULE>           

Elasticsearch Chinese API (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.