You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been created from an older PR #11118
Is your proposal related to a problem?
It would be good to be able to simplify the model field configuration, allowing future upgrade paths with more consistent naming of internally used indexed fields.
Describe the solution you'd like
Allows any wagtail codebase to have multiple indexed fields (e.g. SearchField, etc) for any given model field. This can be useful if e.g. you would like to use different analysis or tokeniser settings for multiple ways of indexing a single model field.
Extends BaseField to contain a model_field_name attribute that defaults to field_name. Creates a new IndexedField that can hold the config to allow the Indexed model to generate multiple SearchField, AutocompleteField, FilterField objects from one.
Is your proposal related to a problem?
It would be good to be able to simplify the model field configuration, allowing future upgrade paths with more consistent naming of internally used indexed fields.
Describe the solution you'd like
Allows any wagtail codebase to have multiple indexed fields (e.g. SearchField, etc) for any given model field. This can be useful if e.g. you would like to use different analysis or tokeniser settings for multiple ways of indexing a single model field.
Extends BaseField to contain a model_field_name attribute that defaults to field_name. Creates a new IndexedField that can hold the config to allow the Indexed model to generate multiple SearchField, AutocompleteField, FilterField objects from one.
Additional context
Working on this
Anyone can contribute to this, however, we encourage investigation into ideas and suggestions before raising a PR.
View our contributing guidelines, add a comment to the issue once you’re ready to start.
The text was updated successfully, but these errors were encountered: