Book Image

ElasticSearch Cookbook

By : Alberto Paro
Book Image

ElasticSearch Cookbook

By: Alberto Paro

Overview of this book

ElasticSearch is one of the most promising NoSQL technologies available and is built to provide a scalable search solution with built-in support for near real-time search and multi-tenancy. This practical guide is a complete reference for using ElasticSearch and covers 360 degrees of the ElasticSearch ecosystem. We will get started by showing you how to choose the correct transport layer, communicate with the server, and create custom internal actions for boosting tailored needs. Starting with the basics of the ElasticSearch architecture and how to efficiently index, search, and execute analytics on it, you will learn how to extend ElasticSearch by scripting and monitoring its behaviour. Step-by-step, this book will help you to improve your ability to manage data in indexing with more tailored mappings, along with searching and executing analytics with facets. The topics explored in the book also cover how to integrate ElasticSearch with Python and Java applications. This comprehensive guide will allow you to master storing, searching, and analyzing data with ElasticSearch.
Table of Contents (19 chapters)
ElasticSearch Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a site plugin


The site plugins do not add internal functionalities to ElasticSearch. They mainly are HTML web applications that work at the top of ElasticSearch. They generally provide high-level functionalities such as monitoring and administration. In Chapter 9, Cluster and Nodes Monitoring we already saw several kinds of site plugin: ElasticSearch-head and BigDesk.

Getting ready

You need a working ElasticSearch node, a web browser, and your preferred HTML editor.

How to do it...

For creating a site plugin, we need to perform the following steps:

  1. The site plugin is one of the easiest ones to develop. It is mainly a standard web application composed by only HTML, JavaScript, and images. The easiest one is composed by the following index.html page:

    <!DOCTYPE html>
    <html>
      <head>
        <title>Simle site plugin</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    	<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap...