Skip to content

Document Query by Example does not support regex matching #3391

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

Closed
kmeyer-mbs opened this issue Mar 4, 2024 · 1 comment
Closed

Document Query by Example does not support regex matching #3391

kmeyer-mbs opened this issue Mar 4, 2024 · 1 comment
Assignees
Labels
type: documentation A documentation update

Comments

@kmeyer-mbs
Copy link

The documentation lists the regex StringMatcher that is not supported in JPA.

At the point

JPA -> Query by Example -> Usage

is written

Only supports starts/contains/ends/**regex** matching for strings and exact matching for other property types.

As discussed in ticket #1295, regex support is not possible with JPA. So the listing above should be corrected.

Also see comment by noxsicarius. This also caused me to search in the wrong direction for some time and I could not find an open issue. For this reason, I have created this new issue.

Thanks!

@kmeyer-mbs
Copy link
Author

I have seen that the documentation part comes from the general spring-data-commons part. However, this is not obvious to the reader of the documentation.

Here is a suggestion for a reference to the JPA restriction in the general part of the documentation as a pull request.

@mp911de mp911de added type: documentation A documentation update and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 5, 2024
@mp911de mp911de changed the title Update of the documentation regarding no StringMatcher regex support Document Query by Example does not support regex matching Mar 5, 2024
@mp911de mp911de added this to the 3.2.4 (2023.1.4) milestone Mar 5, 2024
@mp911de mp911de closed this as completed in 25a01df Mar 5, 2024
@mp911de mp911de self-assigned this Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

No branches or pull requests

3 participants