How to compare integer value of field with term query


#1

I have a Product document with field ‘Status’ as integer type
My mapping of Status field
“Status”: {
“dynamic”: false,
“enabled”: true,
“fields”: [
{
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “Status”,
“store”: true,
“type”: “number”
}
]
}
when i search via SDK like this:
SearchQuery.term(‘1’).field(‘Status’)
nothing rows returned
but when i search as querystring like this:
Status: 1 it work?
what wrong with term query in nodejs SDK.
couchnode version: 2.6.1
couchbase server version: 5.0