Skip to main content
Required ACL: editSettings You can have up to 100 configurations per Algolia application.

Usage

// Initialize the client
var client = new QuerySuggestionsClient(
  new QuerySuggestionsConfig(
    "ALGOLIA_APPLICATION_ID",
    "ALGOLIA_API_KEY",
    "ALGOLIA_APPLICATION_REGION"
  )
);

// Call the API
var response = await client.CreateConfigAsync(
  new ConfigurationWithIndex
  {
    IndexName = "<YOUR_INDEX_NAME>",
    SourceIndices = new List<SourceIndex>
    {
      new SourceIndex
      {
        IndexName = "<YOUR_INDEX_NAME>",
        Facets = new List<Facet> { new Facet { Attribute = "test" } },
        Generate = new List<List<string>>
        {
          new List<string> { "facetA", "facetB" },
          new List<string> { "facetC" },
        },
      },
    },
    Languages = new Languages(new List<string> { "french" }),
    Exclude = new List<string> { "test" },
  }
);
// >LOG

See the full API reference

For more details about input parameters and response fields.
I