Hi Reelsen,
Thanks for quick response. Below are curl call results:
curl http://localhost:9201/esIndex
{"esIndex":{"aliases":{},"mappings":{"esType":{"properties":{"@timestamp":{"type":"date"},"@version":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"alias":{"type":"text","analyzer":"str_index_analyzer","search_analyzer":"str_search_analyzer"},"boost_value":{"type":"long"},"category":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"pub_date":{"type":"long"},"search_suggetion":{"type":"boolean"},"tag":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"title":{"type":"text","analyzer":"str_index_analyzer","search_analyzer":"str_search_analyzer"},"type":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":256}}}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"esIndex","creation_date":"1530625714142","analysis":{"filter":{"substring":{"type":"nGram","min_gram":"1","max_gram":"20"}},"analyzer":{"str_index_analyzer":{"filter":["lowercase","substring"],"tokenizer":"keyword"},"str_search_analyzer":{"filter":["lowercase"],"tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"<uuid>","version":{"created":"6020399"}}}}}
Inserting records :
curl -X PUT "localhost:9201/esindex/estype/<id>" -H 'Content-Type: application/json' -d'
{
"pub_date": 1520346474000,
"@timestamp": "2018-03-06T14:27:54.666Z",
"boost_value": 1,
"search_suggetion": false,
"@version": "1",
"alias": "this is a test",
"id": "<id>",
"tag": "test",
"type": "estype",
"title": "this is a test",
}'
/_cat/indices gievs below output:
green open esindex uuid 5 1 14 0 976.9kb 488.4kb