Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

The Flow

  1. 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
    languagec#
    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

  1. Using both

Optimizely.Hawksearch.Client and Optimizely.Hawksearch.Connector

...