Skip to content

Search Term Prediction with our .NET client

Looking for setup prerequisites, authentication details, and package references? Start with the .NET SDK landing page.

csharp
ISearcher searcher = new Searcher(
    new Guid("00000000-0000-0000-0000-000000000001"),
    "your API Key",
    "server-url");

Before going any further, 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);

Don't know us? Don't worry - you can find more information about us, by visiting our main page www.relewise.com