mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 12:35:05 +08:00
update the facet filter grammar
This commit is contained in:
parent
216a8aa3b2
commit
6d70978edc
@ -16,10 +16,11 @@ neq = {key ~ "!=" ~ value}
|
|||||||
eq = {key ~ "=" ~ value}
|
eq = {key ~ "=" ~ value}
|
||||||
greater = {key ~ ">" ~ value}
|
greater = {key ~ ">" ~ value}
|
||||||
less = {key ~ "<" ~ value}
|
less = {key ~ "<" ~ value}
|
||||||
|
geo_radius = {"_geoRadius(" ~ value ~ "," ~ value ~ "," ~ value ~ ")"}
|
||||||
|
|
||||||
prgm = {SOI ~ expr ~ EOI}
|
prgm = {SOI ~ expr ~ EOI}
|
||||||
expr = _{ ( term ~ (operation ~ term)* ) }
|
expr = _{ ( term ~ (operation ~ term)* ) }
|
||||||
term = { ("(" ~ expr ~ ")") | condition | not }
|
term = { ("(" ~ expr ~ ")") | condition | not | geo_radius }
|
||||||
operation = _{ and | or }
|
operation = _{ and | or }
|
||||||
and = {"AND"}
|
and = {"AND"}
|
||||||
or = {"OR"}
|
or = {"OR"}
|
||||||
|
Loading…
Reference in New Issue
Block a user