Skip to content

Support for indexing fields of related models? #6

Open

Description

@yuzhenmi

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?

Activity

  1. eukreign commented on Nov 23, 2019

    @eukreign
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions