I work in Java with Elastic-search and want to filter data by "contains string" parameter.
For example: retrieve a list of children whose names start with 'r'.
But search query (code below) returns the list of children with names equal (not contains) to 'r'.
I've tried "r*" - no luck.
builder.must(QueryBuilders.queryStringQuery("r*")
.field("child_name")
.lenient(true)
.escape(true)
.analyzeWildcard(false)
.fuzziness(Fuzziness.ZERO)
.defaultOperator(Operator.AND)
.boost(2.0f));
}
