mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-06-17 18:10:04 +02:00
16 lines
296 B
Plaintext
16 lines
296 B
Plaintext
key = @{ASCII_ALPHANUMERIC+}
|
|
value = @{ASCII_ALPHANUMERIC*}
|
|
|
|
query = {key ~ ":" ~ value}
|
|
|
|
prgm = {SOI ~ expr ~ EOI}
|
|
expr = _{ term ~ (operation ~ term)* }
|
|
term = _{query | "(" ~ expr ~ ")" | not}
|
|
operation = _{ and | or }
|
|
and = {"AND"}
|
|
or = {"OR"}
|
|
|
|
not = {"NOT" ~ term}
|
|
|
|
WHITESPACE = _{ " " }
|