Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Elasticsearch query syntax #50

Open
jasny opened this issue Jul 20, 2018 · 0 comments
Open

Elasticsearch query syntax #50

jasny opened this issue Jul 20, 2018 · 0 comments

Comments

@jasny
Copy link
Member

jasny commented Jul 20, 2018

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.

  • ?q=tag:foo
  • ?q=user.id:12345
  • ?q=date:[2018-01-01 TO 2018-12-31]

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.

@Minstel Minstel assigned Minstel and unassigned Minstel Aug 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants