Code Monkey home page Code Monkey logo

elastic-mule's Introduction

elasticMule

It's a simple component using the Jest client which allow you to connect mule esb and an elastic search cluster. To use it , you just have to add jar got with a mvn package command and add it to the classpath of your mule application.

pre-requisites Java 1.6

---------------------------------------------------
| Mule Elastic Search Plugin | ElasticSearch       |
---------------------------------------------------
| master                     | 0.19.11 -> master   |
---------------------------------------------------
| 0.1                        | 0.19.11 -> master   |
---------------------------------------------------

How to use it

In a mule flow application, you can use the ElasticSearchConnector class with the following instruction :


   <component doc:name="Elastic Search Connector">
      <singleton-object class="org.mule.elasticsearch.ElasticSearchConnector"  >
            <property key="clusterAddress" value="${mule.clusterAddress.property}"/>
       	 <property key="indexName" value="${mule.indexName.value}"/>
       	 <property key="indexType" value="${mule.indexType.value}"/>
      </singleton-object>
    </component>    

In your mule-app.properties, you'll have to define the following properties:

-------------------------------------------------------
|mule.clusterAddress.property=http://localhost:9200    |
|mule.indexName.value=indexName                        |
|mule.indexType.value=indexType                        |
-------------------------------------------------------

Supported operation

  • For the moment this component wait for a json document to index it in the index specified in the property file.
  • It can also creates an index and a type with an array of two specified values.

elastic-mule's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.