Class UmbracoTreeSearcher
Used for internal Umbraco implementations of ISearchable
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 |
---|---|---|
ILocalization |
languageService | |
IEntity |
entityService | |
IUmbraco |
mapper | |
ISql |
sqlContext | |
IBack |
backOfficeExamineSearcher | |
IPublished |
publishedUrlProvider |
Methods
View SourceEntitySearch(UmbracoObjectTypes, String, Int32, Int64, out Int64, String)
Searches with the IEntity
Declaration
public IEnumerable<SearchResultEntity> EntitySearch(UmbracoObjectTypes objectType, string query, int pageSize, long pageIndex, out long totalFound, string searchFrom = null)
Parameters
Type | Name | Description |
---|---|---|
Umbraco |
objectType | |
System. |
query | |
System. |
pageSize | |
System. |
pageIndex | |
System. |
totalFound | |
System. |
searchFrom |
Returns
Type | Description |
---|---|
IEnumerable<Search |
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. |
query | |
Umbraco |
entityType | |
System. |
pageSize | |
System. |
pageIndex | |
System. |
totalFound | |
System. |
culture | |
System. |
searchFrom | A starting point for the search, generally a node id, but for members this is a member type alias |
System. |
ignoreUserStartNodes | If set to true, user and group start node permissions will be ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Search |