This API create a new index:
If the index already exists, nothing is changed.
Parameters:
curl -XPOST "http://localhost:9091/indexes/my_index"
{
"num_docs" : 0,
"num_deleted_docs" : 0,
"settings" : { }
}
It is also possible to set the following settings:
curl -POST -H 'Content-Type: application/json' -d @my_payload \
"http://localhost:9091/indexes/my_index"
Where the payload file (my_payload) may contains those settings:
{
"similarity_class": "org.apache.lucene.search.similarities.ClassicSimilarity",
"master": {
"scheme": "http",
"host": "localhost",
"port": 9091,
"path": "/indexes",
"timeout": 60000,
"username": "login",
"password": "password",
"schema": "my_schema",
"index": "my_index"
},
"directory_type": "FSDirectory",
"merge_scheduler": "SERIAL",
"ram_buffer_size": "512",
"use_compound_file": true,
"enable_taxonomy_index": false,
"index_reader_warmer": "true",
"merged_segment_warmer": true
}