Hi ,
I am using a simple mapping with multifield -
"entityName": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
This field contains email Ids of user like - example@sample.com
I am using a wildcard query to search in this field
boolQueryBuilder.should(QueryBuilders.wildcardQuery(entityName, "example@"));
Or
boolQueryBuilder.should(QueryBuilders.wildcardQuery(entityName, "example@sample"));
Or
boolQueryBuilder.should(QueryBuilders.wildcardQuery(entityName, "*@ *"));
And I am getting 0 results.
I have docs with entityName = ëxample@sample.com in elasticsearch.
Could you please help me in how I could enable special characters in searching.
I check query without special character is working fine.
Any help would be highly appreciated.