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

Support for indexing fields of related models? #6

Open
yuzhenmi opened this issue Nov 22, 2019 · 1 comment
Open

Support for indexing fields of related models? #6

yuzhenmi opened this issue Nov 22, 2019 · 1 comment

Comments

@yuzhenmi
Copy link

Hey, awesome library! I was disappointed to see that Django does not offer any support out of the box for FTS for real applications - using triggers and store procedures instead of indexing on the fly - which obviously does not scale on even a modest level of traffic.

For our use case, we'd like to index fields on related models through joins. One simple example to allude to is the ability to search for orders by line item descriptions. Briefly digging into the codebase, it does not look like this is currently supported.

I'd be happy to contribute something to make this work. Has this feature been thought about before? Any recommendations for how this should be tackled?

@eukreign
Copy link
Member

Thanks! I had originally submitted this code to Django as a PR but was eventually asked to do it as a separate project (see: django/django#7678).

Updating this library to work across multiple models is a non-trivial feature to implement. You are welcome to try and I'd be happy to review your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants