Elasticsearch搜索多个字段

时间:2016-08-24 01:35:53

标签: javascript node.js elasticsearch

我如何为这样的弹性搜索创建主体

select * from table where full_name like '%q%' or address like '%q%' or description like '%q%' order by full_name , description , address

1 个答案:

答案 0 :(得分:0)

您可以尝试以下操作。 。 。 https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html `

{
    "wildcard" : { "user" : "ki*y" }
}

`