Interface IEntitySearchService
Performs entity search directly against the database.
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IEntitySearchService
Methods
View SourceSearch(IEnumerable<UmbracoObjectTypes>, int, int)
Gets all entities of multiple object types with pagination.
Declaration
PagedModel<IEntitySlim> Search(IEnumerable<UmbracoObjectTypes> objectTypes, int skip = 0, int take = 100)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<UmbracoObjectTypes> | objectTypes | |
| int | skip | |
| int | take |
Returns
| Type | Description |
|---|---|
| PagedModel<IEntitySlim> |
Remarks
This method has a no-op default implementation.
Search(IEnumerable<UmbracoObjectTypes>, string, int, int)
Searches entities of multiple object types by query string.
Declaration
PagedModel<IEntitySlim> Search(IEnumerable<UmbracoObjectTypes> objectTypes, string query, int skip = 0, int take = 100)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<UmbracoObjectTypes> | objectTypes | |
| string | query | |
| int | skip | |
| int | take |
Returns
| Type | Description |
|---|---|
| PagedModel<IEntitySlim> |
Remarks
This method has a no-op default implementation.
Search(UmbracoObjectTypes, string, int, int)
Searches for entities of a given object type using a query string.
Declaration
PagedModel<IEntitySlim> Search(UmbracoObjectTypes objectType, string query, int skip = 0, int take = 100)
Parameters
| Type | Name | Description |
|---|---|---|
| UmbracoObjectTypes | objectType | The type of entities to search for. |
| string | query | The search query string. |
| int | skip | The number of results to skip for pagination. |
| int | take | The maximum number of results to return. |
Returns
| Type | Description |
|---|---|
| PagedModel<IEntitySlim> | A paged model containing the matching entities. |