Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

posix regular expression operator #4317

Closed
tirumaraiselvan opened this issue Apr 7, 2020 · 4 comments
Closed

posix regular expression operator #4317

tirumaraiselvan opened this issue Apr 7, 2020 · 4 comments
Labels
c/server Related to server p/medium non-urgent issues/features that are candidates for being included in one of the upcoming sprints

Comments

@tirumaraiselvan
Copy link
Contributor

Currently, for regex match operations we have _similar and _nsimilar operators. These are based on Postgres' SIMILAR operator which is based on SQL standard definition of regular expression.

Postgres also has POSIX regular expression which might be more common in usage: https://www.postgresql.org/docs/current/functions-matching.html#FUNCTIONS-POSIX-REGEXP

We can add these operators to permissions and graphql schema.

@tirumaraiselvan tirumaraiselvan added c/server Related to server p/medium non-urgent issues/features that are candidates for being included in one of the upcoming sprints labels Apr 7, 2020
@christophediprima
Copy link
Contributor

christophediprima commented Jul 10, 2020

Is there some progress on that?
It looks like nobody is interested in searching with regular expressions? Is there another way to do it?

We wanted to use SIMILAR %(b|d)% but it is not key sensitive and ILIKE doesn't look to support regular expressions.

@trevordilley
Copy link

Would make a text search of users against both their first and last names much more straightforward!

@christophediprima
Copy link
Contributor

Is there any progress on this issue? It would help a lot in making searches faster.

@christophediprima
Copy link
Contributor

We cannot use lookAhead properly with SIMILAR TO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/server Related to server p/medium non-urgent issues/features that are candidates for being included in one of the upcoming sprints
Projects
None yet
Development

No branches or pull requests

3 participants