Skip to content

honhimW/meilisearch-query-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d78cf0d · Aug 13, 2024

History

46 Commits
May 31, 2024
Aug 6, 2024
Aug 6, 2024
May 12, 2024
Aug 13, 2024
May 12, 2024
May 12, 2024
May 12, 2024
Aug 6, 2024
May 12, 2024
May 12, 2024
May 12, 2024
Aug 6, 2024
Aug 6, 2024
May 12, 2024
May 12, 2024
May 12, 2024
May 12, 2024
May 12, 2024
May 31, 2024

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"
  ],
//  ...
}