目录:
1.安装Elasticsearch
2.Elasticsearch概念
3.Elasticsearch索引
4.Elasticsearch查询
5.Elasticsearch聚合aggregations
6.Spring Data Elasticsearch入门
7.Repository文档操作
现有数据
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 8,
"max_score": 1,
"hits": [
{
"_index": "cars",
"_type": "transactions",
"_id": "S_Gqum4B7PzHx2flworH",
"_score": 1,
"_source": {
"price": 10000,
"color": "red",
"make": "honda",
"sold": "2019-10-28"
}
},
{
"_index": "cars",
"_type": "transactions",
"_id": "TPGqum4B7PzHx2flworH",
"_score": 1,
"_source": {
"price": 20000,
"color": "red",
"make": "honda",
"sold": "2019-11-05"
}
},
{
"_index": "cars",
"_type": "transactions",
"_id": "TfGqum4B7PzHx2flworI",
"_score": 1,
"_source": {
"price": 30000,
"color": "green",
"make": "ford",
"sold": "2019-05-18"
}
},
{
"_index": "cars",
"_type": "transactions",
"_id": "TvGqum4B7PzHx2flworI",
"_score": 1,
"_source": {
"price": 15000,
"color": "blue",
"make": "toyota",
"sold": "2019-07-02"
}
},
{
"_index": "cars",
"_type": "transactions",
"_id": "T_Gqum4B7PzHx2flworI",
"_score": 1,
"_source": {
"price": 12000,
"color": "green",
"make": "toyota",
"sold": "2019-08-19"
}
},
{
"_index": "cars",
"_type": "transactions",
"_id": "UPGqum4B7PzHx2flworI",
"_score": 1,
"_source": {
"price": 20000,