<commit_before>.. _es-chapter:

===========================
 Maintaining ElasticSearch
===========================

Things to know about ElasticSearch
==================================

Input uses `ElasticSearch <http://www.elasticsearch.org/>`_ to power
search.

Input uses the `ElasticUtils
<https://github.com/mozilla/elasticutils>`_ library to interface with
ElasticSearch.


Installing ElasticSearch
========================

There's an installation guide on the ElasticSearch site.

http://www.elasticsearch.org/guide/reference/setup/installation.html

We're currently using 0.17.x in production.

.. Note::

   **Don't** use versions of ElasticSearch 0.19.9 or higher. Input doesn't
   currently work with that.


The directory you install Elastic in will hereafter be referred to as
``ELASTICDIR``.


Running ElasticSearch
=====================

Start Elastic Search by::<commit_msg>Update elasticsearch docs regarding the version to use<commit_after>.. _es-chapter:

===========================
 Maintaining ElasticSearch
===========================

Things to know about ElasticSearch
==================================

Input uses `ElasticSearch <http://www.elasticsearch.org/>`_ to power
search.

Input uses the `ElasticUtils
<https://github.com/mozilla/elasticutils>`_ library to interface with
ElasticSearch.


Installing ElasticSearch
========================

There's an installation guide on the ElasticSearch site:

http://www.elasticsearch.org/guide/reference/setup/installation.html

Use version 0.20.5:

http://www.elasticsearch.org/downloads/version-0-20-5/

The directory you install Elastic in will hereafter be referred to as
``ELASTICDIR``.


Running ElasticSearch
=====================

Start Elastic Search by::
{'fraction_non_alphanumeric': 0.2264367816091954, 'fraction_numerical': 0.008620689655172414, 'mean_word_length': 5.59469696969697, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 5, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6361488', 'n_tokens_mistral': 489, 'n_tokens_neox': 443, 'n_words': 143}