Skip to content

honhimW/meilisearch-query-dashboard

Repository files navigation

Meilisearch Query Dashboard

Preview

/Query /Query /Query /Query

Simple Query DSL (Antlr4)

See MsDsl.g4 here.

Filter

Operators

  • = : Equal
  • != : Unequal
  • > : Greater than
  • >= : Greater than or equal to
  • < : Less than
  • <= : Less than or equal to
  • like: CONTAINS('%any%') | STARTS WITH('%any') | ENDS WITH('any%') in (prototype-contains-starts-ends-with-filters-0)
  • q : another federation searchParams with only one attributes to search on.
#<attribute> : <operator> <value>

Sort

Operators

  • + : ASC
  • - : DESC
@sort : <+|-> <attribute>

Search on

@on : <attribute>

Example

DSL:

@on: title 'The Matrix' @sort : -id @on : 'genres' #id: <1000

Rendered Search params:

{
  "q": "'The Matrix'",
  "filter": [
    "id < 1000"
  ],
  "sort": [
    "id:desc"
  ],
  "attributesToSearchOn": [
    "title",
    "genres"
  ],
//  ...
}