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

Use tsvector for full text search, or allow custom filters #356

Open
emarchak opened this issue Jun 29, 2023 · 2 comments
Open

Use tsvector for full text search, or allow custom filters #356

emarchak opened this issue Jun 29, 2023 · 2 comments

Comments

@emarchak
Copy link

emarchak commented Jun 29, 2023

Is your feature request related to a problem? Please describe.
We're looking to leverage tsvector for our full text search, but we really like Flop for all the param/filter handling that it can do.

Some discussion from the postgres documentation on why tsvector is awesome for full text search

Describe the solution you'd like
This library might not want to tie itself directly to postgres, so one potential option is to allow us to roll some custom filters in the API. I scanned the hexdocs, but it doesn't look like there's support for that at the moment.

Describe alternatives you've considered
We're very happy to contribute a PR to help unblock this issue, either for supporting tsvector or custom filters! Whatever supports the direction that Flop is looking to grow into.

Additional context

cc @nathan-yuen

@woylie
Copy link
Owner

woylie commented Jun 29, 2023

Thanks for opening the issue. We have custom fields, which should allow you to model this: https://hexdocs.pm/flop/Flop.Schema.html#module-custom-fields

@emarchak
Copy link
Author

Thanks! We'll give that a try!

@linear linear bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 16, 2024
@woylie woylie reopened this Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants