Skip to content

support extra fields to be indexed #278

@valentijnscholten

Description

@valentijnscholten

By defauilt all CharFields and TextFields are indexed.

You can exclude some on registration by using exclude.

Alternatively you can specify the fields that you want to have indexed, and watson will only index these fields.

I would like the possibility to keep indexing all CharFields and TextFields, but allow for extra fields to be specified on registration. For example sometimes you want to index one extra field or one field from a related model, i.e. 'parent__name'.

Currently you would have to manually list all the fields of model and then add the parent__name to the list and use this combined list at registration. There may be work around to hassle with the django meta internals, but it would be nicer to just be able to provide somthings 'extra_fields=()' on registration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions