ltonetwork / mongodb-rest

JSON REST server for MongoDB (using node.js)
MIT License
405 stars 143 forks source link

Elasticsearch query syntax #50

Open jasny opened 6 years ago

jasny commented 6 years ago

In addition to the query parameter, also support a q parameter. This uses the Elasticsearch uri query syntax.

The query should be converted to a MongoDB filter. Do not query to Elasticsearch.

https://www.elastic.co/guide/en/elasticsearch/reference/6.3/query-dsl-query-string-query.html#query-string-syntax https://www.elastic.co/guide/en/kibana/current/lucene-query.html https://www.elastic.co/guide/en/kibana/current/kuery-query.html

Queries will not do a full text search, so status:active doesn't mean status contains active, but status is active.