FTS - Term query not working

Hi,
Please find the index as:
“properties”: {
“field1”: {
“dynamic”: false,
“enabled”: true,
“properties”: {
“field2”: {
“dynamic”: false,
“enabled”: true,
“fields”: [
{
“docvalues”: true,
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “field2”,
“store”: true,
“type”: “text”
}
]
}
}
}

if i try below query for exact match, it does not work:
{
“term”: “ABC”,
“field”: “field1.field2”
}

Mostly, it is due to the analyzer mismatch.
Here the term query content isn’t getting analyzed and the default standard analyzer is lower casing the field contents during the indexing process.

Can you please check whether your field text is getting analyzed to something else?
You may test analyzers here - http://bleveanalysis.couchbase.com