Author | date |
---|---|
Rain stars | 20190528 |
background
In the project you need to use a similar way like the sql query the data es.
method
Use wildcard query
dsl grammar
{
"query": {
"wildcard": {
"intf": "*measure*"
}
}
}
java client syntax
wildcardQuery("description", "*"+searchStr.toLowerCase()+"*")
Note that the wildcard does not recognize capitalization, word needs to be queried to lowercase.