| 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
Function Search(Of TEntity As {New, IdentifiedData}) (
term As String(),
queryId As Guid,
offset As Integer,
count As Integer?,
<OutAttribute> ByRef totalResults As Integer,
orderBy As ModelSort(Of TEntity)()
) As IEnumerable(Of TEntity)
generic<typename TEntity>
where TEntity : gcnew(), IdentifiedData
IEnumerable<TEntity>^ Search(
array<String^>^ term,
Guid queryId,
int offset,
Nullable<int> count,
[OutAttribute] int% totalResults,
array<ModelSort<TEntity>>^ orderBy
)
abstract Search :
term : string[] *
queryId : Guid *
offset : int *
count : Nullable<int> *
totalResults : int byref *
orderBy : ModelSort<'TEntity>[] -> IEnumerable<'TEntity> when 'TEntity : new() and 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:
IEnumerableTEntityThe entities which match the provided search
See Also