Kibana中的开发工具中:
1 2 3 4 5 6 7 8 9 10 | GET /es_info/_search { "query": { "wildcard": { "address": { "value": "广*" } } } } |
Java(Spring Data ElasticSearch):
1 2 3 | var nativeSearchQueryBuilder = new NativeSearchQueryBuilder().withFields("id"); var queryBuilder = QueryBuilders.boolQuery(); queryBuilder.must(QueryBuilders.wildcardQuery("address", "广*")); |