integrating elastic search with mongodb using no-sql

5
Integrating Elastic Search With Mongodb Using No-SQL An insight about search engine: An application which provides the searched results of documents over the web for some itemized keywords. Here a series of document are found out which contains those specified keywords. Moreover, search engine is a pack of programs usually framed to be the Systems. More often than, Web Search engines perform its work by transmitting the data packets to retrieve the maxim amount of docs. Then an Indexer goes through these documents and formulates an Index depending on word count for every document. Several search engines use a varied algorithm to build Indices in such a way that uniquely worthy outcome is delivered to each & every query. Elastic search, Bobo Search, Index Tank, Apache Solr, Summa, Compass, Katta, Constellio ETC. are some of the search engines which are available in the Market. Also, every search engine has their own idiosyncrasy. An insight about Elastic search: Elastic Search is an immensely extensive Open Source search designed for nearly real-time search. It helps you to think through Herculean sized data. Elastic search is a type of distributed one. It indicates that each index can further be split into Shards and those themselves can have their many clones or none. Basic concepts of elastic search are NRT , Cluster , Node , Index , Type , Document , Shards & Replicas .

Upload: azilen-technologies-pvt-ltd

Post on 11-Apr-2017

112 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Integrating Elastic Search With Mongodb Using No-SQL

Integrating Elastic Search With Mongodb Using No-SQL

An insight about search engine:

An application which provides the searched results of documents over the webfor some itemized keywords. Here a series of document are found out whichcontains those specified keywords. Moreover, search engine is a pack ofprograms usually framed to be the Systems.

More often than, Web Search engines perform its work by transmitting the datapackets to retrieve the maxim amount of docs. Then an Indexer goes throughthese documents and formulates an Index depending on word count for everydocument. Several search engines use a varied algorithm to build Indices insuch a way that uniquely worthy outcome is delivered to each & every query.

Elastic search, Bobo Search, Index Tank, Apache Solr, Summa, Compass, Katta,Constellio ETC. are some of the search engines which are available in theMarket. Also, every search engine has their own idiosyncrasy.

An insight about Elastic search:

Elastic Search is an immensely extensive Open Source search designed fornearly real-time search. It helps you to think through Herculean sized data.Elastic search is a type of distributed one. It indicates that each index canfurther be split into Shards and those themselves can have their many clones or

none. Basic concepts of elastic search are NRT, Cluster, Node, Index, Type,

Document, Shards & Replicas.

Page 2: Integrating Elastic Search With Mongodb Using No-SQL

First of all download and install both the MongoDB and Elastic Search.

Introduction to the integration of MongoDB and Elastic search:

Maneuvering over furthermore you have to grab your attention on versions ofvaried elements. The synthesis of Elastic Search with MongoDB through a Riverplugin is liable to transferring the fl ow of data.

Addition Of Plugins Considering The Suitable Version:

NOTE: Above confi gurations are provided relating Linux system.

Page 3: Integrating Elastic Search With Mongodb Using No-SQL

Execute that command in terminal:

Once you install River plugin thereafter you have to start elasticsearch.bat fi lewhich is accessible in elastic search bin folder.

To view River MongoDB plugin you need to give the URL in the browser:

Configuring MongoDB

The only way to connect MongoDB and Elastic Search by exporting and thenimporting the data into the Elastic Search with the usage of the replication ofthe system of MongoDB.

For a more detailed description here you will find complete instructions relatedto create MongoDB replica.

A thorough description with complete instructions corresponding to the makingof MongoDB and elastic search is provided as follows.

Create a new index running river:

Syntax:

Page 4: Integrating Elastic Search With Mongodb Using No-SQL

Write the db Name, collection Name, index name , index type:

Example:

View index data in elastic search:

View specific index detail by “id”:

Discussion had been carried out about “How to integrate Elastic Search and

MongoDB ?”. Store large amount of schema-less data in MongoDB developmentand make data analytic and full text search using Elastic Search. MongoDBproviding a big data solution for large enterprise application.

Page 5: Integrating Elastic Search With Mongodb Using No-SQL