HTTPS SSH
Elastic Sphinx - easy cover for sphinx search

Copyright (c) 2014 Oleg Nechaev <lega911@gmail.com>
License: MIT


!Load and start server:

$ hg clone https://bitbucket.org/lega911/esphinx
$ mkdir app; cd app
$ python3 ../esphinx/server.py


!Make index:

$ curl -XPOST 'localhost:9000/index_name/index' -d '{
    "fields": {
        "content": "text",
        "type": "uint",
        "visible": "bool"
    }
}'


!Save object:

curl -XPOST 'localhost:9000/index_name/replace' -d '{
    "id": 1,
    "content": "some text, content",
    "type": 15,
    "visible": true
}'


!Do search:

curl -XPOST 'localhost:9000/index_name/search' -d '{
    "match": "text",
    "type": 15,
    "skip": 0,
    "limit": 15
}'