objectbox / objectbox/objectbox-dart

Filter DB Entries based on list content

Open
#477 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.