Allow to search over custom field attributes
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 15/100
Research direction
Read the issue's pg_search reference and the multisearchable example to understand the reported JSONB limitation and static attribute list. The issue proposes research and changes in the pg_search gem but names no repository files or tests; start by investigating how that gem builds search queries for dynamic custom fields. Done means custom field attributes can be searched, though the issue does not define expected behavior or tests.
Written by the indexing model from the issue text.
Description
Search over a custom field model attributes has not a direct solution, the main problems I see are:
- jsonb format is not officially supported by pg_search see this
- custom fields are dynamic, while the list of attributes searchable is statically provided to the model, i.e:
multisearchable(
against: [:name, :charge_es, :charge_en, :charge_ca, :bio_es, :bio_en, :bio_ca],
...
Nevertheless I think it could be done with a bit of research and hacking on the pg_search gem (although it requires to deeply understand the queries behind the search).
- Dominant language
- Ruby
- Stars
- 79
- Forks
- 31
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 23
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing 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.
More from PopulateTools/gobierto
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PopulateTools/gobierto#4436 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
PopulateTools/gobierto#4435 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
PopulateTools/gobierto#4430 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
PopulateTools/gobierto#4311 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
PopulateTools/gobierto#4081 ·
Maintainers usually reply within 1 day
All issues in PopulateTools/gobierto
Similar issues
-
Bug Ruby
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
getsentry/sentry-ruby#3211 · 1 comment ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
internetee/registry#2984 ·
Maintainers usually reply within 6 days
-
interest-zsv
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
hitobito/hitobito_zsv#6 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ecosyste-ms/issues#862 ·
Maintainers usually reply within 1 day
-
Redis Lua error `@user_script:52: ERR value is not an integer or out of range` when `window_size` is configuredPossibly taken @mimosa claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day