Elasticsearch
基本操作
put /gs-recommend-v2
{
"mappings": {
"properties": {
"_update": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"child_count": {
"type": "float"
},
"collection_count": {
"type": "float"
},
"comment_rating": {
"type": "float"
},
"commentcount": {
"type": "float"
},
"commentcount_within_1year": {
"type": "float"
},
"districtid": {
"type": "keyword"
},
"districtpath": {
"type": "text"
},
"officialpoiid": {
"type": "keyword"
},
"parentdistrictid": {
"type": "keyword"
},
"poiscore": {
"type": "float"
},
"price": {
"type": "float"
},
"recallscore": {
"type": "float"
},
"share_count": {
"type": "float"
},
"sight_rank": {
"type": "float"
},
"sortno": {
"type": "float"
},
"t_score_no_add": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"total_picnum": {
"type": "float"
},
"totalsales": {
"type": "float"
},
"uv_section": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"uvsum": {
"type": "float"
},
"feature": {
"type": "dense_vector",
"dims": 13
}
}
}
}检索数据
删除索引和数据
Python操作ES
Java操作ES
BoolQuery 的用法与特性
参考资料
Last updated