update README

This commit is contained in:
shzhulin3 2021-03-26 10:08:09 +08:00
parent 77cf6eb7e9
commit 53ba94e2fa

View File

@ -182,17 +182,16 @@ fields返回指定字段值多个字段用逗号隔开
**布尔搜索** **布尔搜索**
"key_and":"content:京东 title:张三” // 并且 "key_and":"content:京东 author:张三" // 并且
"key":"content:京东 title:张三” // 或者 "key":"content:京东 author:张三" // 或者
"key":"content:京东” key_invert:” title:张三” // 排除 "key":"content:京东" key_invert:"author:张三" // 排除
**查询结果示例** **查询结果示例**
``` ```
{"code":0,"count":2,"hlWord":["京东"],"result":[{"doc_id":"1381","title":"测试标题1","score":2}, {"doc_id":"1382","title":"测试标题2","score":1}]} {"code":0,"count":2,"hlWord":["京东"],"result":[{"doc_id":"1381","title":"测试标题1","score":2}, {"doc_id":"1382","title":"测试标题2","score":1}]}
``` ```
其中code为返回码count为匹配到的结果总数hlWord为结果需要高亮的词语result为匹配到的详细信息score为匹配度得分默认由高到低排序。 其中code为返回码count为匹配到的结果总数hlWord为结果需要高亮的词语result为匹配到的详细信息score为匹配度得分默认由高到低排序。