Class UmbracoTreeSearcher
Used for internal Umbraco implementations of ISearchableTree
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.Search
Assembly: Umbraco.Infrastructure.dll
Syntax
public class UmbracoTreeSearcher
Constructors
View SourceUmbracoTreeSearcher(ILocalizationService, IEntityService, IUmbracoMapper, ISqlContext, IBackOfficeExamineSearcher, IPublishedUrlProvider)
Declaration
public UmbracoTreeSearcher(ILocalizationService languageService, IEntityService entityService, IUmbracoMapper mapper, ISqlContext sqlContext, IBackOfficeExamineSearcher backOfficeExamineSearcher, IPublishedUrlProvider publishedUrlProvider)
Parameters
Type | Name | Description |
---|---|---|
ILocalizationService | languageService | |
IEntityService | entityService | |
IUmbracoMapper | mapper | |
ISqlContext | sqlContext | |
IBackOfficeExamineSearcher | backOfficeExamineSearcher | |
IPublishedUrlProvider | publishedUrlProvider |
Methods
View SourceEntitySearch(UmbracoObjectTypes, String, Int32, Int64, out Int64, String)
Searches with the IEntityService for results based on the entity type
Declaration
public IEnumerable<SearchResultEntity> EntitySearch(UmbracoObjectTypes objectType, string query, int pageSize, long pageIndex, out long totalFound, string searchFrom = null)
Parameters
Type | Name | Description |
---|---|---|
UmbracoObjectTypes | objectType | |
System.String | query | |
System.Int32 | pageSize | |
System.Int64 | pageIndex | |
System.Int64 | totalFound | |
System.String | searchFrom |
Returns
Type | Description |
---|---|
IEnumerable<SearchResultEntity> |
ExamineSearch(String, UmbracoEntityTypes, Int32, Int64, out Int64, String, String, Boolean)
Searches Examine for results based on the entity type
Declaration
public IEnumerable<SearchResultEntity> ExamineSearch(string query, UmbracoEntityTypes entityType, int pageSize, long pageIndex, out long totalFound, string culture = null, string searchFrom = null, bool ignoreUserStartNodes = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | query | |
UmbracoEntityTypes | entityType | |
System.Int32 | pageSize | |
System.Int64 | pageIndex | |
System.Int64 | totalFound | |
System.String | culture | |
System.String | searchFrom | A starting point for the search, generally a node id, but for members this is a member type alias |
System.Boolean | ignoreUserStartNodes | If set to true, user and group start node permissions will be ignored. |
Returns
Type | Description |
---|---|
IEnumerable<SearchResultEntity> |