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

PostgreSql Dialect add regular expression operators #5137

Closed
griffio opened this issue Apr 8, 2024 · 0 comments · Fixed by #5138
Closed

PostgreSql Dialect add regular expression operators #5137

griffio opened this issue Apr 8, 2024 · 0 comments · Fixed by #5138
Labels

Comments

@griffio
Copy link
Contributor

griffio commented Apr 8, 2024

Description

Add regex operators to support Text Searching, that work with new index support in #5124

POSIX regular expressions provide a more powerful means for pattern matching than the LIKE and SIMILAR TO operators.

https://www.postgresql.org/docs/15/functions-matching.html#FUNCTIONS-POSIX-REGEXP

Four operators that return boolean, work with TEXT data type

text ~ text → boolean
text ~* text → boolean
text !~ text → boolean
text !~* text → boolean
SELECT *
FROM Test
WHERE text ~ ?;

Can be implemented the same way as the JSON operators in #5100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant