Fix #54 - [Legacy] Add ranged search option for numeric fields

This commit is contained in:
y.yerli 2024-08-22 18:16:03 +03:00 committed by Clemente Raposo
parent 21efc02bfe
commit 82fd1eeaf8

View file

@ -28,7 +28,9 @@
$filter_operator_map = [
'default' => [
'=' => [
'{field}_{type}' => 'values'
'{field}_{type}' => 'values',
'{field}_{type}_range_choice' => '{operator}',
'range_{field}_{type}' => '{target}'
],
'not_equal' => [
'{field}_{type}_range_choice' => '{operator}',
@ -44,10 +46,18 @@ $filter_operator_map = [
'{field}_{type}_range_choice' => '{operator}',
'range_{field}_{type}' => '{target}'
],
'greater_than_equals' => [
'{field}_{type}_range_choice' => '{operator}',
'range_{field}_{type}' => '{target}'
],
'less_than' => [
'{field}_{type}_range_choice' => '{operator}',
'range_{field}_{type}' => '{target}'
],
'less_than_equals' => [
'{field}_{type}_range_choice' => '{operator}',
'range_{field}_{type}' => '{target}'
],
'last_7_days' => [
'{field}_{type}_range_choice' => '{operator}',
'range_{field}_{type}' => '[{operator}]',