ElasticSearch ----------- 使用教程1(goland作为工具)

1、<service>:9200/index/type/id

index:相当于database

type:相当于table

id:相当于每条记录的id

2、使用goland内置的testRestful Web Service对ElasticSearch进行增删改查

ElasticSearch ----------- 使用教程1(goland作为工具)

2.1、进行查询:GET

ElasticSearch ----------- 使用教程1(goland作为工具)

结果:现在里面还没有数据

ElasticSearch ----------- 使用教程1(goland作为工具)

2.2、添加数据:POST

ElasticSearch ----------- 使用教程1(goland作为工具)

添加完成:result:created

ElasticSearch ----------- 使用教程1(goland作为工具)

查询添加后的数据:

ElasticSearch ----------- 使用教程1(goland作为工具)

2.3、查询全部记录:

ElasticSearch ----------- 使用教程1(goland作为工具)

2.4、有条件的查询记录:

ElasticSearch ----------- 使用教程1(goland作为工具)

ElasticSearch ----------- 使用教程1(goland作为工具)

2.5、查询表结构;

ElasticSearch ----------- 使用教程1(goland作为工具)