...
In order to search without restrictions, using the full potential of Hawksearch, the connector provides the Optimizely.Hawksearch.Client package. This package contains classes which will correspond to the requests and responses provided by Hawksearch’s Search API.
SearchRequest
SearchResponse
...
For a better experience and easier development, we included in the Optimizely.Hawksearch.Connector package:
Request builders → Fluent APIs to create a search request
Search filters → Used for searching with facets
The Flow
Using only Optimizely.Hawksearch.Client
Create and populate a SearchRequest object
Use the Search method of the SearchClient class (or its async counterpart)
Code Block language c# public SearchResponse<T> Search<T>(SearchRequest searchRequest) where T : HawksearchBaseItem public async Task<SearchResponse<T>> SearchAsync<T>(SearchRequest searchRequest) where T : HawksearchBaseItem
Get the SearchResponse object then map it to your business models
Using both
Optimizely.Hawksearch.Client and Optimizely.Hawksearch.Connector
...