Click or drag to resize

IFreetextSearchServiceSearchTEntity Method

Search the provider of freetext indexing for any term provided

Namespace:  SanteDB.Core.Services
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 2.2.1
Syntax
IEnumerable<TEntity> Search<TEntity>(
	string[] term,
	Guid queryId,
	int offset,
	int? count,
	out int totalResults,
	ModelSort<TEntity>[] orderBy
)
where TEntity : new(), IdentifiedData

Parameters

term
Type: SystemString
The search term(s) provided by the user
queryId
Type: SystemGuid
The unique identifier for the query (cached results)
offset
Type: SystemInt32
The offset of the first record to be returned
count
Type: SystemNullableInt32
The number of results which the caller wishes returned
totalResults
Type: SystemInt32
The total results matching the query
orderBy
Type: SanteDB.Core.Model.QueryModelSortTEntity
The ordering desired by the caller

Type Parameters

TEntity
The type of entity being searched

Return Value

Type: IEnumerableTEntity
The entities which match the provided search
See Also