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

Elasticsearch query syntax #50

@jasny

Description

@jasny

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions