Create a new index
1 | curl -XDELETE http://192.168.3.11:9200/policy |
A new field mapping
1 | curl -XPOST http://192.168.3.11:9200/policy/fulltext/_mapping -d' |
Add data
1 | curl -XPOST http://192.168.3.11:9200/policy/fulltext/1 -d' |
Have a search
1 | curl -XPOST http://192.168.3.11:9200/policy/fulltext/_search -d' |
Check engine status
1 | curl -XGET http://192.168.3.11:9200/policy/_analyze?text=2017&tokenizer=ik_max_word |