BoolQueryBuilder paramFilter = QueryBuilders.boolQuery(); paramFilter.must(QueryBuilders.wildcardQuery(field, " "+key+" "));
can someone tell me how to use the caseInsitive
You can use the case_insensitive param introduced in 7.10 as described in official documents
GET /_search
{
"query": {
"wildcard": {
"user.id": {
"value": "ki*y",
"boost": 1.0,
"rewrite": "constant_score",
"case_insensitive" : true --> note this
}
}
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.