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

Query List<String> where element contains( 'part' ) #610

Open
MdSaLaMa opened this issue Mar 7, 2024 · 2 comments
Open

Query List<String> where element contains( 'part' ) #610

MdSaLaMa opened this issue Mar 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@MdSaLaMa
Copy link

MdSaLaMa commented Mar 7, 2024

Use case

_I am trying to query entities with property of type List<String>
that have any element contains some text.

Proposed solution

_ Add QueryCondition elementContains(String part) to QueryStringVectorProperty

@MdSaLaMa MdSaLaMa added the enhancement New feature or request label Mar 7, 2024
@greenrobot-team
Copy link
Member

There is containsElement(), does that work for you?

@greenrobot-team greenrobot-team added the more info required Needs more info to become actionable. Auto-closed if no response. label Mar 11, 2024
@MdSaLaMa
Copy link
Author

containsElement() checks for complete equality, I want to search inside every element in the list if it contains part.
Now i deal with that by storing the list as String and use contains()

@github-actions github-actions bot removed the more info required Needs more info to become actionable. Auto-closed if no response. label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants