Comments (4)
Ok, seems good to me as well!
from springfilter.
Not sure how to provide this feature.
As an operator (which symbol?), as a function? We can maybe put a flag in the config class and let the user decide the general behavior?
We may also not interfer at all, and directly call JPA's like function without applying uppercase as it is now. The user may then use a query as follows for case insensitive searches but it adds some complexity: uppercase(name) ~ '%DOE%'
from springfilter.
Mmh, general behaviour could not be the case, there are scenario where I'd rather prefer to perform a query as if i'm considering a function.
Maybe the uppercase function is the right way, so without interfering at all in JPA.
What about adding another token operator (if the grammar allows it) such as ~i '%DOE%'? This could means insensitive, while default ~ is just as if the query was seen from a database perspective?
from springfilter.
Not interfering with JPA looks like the best option.
Adding another operator means that it should also be implemented in MongoDB (and maybe other things to come) and it may not make sense in some cases. On top of that it opens too many doors which can easily complexify the current query syntax.
What I'll do is:
- Keep the current case insensitive behavior
- Add a config flag to disable this default behavior
- Add the uppercase function and some others
The query example I gave earlier could then be used to make a case insensitive search in case the default behavior is disabled.
from springfilter.
Related Issues (20)
- Conflicting ConversionService HOT 1
- Avoid duplicates HOT 5
- Escaping wildcard characters in "LIKE" queries HOT 2
- Add multiple joins in nested list HOT 1
- [MongoDB] $in with ObjectId HOT 2
- Global case insensitive search HOT 1
- Opportunity to use functions on the right side of the comparators HOT 1
- Discord Server HOT 2
- Unable to filter on List of Strings HOT 2
- Add new module for deserialization in the @Filter annotation HOT 4
- Implement `NotLike` value comparator. HOT 1
- Mongo filter collections HOT 3
- Showcase - how do you use Spring Filter? HOT 1
- Customizing the escape character for like operations (`~` and `~~`) HOT 3
- Filter by Map in Mongo HOT 1
- Mongo filtering nested fields not working in 3.x.x version HOT 2
- Case insensitive equals search
- Possible to filter without Spring boot controller? HOT 1
- MongoDB - query by DBRef HOT 2
- Make field not searchable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from springfilter.