After following the documentation to enable Elasticsearch on the Query endpoint
elasticsearch.override.pageproviders=default_search,REST_API_SEARCH_ADAPTER
we observe the query below is still run without Elasticsearch
http://host:8080/nuxeo/api/v1/query/REST_API_SEARCH_ADAPTER?maxResults=100&query=select * from Document where ecm:currentLifeCycleState <> 'deleted'