ElasticSearch Tutorial: Creating Documents

Documents in ES are equivalent to records in MySQL database tables.
Send: put or Post http://localhost:9200/xc_course/doc/id值
(ES will automatically generate an ID if you do not specify an id value)

like:

http://localhost:9200/xc_course/doc/4028e58161bcf7f40161bcf8b77c0000
{
    
    
	"name":"Bootstrap开发框架",
	"description":"Bootstrap是由Twitter推出的一个前台页面开发框架,在行业之中使用较为广泛。此开发框架包含了大量的CSS、JS程序代码,可以帮助开发者(尤其是不擅长页面开发的程序人员)轻松的实现一个不受浏览器限制的精美界面效果。",
	"studymodel":"201001"
}

Test with postman:

insert image description here

Guess you like

Origin blog.csdn.net/a772304419/article/details/132383615