Peforms a full text search across multiple entity types.
Namespace:
Mindscape.LightSpeedAssembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
IList<SearchResult> Search( string searchQuery, params Type[] types ) |
Visual Basic (Declaration) |
---|
Function Search ( _ searchQuery As String, _ ParamArray types As Type() _ ) As IList(Of SearchResult) |
Parameters
- searchQuery
- Type: System..::.String
The search query.
- types
- Type: array<
System..::.Type
>[]()[]
The types to be queried.
Return Value
A collection of SearchResult objects.
Examples

IList<SearchResult> searchResults = unitOfWork.Search("bob", typeof(Customer), typeof(Dogsbody)); foreach (SearchResult sr in searchResults) { IPerson person = (IPerson)(sr.Entity); Console.WriteLine(person.Name + " scored " + sr.Score); }