mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-24 13:40:31 +01: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…
x
Reference in New Issue
Block a user