directus-extension-custom-search-okam v0.1.0
Search Configuration for Directus
Provides a way to configure the Directus search filters for a collection. This allows you to supercharge your Directus search field with AND/OR groups, strict equality, case-insensitive searches, and nested relational searches, fully under your control.
Installation
This plugin has not yet been published on NPM, but you can try installing it directly from GitHub.
Usage
Add a new field named
_search_configin the collection you with to add search configuration for.The field must have the key
_search_configat the moment. In the future we might add a way to configure this.Configure your filter in the
Search Configinterface options. Use$SEARCHas a placeholder for the user's search query.
Search the collection. Both app and API searches will now use the filter pattern you've specified. You can use nested relational fields for the search.

1 year ago