I want to do the full match query on elastic here is the data:
{
"organizationId": "ec1c691a4b43e65aebdb2ab9481",
"organizationName": "工業區"
}
If I use this code
QueryBuilder QueryBuilder = QueryBuilders.termQuery("organizationName","工");
it will get the data, but it's unreasonable
And I have try the following 2 code
QueryBuilder QueryBuilder = QueryBuilders.matchPhraseQuery("organizationName","工業");
QueryBuilder QueryBuilder = QueryBuilders.matchPhraseQuery("organizationName","業區");
Both return the data, but it's not full match
Can anyone help! Tks