- Python 3.5+
- Elastic Search 2.x installed somewhere
- https://github.com/castlecms/elasticsearch-castle-scoring installed on ES
Just create a virtualenv and run the setup.py:
$ virtualenv-3.5 ./env $ ./env/bin/python setup.py develop
simple (localhost) dev:
$ ./env/bin/castlehps
more complex, with options (such as different elasticsearch host):
$ ./env/bin/castlehps --config=default_config.ini
A test might look like this:
curl -i http://127.0.0.1:8000?SearchableText=blah
Check out the example-query.json
for an example of a query being submitted
to the ElasticSearch instance.
A full list of options can be found by looking at the default_config.ini
file.