Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/honhimw/meilisearch-query-dashboard

Query on Meilisearch with simple DSL.
https://github.com/honhimw/meilisearch-query-dashboard

antlr4 meilisearch monaco-editor shadcn-vue

Last synced: 2 months ago
JSON representation

Query on Meilisearch with simple DSL.

Awesome Lists containing this project

README

        




Meilisearch Query Dashboard

### Preview

![/Query](./misc/screenshot_query.png "Query")
![/Query](./misc/screenshot_settings.png "Query")
![/Query](./misc/screenshot_settings_diff_view.png "Query")
![/Query](./misc/screenshot_tasks.png "Query")

## Simple Query DSL (Antlr4)

[See MsDsl.g4 here.](./antlr4/MsDsl.g4)

### 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.

```html
# :
```

---
### Sort

**Operators**
* \+ : ASC
* \- : DESC

```html
@sort : <+|->
```

---
### Search on

```html
@on :
```

## Example

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

Rendered Search params:
```json lines
{
"q": "'The Matrix'",
"filter": [
"id < 1000"
],
"sort": [
"id:desc"
],
"attributesToSearchOn": [
"title",
"genres"
],
// ...
}
```