objectbox / objectbox/objectbox-dart
Filter DB Entries based on list content
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.2k
- Forks
- 162
- Avg merge
- 15m
- Merged PRs (30d)
- 1
Description
Describe the solution you'd like
I am building a dictionary application and there I have a class Entry that has a List<String> of meanings.
If a user now searches query in the dictionary, I want to get every word that contains the query as a substring.
Example
/* Imagine those two entries in a objectbox DB*/
Entry dictEntry1 = Entry()
dictEntry1.meanings = ["test"];
Entry dictEntry2 = Entry()
dictEntry2.meanings = ["book"];
// This is the search term the user entered
String query = "tes";
Now I would like a way to query all Entrys in the DB that have "tes" as a substring of any of their meanings.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the ObjectBox Dart query support for list properties and substring matching, using the Entry.meanings example as the expected case. Confirm whether a query can match any string in the list, and consider the behavior for the sample entries and query "tes"; done means returning only dictEntry1 from the database.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100