You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`*_matches`| matches with `LIKE`| e.g. `q[email_matches]=%@gmail.com`|
419
+
|`*_does_not_match`| does not match with `LIKE`||
420
+
|`*_matches_any`| Matches any ||
421
+
|`*_matches_all`| Matches all ||
422
+
|`*_does_not_match_any`| Does not match any ||
423
+
|`*_does_not_match_all`| Does not match all ||
424
+
|`*_lt`| less than ||
425
+
|`*_lteq`| less than or equal ||
426
+
|`*_gt`| greater than ||
427
+
|`*_gteq`| greater than or equal ||
428
+
|`*_present`| not null and not empty | e.g. `q[name_present]=1` (SQL: `col is not null AND col != ''`) |
429
+
|`*_blank`| is null or empty. | (SQL: `col is null OR col = ''`) |
430
+
|`*_null`| is null ||
431
+
|`*_not_null`| is not null ||
432
+
|`*_in`| match any values in array | e.g. `q[name_in][]=Alice&q[name_in][]=Bob`|
433
+
|`*_not_in`| match none of values in array ||
434
+
|`*_lt_any`| Less than any | SQL: `col < value1 OR col < value2`|
435
+
|`*_lteq_any`| Less than or equal to any ||
436
+
|`*_gt_any`| Greater than any ||
437
+
|`*_gteq_any`| Greater than or equal to any ||
438
+
|`*_matches_any`|`*_does_not_match_any`| same as above but with `LIKE`|
439
+
|`*_lt_all`| Less than all | SQL: `col < value1 AND col < value2`|
440
+
|`*_lteq_all`| Less than or equal to all ||
441
+
|`*_gt_all`| Greater than all ||
442
+
|`*_gteq_all`| Greater than or equal to all ||
443
+
|`*_matches_all`| Matches all | same as above but with `LIKE`|
444
+
|`*_does_not_match_all`| Does not match all ||
445
+
|`*_not_eq_all`| none of values in a set ||
446
+
|`*_start`| Starts with | SQL: `col LIKE 'value%'`|
447
+
|`*_not_start`| Does not start with ||
448
+
|`*_start_any`| Starts with any of ||
449
+
|`*_start_all`| Starts with all of ||
450
+
|`*_not_start_any`| Does not start with any of ||
451
+
|`*_not_start_all`| Does not start with all of ||
452
+
|`*_end`| Ends with | SQL: `col LIKE '%value'`|
453
+
|`*_not_end`| Does not end with ||
454
+
|`*_end_any`| Ends with any of ||
455
+
|`*_end_all`| Ends with all of ||
456
+
|`*_not_end_any`|||
457
+
|`*_not_end_all`|||
458
+
|`*_cont`| Contains value | uses `LIKE`|
459
+
|`*_cont_any`| Contains any of ||
460
+
|`*_cont_all`| Contains all of ||
461
+
|`*_not_cont`| Does not contain |
462
+
|`*_not_cont_any`| Does not contain any of ||
463
+
|`*_not_cont_all`| Does not contain all of ||
464
+
|`*_true`| is true ||
465
+
|`*_false`| is false ||
466
+
437
467
438
468
(See full list: https://github.com/activerecord-hackery/ransack/blob/master/lib/ransack/locale/en.yml#L15 and [wiki](https://github.com/activerecord-hackery/ransack/wiki/Basic-Searching))
0 commit comments