Update search index registration in the plugin documentation #117

Closed
opened 2026-04-05 16:21:51 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 3/18/2026

Change Type

Correction

Area

Plugins

Proposed Changes

The plugin documentation currently shows registering search indexes with an indexes = [...] list in search.py, while the general search documentation uses @register_search on the SearchIndex class.

Since @register_search is the preferred approach going forward, the plugin documentation should be updated to reflect that. This would keep the examples consistent and make the recommended pattern clearer for plugin authors.

*Originally created by @pheus on 3/18/2026* ### Change Type Correction ### Area Plugins ### Proposed Changes The plugin documentation currently shows registering search indexes with an `indexes = [...]` list in `search.py`, while the general search documentation uses `@register_search` on the `SearchIndex` class. Since `@register_search` is the preferred approach going forward, the plugin documentation should be updated to reflect that. This would keep the examples consistent and make the recommended pattern clearer for plugin authors.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#117