Elasticsearch是分布式搜索和分析引擎。
索引文档
PUT /articles/_doc/1
{
"title": "Python教程",
"content": "Python是一门优秀的编程语言"
}全文搜索
GET /articles/_search
{
"query": {
"multi_match": {
"query": "Python",
"fields": ["title", "content"]
}
}
}
评论 (0)
暂无评论,来发表第一条评论吧!
发表评论