Skip to content

Case insensitive filtering #1846

Answered by aklish
Asky-GH asked this question in Q&A
Feb 17, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This is definitely possible and there are multiple mechanisms.

In Elide 4, RSQL is case insensitive by default. In Elide 5, RSQL is case sensitive by default but has case insensitive operators for in and not in. These can also be used with wildcards to get infix, prefix, and postfix behavior.

    private static final ComparisonOperator INI = new ComparisonOperator("=ini=", true);
    private static final ComparisonOperator NOT_INI = new ComparisonOperator("=outi=", true);

You can use these operators in queries like:
/post?filter=title=ini=*today*

If you want to change the case sensitivity globally, you can configure the RSQL filter dialect with a CaseSensitivityStrategy. In Spring, you ca…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Asky-GH
Comment options

Answer selected by aklish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants