一个对“web前端”和“互联网创业”有着浓厚兴趣的90后草根站长!
{ "match": { "title": "静夜思" }},
{ "match": { "content": "故人" }}
}'
类似
select *from poems where cat_id=1 and (title like '%静夜思%' or content like '%故人%');
如有问题,可以QQ搜索群1028468525加入群聊,欢迎一起研究技术
转载请注明:elasticsearch复杂搜索 出自老鄢博客 | 欢迎分享
表情