<commit_before>Slingshot
=========

![Slingshot](https://github.com/karmi/slingshot/raw/master/slingshot.png)

_Slingshot_ aims to provide a rich Ruby API and DSL for the
[ElasticSearch](http://www.elasticsearch.org/) search engine/database.

_ElasticSearch_ is a scalable, distributed, highly-available,
RESTful database communicating by JSON over HTTP, based on [Lucene](http://lucene.apache.org/),
written in Java. It manages to very simple and very powerful at the same time.
You should seriously consider it to power search in your Ruby applications:
it will deliver all the features you want — and many more you may have not
imagined yet (native geo search? histogram facets?)

_Slingshot_ currently allows basic operation with the index and searching. More is planned.


Installation
------------

First, you need a running _ElasticSearch_ server. Thankfully, it's easy. Let's define easy:

    $ curl -L -o elasticsearch-0.14.4.tar.gz http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.14.4.tar.gz
    $ tar -zxvf elasticsearch-0.14.4.tar.gz
    $ ./elasticsearch-0.14.4/bin/elasticsearch -f

OK, easy. Now, install the gem via Rubygems:

    $ gem install slingshot-rb<commit_msg>Added --insecure option to curl command in ES installation guide<commit_after>Slingshot
=========

![Slingshot](https://github.com/karmi/slingshot/raw/master/slingshot.png)

_Slingshot_ aims to provide a rich Ruby API and DSL for the
[ElasticSearch](http://www.elasticsearch.org/) search engine/database.

_ElasticSearch_ is a scalable, distributed, highly-available,
RESTful database communicating by JSON over HTTP, based on [Lucene](http://lucene.apache.org/),
written in Java. It manages to very simple and very powerful at the same time.
You should seriously consider it to power search in your Ruby applications:
it will deliver all the features you want — and many more you may have not
imagined yet (native geo search? histogram facets?)

_Slingshot_ currently allows basic operation with the index and searching. More is planned.


Installation
------------

First, you need a running _ElasticSearch_ server. Thankfully, it's easy. Let's define easy:

    $ curl -k -L -o elasticsearch-0.14.4.tar.gz http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.14.4.tar.gz
    $ tar -zxvf elasticsearch-0.14.4.tar.gz
    $ ./elasticsearch-0.14.4/bin/elasticsearch -f

OK, easy. Now, install the gem via Rubygems:

    $ gem install slingshot-rb
{'fraction_non_alphanumeric': 0.10388035569927244, 'fraction_numerical': 0.012934518997574777, 'mean_word_length': 4.07172131147541, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1250866', 'n_tokens_mistral': 744, 'n_tokens_neox': 717, 'n_words': 271}