【ElasticSearch】示例

【ElasticSearch】示例

============================================================

1、类似 MySQL like 功能

============================================================

 

{
  "query": {
    "bool": {
      "must": [
        {
          "wildcard": {
            "title": {
              "wildcard": "*区县*",
              "boost": 1
            }
          }
        }
      ]
    }
  }
}

boolQueryBuilder.must(QueryBuilders.wildcardQuery("title", "*" + maps.get("title").toString() + "*"));

 

上一篇:Path for project must have only one segment


下一篇:如何从SAP中连接其他数据库