代码拉取完成,页面将自动刷新
同步操作将从 Enoughee/校园互助平台 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
需要提前在虚拟机创建elasticsearch和kibana,并且加入统一网络,在kibana中配置文档
GET _search
{
"query": {
"match_all": {}
}
}
GET /campus/_search
{
"query": {
"match": {
"all": "后营2"
}
}
}
GET /campus/_analyze
{
"analyzer": "completion_analyzer",
"text": "一瓶"
}
GET /campus/_search
{
"query": {
"match_all": {}
}
}
GET /campus/_search
{
"query": {
"bool": {
"must": [
{
"match": {
"all": "后营2"
}
}
],
"must_not": [
{
"match": {
"userId": "17"
}
}
]
}
}
}
DELETE /campus
#校园
PUT /campus
{
"settings": {
"analysis": {
"analyzer": {
"text_anlyzer": {
"tokenizer": "ik_max_word",
"filter": "py"
},
"completion_analyzer": {
"tokenizer": "ik_max_word",
"filter": "py"
}
},
"filter": {
"py": {
"type": "pinyin",
"keep_full_pinyin": true,
"keep_joined_full_pinyin": true,
"keep_original": true,
"limit_first_letter_length": 16,
"remove_duplicated_term": true,
"none_chinese_pinyin_tokenize": false,
"keep_first_letter": true
}
}
}
},
"mappings": {
"properties": {
"id":{
"type": "keyword"
},
"name":{
"type": "text",
"analyzer": "text_anlyzer",
"search_analyzer": "ik_max_word",
"copy_to": "all"
},
"address":{
"type": "text",
"analyzer": "ik_smart",
"copy_to": "all"
},
"shopDesc":{
"type": "text",
"analyzer": "ik_smart",
"copy_to": "all"
},
"price":{
"type": "integer",
"index": false
},
"pic":{
"type": "keyword",
"index": false
},
"userId":{
"type": "keyword"
},
"sendId":{
"type": "keyword",
"index": false
},
"starTime":{
"type": "keyword",
"index": false
},
"endTime":{
"type": "keyword",
"copy_to": "all",
"index": false
},
"all":{
"type": "text",
"analyzer": "text_anlyzer",
"search_analyzer": "ik_smart"
},
"suggestion":{
"type": "completion",
"analyzer": "completion_analyzer"
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。