在ES中实现类似SQL中like的写法,使用match_phrase
mysql:
select * from tb1 where name like "%风清扬%"
ES:
"query": { "match_phrase": { "person.name": "风清扬" } }
在ES中实现类似SQL中like的写法,使用match_phrase
mysql:
select * from tb1 where name like "%风清扬%"
ES:
"query": { "match_phrase": { "person.name": "风清扬" } }