Last updated
Was this helpful?
Last updated
Was this helpful?
The search facility of the Umbraco Backoffice allows the searching 'across sections' of different types of Umbraco entities, for example Content, Media, Members. However 'by default' only a small subset of standard fields are searched:
An Umbraco implementation might have additional custom properties that it would be useful to include in a Backoffice Search. For example: an 'Organisation Name' property on a Member Type, or a 'Product Code' field for a 'Product' content item.
To add custom properties, it is required to register a custom implementation of IUmbracoTreeSearcherFields
. We recommend to override the existing UmbracoTreeSearcherFields
.
Your custom implementation needs to be registered in the container. For example in the Program.cs
file or in a composer, as an alternative.
or
The below example is using ILocalizationService
which is currently obselete and will be removed in v15. Use ILanguageService
instead.
You cannot use this to search on integer types in the index, as an example parentID
does not work.
For further extensibility of the Umbraco Backoffice search implementation check
All Nodes
Id, NodeId and Key
Media Nodes
UmbracoFileFieldName
Member Nodes
email, loginName
A guide to customization of Backoffice Search