Appearance
Search Term Prediction with our .NET client
Relewise has a .NET SDK which, among other things, will make implementing search very easy.
It is available via NuGet.
csharp
ISearcher searcher = new Searcher(
new Guid("00000000-0000-0000-0000-000000000001"),
"your api key",
"server-url");
Before going any further, make sure you have read the following:
- Read about how to authenticate against our API here.
- Read about handling different types of users here.
The following shows an example on how to perform search term prediction with Relewise.
If you wish to perform search term prediction alongside regular search requests, you can do so using search request batching.
csharp
var request = new SearchTermPredictionRequest(
new Language("da"),
new Currency("DKK"),
GetUser(),
"Search overlay",
"kan",
take: 10);
SearchTermPredictionResponse response = await searcher.PredictAsync(request, cancellationToken);