algolia.Index
Explore with Pulumi AI
A configuration for an index.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as algolia from "@pulumi/algolia";
const primary = new algolia.Index("primary", {
attributesConfig: {
searchableAttributes: [
"title",
"category,tag",
"unordered(description)",
],
attributesForFacetings: ["category"],
unretrievableAttributes: ["author_email"],
attributesToRetrieves: [
"title",
"category",
"tag",
"description",
"body",
],
},
rankingConfig: {
rankings: [
"words",
"proximity",
],
},
facetingConfig: {
maxValuesPerFacet: 50,
sortFacetValuesBy: "alpha",
},
languagesConfig: {
removeStopWordsFors: ["en"],
},
});
const replica = new algolia.Index("replica", {primaryIndexName: primary.name});
// Configure settings for this replica
import pulumi
import pulumi_algolia as algolia
primary = algolia.Index("primary",
attributes_config={
"searchable_attributes": [
"title",
"category,tag",
"unordered(description)",
],
"attributes_for_facetings": ["category"],
"unretrievable_attributes": ["author_email"],
"attributes_to_retrieves": [
"title",
"category",
"tag",
"description",
"body",
],
},
ranking_config={
"rankings": [
"words",
"proximity",
],
},
faceting_config={
"max_values_per_facet": 50,
"sort_facet_values_by": "alpha",
},
languages_config={
"remove_stop_words_fors": ["en"],
})
replica = algolia.Index("replica", primary_index_name=primary.name)
# Configure settings for this replica
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/algolia/algolia"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
primary, err := algolia.NewIndex(ctx, "primary", &algolia.IndexArgs{
AttributesConfig: &algolia.IndexAttributesConfigArgs{
SearchableAttributes: pulumi.StringArray{
pulumi.String("title"),
pulumi.String("category,tag"),
pulumi.String("unordered(description)"),
},
AttributesForFacetings: pulumi.StringArray{
pulumi.String("category"),
},
UnretrievableAttributes: pulumi.StringArray{
pulumi.String("author_email"),
},
AttributesToRetrieves: pulumi.StringArray{
pulumi.String("title"),
pulumi.String("category"),
pulumi.String("tag"),
pulumi.String("description"),
pulumi.String("body"),
},
},
RankingConfig: &algolia.IndexRankingConfigArgs{
Rankings: pulumi.StringArray{
pulumi.String("words"),
pulumi.String("proximity"),
},
},
FacetingConfig: &algolia.IndexFacetingConfigArgs{
MaxValuesPerFacet: pulumi.Float64(50),
SortFacetValuesBy: pulumi.String("alpha"),
},
LanguagesConfig: &algolia.IndexLanguagesConfigArgs{
RemoveStopWordsFors: pulumi.StringArray{
pulumi.String("en"),
},
},
})
if err != nil {
return err
}
_, err = algolia.NewIndex(ctx, "replica", &algolia.IndexArgs{
PrimaryIndexName: primary.Name,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Algolia = Pulumi.Algolia;
return await Deployment.RunAsync(() =>
{
var primary = new Algolia.Index("primary", new()
{
AttributesConfig = new Algolia.Inputs.IndexAttributesConfigArgs
{
SearchableAttributes = new[]
{
"title",
"category,tag",
"unordered(description)",
},
AttributesForFacetings = new[]
{
"category",
},
UnretrievableAttributes = new[]
{
"author_email",
},
AttributesToRetrieves = new[]
{
"title",
"category",
"tag",
"description",
"body",
},
},
RankingConfig = new Algolia.Inputs.IndexRankingConfigArgs
{
Rankings = new[]
{
"words",
"proximity",
},
},
FacetingConfig = new Algolia.Inputs.IndexFacetingConfigArgs
{
MaxValuesPerFacet = 50,
SortFacetValuesBy = "alpha",
},
LanguagesConfig = new Algolia.Inputs.IndexLanguagesConfigArgs
{
RemoveStopWordsFors = new[]
{
"en",
},
},
});
var replica = new Algolia.Index("replica", new()
{
PrimaryIndexName = primary.Name,
});
// Configure settings for this replica
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.algolia.Index;
import com.pulumi.algolia.IndexArgs;
import com.pulumi.algolia.inputs.IndexAttributesConfigArgs;
import com.pulumi.algolia.inputs.IndexRankingConfigArgs;
import com.pulumi.algolia.inputs.IndexFacetingConfigArgs;
import com.pulumi.algolia.inputs.IndexLanguagesConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var primary = new Index("primary", IndexArgs.builder()
.attributesConfig(IndexAttributesConfigArgs.builder()
.searchableAttributes(
"title",
"category,tag",
"unordered(description)")
.attributesForFacetings("category")
.unretrievableAttributes("author_email")
.attributesToRetrieves(
"title",
"category",
"tag",
"description",
"body")
.build())
.rankingConfig(IndexRankingConfigArgs.builder()
.rankings(
"words",
"proximity")
.build())
.facetingConfig(IndexFacetingConfigArgs.builder()
.maxValuesPerFacet(50)
.sortFacetValuesBy("alpha")
.build())
.languagesConfig(IndexLanguagesConfigArgs.builder()
.removeStopWordsFors("en")
.build())
.build());
var replica = new Index("replica", IndexArgs.builder()
.primaryIndexName(primary.name())
.build());
// Configure settings for this replica
}
}
resources:
primary:
type: algolia:Index
properties:
attributesConfig:
searchableAttributes:
- title
- category,tag
- unordered(description)
attributesForFacetings:
- category
unretrievableAttributes:
- author_email
attributesToRetrieves:
- title
- category
- tag
- description
- body
rankingConfig:
rankings:
- words
- proximity
facetingConfig:
maxValuesPerFacet: 50
sortFacetValuesBy: alpha
languagesConfig:
removeStopWordsFors:
- en
replica:
type: algolia:Index
properties:
primaryIndexName: ${primary.name}
Create Index Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Index(name: string, args?: IndexArgs, opts?: CustomResourceOptions);
@overload
def Index(resource_name: str,
args: Optional[IndexArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Index(resource_name: str,
opts: Optional[ResourceOptions] = None,
advanced_config: Optional[IndexAdvancedConfigArgs] = None,
attributes_config: Optional[IndexAttributesConfigArgs] = None,
deletion_protection: Optional[bool] = None,
enable_personalization: Optional[bool] = None,
enable_rules: Optional[bool] = None,
faceting_config: Optional[IndexFacetingConfigArgs] = None,
highlight_and_snippet_config: Optional[IndexHighlightAndSnippetConfigArgs] = None,
index_id: Optional[str] = None,
languages_config: Optional[IndexLanguagesConfigArgs] = None,
name: Optional[str] = None,
pagination_config: Optional[IndexPaginationConfigArgs] = None,
performance_config: Optional[IndexPerformanceConfigArgs] = None,
primary_index_name: Optional[str] = None,
query_strategy_config: Optional[IndexQueryStrategyConfigArgs] = None,
ranking_config: Optional[IndexRankingConfigArgs] = None,
timeouts: Optional[IndexTimeoutsArgs] = None,
typos_config: Optional[IndexTyposConfigArgs] = None,
virtual: Optional[bool] = None)
func NewIndex(ctx *Context, name string, args *IndexArgs, opts ...ResourceOption) (*Index, error)
public Index(string name, IndexArgs? args = null, CustomResourceOptions? opts = null)
type: algolia:Index
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IndexArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IndexArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IndexArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IndexArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IndexArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var indexResource = new Algolia.Index("indexResource", new()
{
AdvancedConfig = new Algolia.Inputs.IndexAdvancedConfigArgs
{
AttributeCriteriaComputedByMinProximity = false,
AttributeForDistinct = "string",
Distinct = 0,
MaxFacetHits = 0,
MinProximity = 0,
ReplaceSynonymsInHighlight = false,
ResponseFields = new[]
{
"string",
},
},
AttributesConfig = new Algolia.Inputs.IndexAttributesConfigArgs
{
AttributesForFacetings = new[]
{
"string",
},
AttributesToRetrieves = new[]
{
"string",
},
SearchableAttributes = new[]
{
"string",
},
UnretrievableAttributes = new[]
{
"string",
},
},
DeletionProtection = false,
EnablePersonalization = false,
EnableRules = false,
FacetingConfig = new Algolia.Inputs.IndexFacetingConfigArgs
{
MaxValuesPerFacet = 0,
SortFacetValuesBy = "string",
},
HighlightAndSnippetConfig = new Algolia.Inputs.IndexHighlightAndSnippetConfigArgs
{
AttributesToHighlights = new[]
{
"string",
},
AttributesToSnippets = new[]
{
"string",
},
HighlightPostTag = "string",
HighlightPreTag = "string",
RestrictHighlightAndSnippetArrays = false,
SnippetEllipsisText = "string",
},
IndexId = "string",
LanguagesConfig = new Algolia.Inputs.IndexLanguagesConfigArgs
{
AttributesToTransliterates = new[]
{
"string",
},
CamelCaseAttributes = new[]
{
"string",
},
CustomNormalization =
{
{ "string", "string" },
},
DecompoundQuery = false,
DecompoundedAttributes = new[]
{
new Algolia.Inputs.IndexLanguagesConfigDecompoundedAttributeArgs
{
Attributes = new[]
{
"string",
},
Language = "string",
},
},
IgnorePlurals = false,
IgnorePluralsFors = new[]
{
"string",
},
IndexLanguages = new[]
{
"string",
},
KeepDiacriticsOnCharacters = "string",
QueryLanguages = new[]
{
"string",
},
RemoveStopWords = false,
RemoveStopWordsFors = new[]
{
"string",
},
},
Name = "string",
PaginationConfig = new Algolia.Inputs.IndexPaginationConfigArgs
{
HitsPerPage = 0,
PaginationLimitedTo = 0,
},
PerformanceConfig = new Algolia.Inputs.IndexPerformanceConfigArgs
{
AllowCompressionOfIntegerArray = false,
NumericAttributesForFilterings = new[]
{
"string",
},
},
PrimaryIndexName = "string",
QueryStrategyConfig = new Algolia.Inputs.IndexQueryStrategyConfigArgs
{
AdvancedSyntax = false,
AdvancedSyntaxFeatures = new[]
{
"string",
},
AlternativesAsExacts = new[]
{
"string",
},
DisableExactOnAttributes = new[]
{
"string",
},
DisablePrefixOnAttributes = new[]
{
"string",
},
ExactOnSingleWordQuery = "string",
OptionalWords = new[]
{
"string",
},
QueryType = "string",
RemoveWordsIfNoResults = "string",
},
RankingConfig = new Algolia.Inputs.IndexRankingConfigArgs
{
CustomRankings = new[]
{
"string",
},
Rankings = new[]
{
"string",
},
RelevancyStrictness = 0,
},
Timeouts = new Algolia.Inputs.IndexTimeoutsArgs
{
Default = "string",
},
TyposConfig = new Algolia.Inputs.IndexTyposConfigArgs
{
AllowTyposOnNumericTokens = false,
DisableTypoToleranceOnAttributes = new[]
{
"string",
},
DisableTypoToleranceOnWords = new[]
{
"string",
},
MinWordSizeFor1Typo = 0,
MinWordSizeFor2Typos = 0,
SeparatorsToIndex = "string",
TypoTolerance = "string",
},
});
example, err := algolia.NewIndex(ctx, "indexResource", &algolia.IndexArgs{
AdvancedConfig: &algolia.IndexAdvancedConfigArgs{
AttributeCriteriaComputedByMinProximity: pulumi.Bool(false),
AttributeForDistinct: pulumi.String("string"),
Distinct: pulumi.Float64(0),
MaxFacetHits: pulumi.Float64(0),
MinProximity: pulumi.Float64(0),
ReplaceSynonymsInHighlight: pulumi.Bool(false),
ResponseFields: pulumi.StringArray{
pulumi.String("string"),
},
},
AttributesConfig: &algolia.IndexAttributesConfigArgs{
AttributesForFacetings: pulumi.StringArray{
pulumi.String("string"),
},
AttributesToRetrieves: pulumi.StringArray{
pulumi.String("string"),
},
SearchableAttributes: pulumi.StringArray{
pulumi.String("string"),
},
UnretrievableAttributes: pulumi.StringArray{
pulumi.String("string"),
},
},
DeletionProtection: pulumi.Bool(false),
EnablePersonalization: pulumi.Bool(false),
EnableRules: pulumi.Bool(false),
FacetingConfig: &algolia.IndexFacetingConfigArgs{
MaxValuesPerFacet: pulumi.Float64(0),
SortFacetValuesBy: pulumi.String("string"),
},
HighlightAndSnippetConfig: &algolia.IndexHighlightAndSnippetConfigArgs{
AttributesToHighlights: pulumi.StringArray{
pulumi.String("string"),
},
AttributesToSnippets: pulumi.StringArray{
pulumi.String("string"),
},
HighlightPostTag: pulumi.String("string"),
HighlightPreTag: pulumi.String("string"),
RestrictHighlightAndSnippetArrays: pulumi.Bool(false),
SnippetEllipsisText: pulumi.String("string"),
},
IndexId: pulumi.String("string"),
LanguagesConfig: &algolia.IndexLanguagesConfigArgs{
AttributesToTransliterates: pulumi.StringArray{
pulumi.String("string"),
},
CamelCaseAttributes: pulumi.StringArray{
pulumi.String("string"),
},
CustomNormalization: pulumi.StringMap{
"string": pulumi.String("string"),
},
DecompoundQuery: pulumi.Bool(false),
DecompoundedAttributes: algolia.IndexLanguagesConfigDecompoundedAttributeArray{
&algolia.IndexLanguagesConfigDecompoundedAttributeArgs{
Attributes: pulumi.StringArray{
pulumi.String("string"),
},
Language: pulumi.String("string"),
},
},
IgnorePlurals: pulumi.Bool(false),
IgnorePluralsFors: pulumi.StringArray{
pulumi.String("string"),
},
IndexLanguages: pulumi.StringArray{
pulumi.String("string"),
},
KeepDiacriticsOnCharacters: pulumi.String("string"),
QueryLanguages: pulumi.StringArray{
pulumi.String("string"),
},
RemoveStopWords: pulumi.Bool(false),
RemoveStopWordsFors: pulumi.StringArray{
pulumi.String("string"),
},
},
Name: pulumi.String("string"),
PaginationConfig: &algolia.IndexPaginationConfigArgs{
HitsPerPage: pulumi.Float64(0),
PaginationLimitedTo: pulumi.Float64(0),
},
PerformanceConfig: &algolia.IndexPerformanceConfigArgs{
AllowCompressionOfIntegerArray: pulumi.Bool(false),
NumericAttributesForFilterings: pulumi.StringArray{
pulumi.String("string"),
},
},
PrimaryIndexName: pulumi.String("string"),
QueryStrategyConfig: &algolia.IndexQueryStrategyConfigArgs{
AdvancedSyntax: pulumi.Bool(false),
AdvancedSyntaxFeatures: pulumi.StringArray{
pulumi.String("string"),
},
AlternativesAsExacts: pulumi.StringArray{
pulumi.String("string"),
},
DisableExactOnAttributes: pulumi.StringArray{
pulumi.String("string"),
},
DisablePrefixOnAttributes: pulumi.StringArray{
pulumi.String("string"),
},
ExactOnSingleWordQuery: pulumi.String("string"),
OptionalWords: pulumi.StringArray{
pulumi.String("string"),
},
QueryType: pulumi.String("string"),
RemoveWordsIfNoResults: pulumi.String("string"),
},
RankingConfig: &algolia.IndexRankingConfigArgs{
CustomRankings: pulumi.StringArray{
pulumi.String("string"),
},
Rankings: pulumi.StringArray{
pulumi.String("string"),
},
RelevancyStrictness: pulumi.Float64(0),
},
Timeouts: &algolia.IndexTimeoutsArgs{
Default: pulumi.String("string"),
},
TyposConfig: &algolia.IndexTyposConfigArgs{
AllowTyposOnNumericTokens: pulumi.Bool(false),
DisableTypoToleranceOnAttributes: pulumi.StringArray{
pulumi.String("string"),
},
DisableTypoToleranceOnWords: pulumi.StringArray{
pulumi.String("string"),
},
MinWordSizeFor1Typo: pulumi.Float64(0),
MinWordSizeFor2Typos: pulumi.Float64(0),
SeparatorsToIndex: pulumi.String("string"),
TypoTolerance: pulumi.String("string"),
},
})
var indexResource = new Index("indexResource", IndexArgs.builder()
.advancedConfig(IndexAdvancedConfigArgs.builder()
.attributeCriteriaComputedByMinProximity(false)
.attributeForDistinct("string")
.distinct(0)
.maxFacetHits(0)
.minProximity(0)
.replaceSynonymsInHighlight(false)
.responseFields("string")
.build())
.attributesConfig(IndexAttributesConfigArgs.builder()
.attributesForFacetings("string")
.attributesToRetrieves("string")
.searchableAttributes("string")
.unretrievableAttributes("string")
.build())
.deletionProtection(false)
.enablePersonalization(false)
.enableRules(false)
.facetingConfig(IndexFacetingConfigArgs.builder()
.maxValuesPerFacet(0)
.sortFacetValuesBy("string")
.build())
.highlightAndSnippetConfig(IndexHighlightAndSnippetConfigArgs.builder()
.attributesToHighlights("string")
.attributesToSnippets("string")
.highlightPostTag("string")
.highlightPreTag("string")
.restrictHighlightAndSnippetArrays(false)
.snippetEllipsisText("string")
.build())
.indexId("string")
.languagesConfig(IndexLanguagesConfigArgs.builder()
.attributesToTransliterates("string")
.camelCaseAttributes("string")
.customNormalization(Map.of("string", "string"))
.decompoundQuery(false)
.decompoundedAttributes(IndexLanguagesConfigDecompoundedAttributeArgs.builder()
.attributes("string")
.language("string")
.build())
.ignorePlurals(false)
.ignorePluralsFors("string")
.indexLanguages("string")
.keepDiacriticsOnCharacters("string")
.queryLanguages("string")
.removeStopWords(false)
.removeStopWordsFors("string")
.build())
.name("string")
.paginationConfig(IndexPaginationConfigArgs.builder()
.hitsPerPage(0)
.paginationLimitedTo(0)
.build())
.performanceConfig(IndexPerformanceConfigArgs.builder()
.allowCompressionOfIntegerArray(false)
.numericAttributesForFilterings("string")
.build())
.primaryIndexName("string")
.queryStrategyConfig(IndexQueryStrategyConfigArgs.builder()
.advancedSyntax(false)
.advancedSyntaxFeatures("string")
.alternativesAsExacts("string")
.disableExactOnAttributes("string")
.disablePrefixOnAttributes("string")
.exactOnSingleWordQuery("string")
.optionalWords("string")
.queryType("string")
.removeWordsIfNoResults("string")
.build())
.rankingConfig(IndexRankingConfigArgs.builder()
.customRankings("string")
.rankings("string")
.relevancyStrictness(0)
.build())
.timeouts(IndexTimeoutsArgs.builder()
.default_("string")
.build())
.typosConfig(IndexTyposConfigArgs.builder()
.allowTyposOnNumericTokens(false)
.disableTypoToleranceOnAttributes("string")
.disableTypoToleranceOnWords("string")
.minWordSizeFor1Typo(0)
.minWordSizeFor2Typos(0)
.separatorsToIndex("string")
.typoTolerance("string")
.build())
.build());
index_resource = algolia.Index("indexResource",
advanced_config={
"attribute_criteria_computed_by_min_proximity": False,
"attribute_for_distinct": "string",
"distinct": 0,
"max_facet_hits": 0,
"min_proximity": 0,
"replace_synonyms_in_highlight": False,
"response_fields": ["string"],
},
attributes_config={
"attributes_for_facetings": ["string"],
"attributes_to_retrieves": ["string"],
"searchable_attributes": ["string"],
"unretrievable_attributes": ["string"],
},
deletion_protection=False,
enable_personalization=False,
enable_rules=False,
faceting_config={
"max_values_per_facet": 0,
"sort_facet_values_by": "string",
},
highlight_and_snippet_config={
"attributes_to_highlights": ["string"],
"attributes_to_snippets": ["string"],
"highlight_post_tag": "string",
"highlight_pre_tag": "string",
"restrict_highlight_and_snippet_arrays": False,
"snippet_ellipsis_text": "string",
},
index_id="string",
languages_config={
"attributes_to_transliterates": ["string"],
"camel_case_attributes": ["string"],
"custom_normalization": {
"string": "string",
},
"decompound_query": False,
"decompounded_attributes": [{
"attributes": ["string"],
"language": "string",
}],
"ignore_plurals": False,
"ignore_plurals_fors": ["string"],
"index_languages": ["string"],
"keep_diacritics_on_characters": "string",
"query_languages": ["string"],
"remove_stop_words": False,
"remove_stop_words_fors": ["string"],
},
name="string",
pagination_config={
"hits_per_page": 0,
"pagination_limited_to": 0,
},
performance_config={
"allow_compression_of_integer_array": False,
"numeric_attributes_for_filterings": ["string"],
},
primary_index_name="string",
query_strategy_config={
"advanced_syntax": False,
"advanced_syntax_features": ["string"],
"alternatives_as_exacts": ["string"],
"disable_exact_on_attributes": ["string"],
"disable_prefix_on_attributes": ["string"],
"exact_on_single_word_query": "string",
"optional_words": ["string"],
"query_type": "string",
"remove_words_if_no_results": "string",
},
ranking_config={
"custom_rankings": ["string"],
"rankings": ["string"],
"relevancy_strictness": 0,
},
timeouts={
"default": "string",
},
typos_config={
"allow_typos_on_numeric_tokens": False,
"disable_typo_tolerance_on_attributes": ["string"],
"disable_typo_tolerance_on_words": ["string"],
"min_word_size_for1_typo": 0,
"min_word_size_for2_typos": 0,
"separators_to_index": "string",
"typo_tolerance": "string",
})
const indexResource = new algolia.Index("indexResource", {
advancedConfig: {
attributeCriteriaComputedByMinProximity: false,
attributeForDistinct: "string",
distinct: 0,
maxFacetHits: 0,
minProximity: 0,
replaceSynonymsInHighlight: false,
responseFields: ["string"],
},
attributesConfig: {
attributesForFacetings: ["string"],
attributesToRetrieves: ["string"],
searchableAttributes: ["string"],
unretrievableAttributes: ["string"],
},
deletionProtection: false,
enablePersonalization: false,
enableRules: false,
facetingConfig: {
maxValuesPerFacet: 0,
sortFacetValuesBy: "string",
},
highlightAndSnippetConfig: {
attributesToHighlights: ["string"],
attributesToSnippets: ["string"],
highlightPostTag: "string",
highlightPreTag: "string",
restrictHighlightAndSnippetArrays: false,
snippetEllipsisText: "string",
},
indexId: "string",
languagesConfig: {
attributesToTransliterates: ["string"],
camelCaseAttributes: ["string"],
customNormalization: {
string: "string",
},
decompoundQuery: false,
decompoundedAttributes: [{
attributes: ["string"],
language: "string",
}],
ignorePlurals: false,
ignorePluralsFors: ["string"],
indexLanguages: ["string"],
keepDiacriticsOnCharacters: "string",
queryLanguages: ["string"],
removeStopWords: false,
removeStopWordsFors: ["string"],
},
name: "string",
paginationConfig: {
hitsPerPage: 0,
paginationLimitedTo: 0,
},
performanceConfig: {
allowCompressionOfIntegerArray: false,
numericAttributesForFilterings: ["string"],
},
primaryIndexName: "string",
queryStrategyConfig: {
advancedSyntax: false,
advancedSyntaxFeatures: ["string"],
alternativesAsExacts: ["string"],
disableExactOnAttributes: ["string"],
disablePrefixOnAttributes: ["string"],
exactOnSingleWordQuery: "string",
optionalWords: ["string"],
queryType: "string",
removeWordsIfNoResults: "string",
},
rankingConfig: {
customRankings: ["string"],
rankings: ["string"],
relevancyStrictness: 0,
},
timeouts: {
"default": "string",
},
typosConfig: {
allowTyposOnNumericTokens: false,
disableTypoToleranceOnAttributes: ["string"],
disableTypoToleranceOnWords: ["string"],
minWordSizeFor1Typo: 0,
minWordSizeFor2Typos: 0,
separatorsToIndex: "string",
typoTolerance: "string",
},
});
type: algolia:Index
properties:
advancedConfig:
attributeCriteriaComputedByMinProximity: false
attributeForDistinct: string
distinct: 0
maxFacetHits: 0
minProximity: 0
replaceSynonymsInHighlight: false
responseFields:
- string
attributesConfig:
attributesForFacetings:
- string
attributesToRetrieves:
- string
searchableAttributes:
- string
unretrievableAttributes:
- string
deletionProtection: false
enablePersonalization: false
enableRules: false
facetingConfig:
maxValuesPerFacet: 0
sortFacetValuesBy: string
highlightAndSnippetConfig:
attributesToHighlights:
- string
attributesToSnippets:
- string
highlightPostTag: string
highlightPreTag: string
restrictHighlightAndSnippetArrays: false
snippetEllipsisText: string
indexId: string
languagesConfig:
attributesToTransliterates:
- string
camelCaseAttributes:
- string
customNormalization:
string: string
decompoundQuery: false
decompoundedAttributes:
- attributes:
- string
language: string
ignorePlurals: false
ignorePluralsFors:
- string
indexLanguages:
- string
keepDiacriticsOnCharacters: string
queryLanguages:
- string
removeStopWords: false
removeStopWordsFors:
- string
name: string
paginationConfig:
hitsPerPage: 0
paginationLimitedTo: 0
performanceConfig:
allowCompressionOfIntegerArray: false
numericAttributesForFilterings:
- string
primaryIndexName: string
queryStrategyConfig:
advancedSyntax: false
advancedSyntaxFeatures:
- string
alternativesAsExacts:
- string
disableExactOnAttributes:
- string
disablePrefixOnAttributes:
- string
exactOnSingleWordQuery: string
optionalWords:
- string
queryType: string
removeWordsIfNoResults: string
rankingConfig:
customRankings:
- string
rankings:
- string
relevancyStrictness: 0
timeouts:
default: string
typosConfig:
allowTyposOnNumericTokens: false
disableTypoToleranceOnAttributes:
- string
disableTypoToleranceOnWords:
- string
minWordSizeFor1Typo: 0
minWordSizeFor2Typos: 0
separatorsToIndex: string
typoTolerance: string
Index Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Index resource accepts the following input properties:
- Advanced
Config IndexAdvanced Config - The configuration for advanced features in index setting.
- Attributes
Config IndexAttributes Config - The configuration for attributes.
- Deletion
Protection bool - Enable
Personalization bool - Whether to enable the Personalization feature.
- Enable
Rules bool - Whether Rules should be globally enabled.
- Faceting
Config IndexFaceting Config - The configuration for faceting.
- Highlight
And IndexSnippet Config Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- Index
Id string - Languages
Config IndexLanguages Config - The configuration for languages in index setting.
- Name string
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - Pagination
Config IndexPagination Config - The configuration for pagination in index setting.
- Performance
Config IndexPerformance Config - The configuration for performance in index setting.
- Primary
Index stringName - The name of the existing primary index name. This field is used to create a replica index.
- Query
Strategy IndexConfig Query Strategy Config - The configuration for query strategy in index setting.
- Ranking
Config IndexRanking Config - The configuration for ranking.
- Timeouts
Index
Timeouts - Typos
Config IndexTypos Config - The configuration for typos in index setting.
- Virtual bool
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
- Advanced
Config IndexAdvanced Config Args - The configuration for advanced features in index setting.
- Attributes
Config IndexAttributes Config Args - The configuration for attributes.
- Deletion
Protection bool - Enable
Personalization bool - Whether to enable the Personalization feature.
- Enable
Rules bool - Whether Rules should be globally enabled.
- Faceting
Config IndexFaceting Config Args - The configuration for faceting.
- Highlight
And IndexSnippet Config Highlight And Snippet Config Args - The configuration for highlight / snippet in index setting.
- Index
Id string - Languages
Config IndexLanguages Config Args - The configuration for languages in index setting.
- Name string
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - Pagination
Config IndexPagination Config Args - The configuration for pagination in index setting.
- Performance
Config IndexPerformance Config Args - The configuration for performance in index setting.
- Primary
Index stringName - The name of the existing primary index name. This field is used to create a replica index.
- Query
Strategy IndexConfig Query Strategy Config Args - The configuration for query strategy in index setting.
- Ranking
Config IndexRanking Config Args - The configuration for ranking.
- Timeouts
Index
Timeouts Args - Typos
Config IndexTypos Config Args - The configuration for typos in index setting.
- Virtual bool
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
- advanced
Config IndexAdvanced Config - The configuration for advanced features in index setting.
- attributes
Config IndexAttributes Config - The configuration for attributes.
- deletion
Protection Boolean - enable
Personalization Boolean - Whether to enable the Personalization feature.
- enable
Rules Boolean - Whether Rules should be globally enabled.
- faceting
Config IndexFaceting Config - The configuration for faceting.
- highlight
And IndexSnippet Config Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- index
Id String - languages
Config IndexLanguages Config - The configuration for languages in index setting.
- name String
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - pagination
Config IndexPagination Config - The configuration for pagination in index setting.
- performance
Config IndexPerformance Config - The configuration for performance in index setting.
- primary
Index StringName - The name of the existing primary index name. This field is used to create a replica index.
- query
Strategy IndexConfig Query Strategy Config - The configuration for query strategy in index setting.
- ranking
Config IndexRanking Config - The configuration for ranking.
- timeouts
Index
Timeouts - typos
Config IndexTypos Config - The configuration for typos in index setting.
- virtual Boolean
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
- advanced
Config IndexAdvanced Config - The configuration for advanced features in index setting.
- attributes
Config IndexAttributes Config - The configuration for attributes.
- deletion
Protection boolean - enable
Personalization boolean - Whether to enable the Personalization feature.
- enable
Rules boolean - Whether Rules should be globally enabled.
- faceting
Config IndexFaceting Config - The configuration for faceting.
- highlight
And IndexSnippet Config Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- index
Id string - languages
Config IndexLanguages Config - The configuration for languages in index setting.
- name string
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - pagination
Config IndexPagination Config - The configuration for pagination in index setting.
- performance
Config IndexPerformance Config - The configuration for performance in index setting.
- primary
Index stringName - The name of the existing primary index name. This field is used to create a replica index.
- query
Strategy IndexConfig Query Strategy Config - The configuration for query strategy in index setting.
- ranking
Config IndexRanking Config - The configuration for ranking.
- timeouts
Index
Timeouts - typos
Config IndexTypos Config - The configuration for typos in index setting.
- virtual boolean
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
- advanced_
config IndexAdvanced Config Args - The configuration for advanced features in index setting.
- attributes_
config IndexAttributes Config Args - The configuration for attributes.
- deletion_
protection bool - enable_
personalization bool - Whether to enable the Personalization feature.
- enable_
rules bool - Whether Rules should be globally enabled.
- faceting_
config IndexFaceting Config Args - The configuration for faceting.
- highlight_
and_ Indexsnippet_ config Highlight And Snippet Config Args - The configuration for highlight / snippet in index setting.
- index_
id str - languages_
config IndexLanguages Config Args - The configuration for languages in index setting.
- name str
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - pagination_
config IndexPagination Config Args - The configuration for pagination in index setting.
- performance_
config IndexPerformance Config Args - The configuration for performance in index setting.
- primary_
index_ strname - The name of the existing primary index name. This field is used to create a replica index.
- query_
strategy_ Indexconfig Query Strategy Config Args - The configuration for query strategy in index setting.
- ranking_
config IndexRanking Config Args - The configuration for ranking.
- timeouts
Index
Timeouts Args - typos_
config IndexTypos Config Args - The configuration for typos in index setting.
- virtual bool
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
- advanced
Config Property Map - The configuration for advanced features in index setting.
- attributes
Config Property Map - The configuration for attributes.
- deletion
Protection Boolean - enable
Personalization Boolean - Whether to enable the Personalization feature.
- enable
Rules Boolean - Whether Rules should be globally enabled.
- faceting
Config Property Map - The configuration for faceting.
- highlight
And Property MapSnippet Config - The configuration for highlight / snippet in index setting.
- index
Id String - languages
Config Property Map - The configuration for languages in index setting.
- name String
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - pagination
Config Property Map - The configuration for pagination in index setting.
- performance
Config Property Map - The configuration for performance in index setting.
- primary
Index StringName - The name of the existing primary index name. This field is used to create a replica index.
- query
Strategy Property MapConfig - The configuration for query strategy in index setting.
- ranking
Config Property Map - The configuration for ranking.
- timeouts Property Map
- typos
Config Property Map - The configuration for typos in index setting.
- virtual Boolean
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
Outputs
All input properties are implicitly available as output properties. Additionally, the Index resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Index Resource
Get an existing Index resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IndexState, opts?: CustomResourceOptions): Index
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
advanced_config: Optional[IndexAdvancedConfigArgs] = None,
attributes_config: Optional[IndexAttributesConfigArgs] = None,
deletion_protection: Optional[bool] = None,
enable_personalization: Optional[bool] = None,
enable_rules: Optional[bool] = None,
faceting_config: Optional[IndexFacetingConfigArgs] = None,
highlight_and_snippet_config: Optional[IndexHighlightAndSnippetConfigArgs] = None,
index_id: Optional[str] = None,
languages_config: Optional[IndexLanguagesConfigArgs] = None,
name: Optional[str] = None,
pagination_config: Optional[IndexPaginationConfigArgs] = None,
performance_config: Optional[IndexPerformanceConfigArgs] = None,
primary_index_name: Optional[str] = None,
query_strategy_config: Optional[IndexQueryStrategyConfigArgs] = None,
ranking_config: Optional[IndexRankingConfigArgs] = None,
timeouts: Optional[IndexTimeoutsArgs] = None,
typos_config: Optional[IndexTyposConfigArgs] = None,
virtual: Optional[bool] = None) -> Index
func GetIndex(ctx *Context, name string, id IDInput, state *IndexState, opts ...ResourceOption) (*Index, error)
public static Index Get(string name, Input<string> id, IndexState? state, CustomResourceOptions? opts = null)
public static Index get(String name, Output<String> id, IndexState state, CustomResourceOptions options)
resources: _: type: algolia:Index get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Advanced
Config IndexAdvanced Config - The configuration for advanced features in index setting.
- Attributes
Config IndexAttributes Config - The configuration for attributes.
- Deletion
Protection bool - Enable
Personalization bool - Whether to enable the Personalization feature.
- Enable
Rules bool - Whether Rules should be globally enabled.
- Faceting
Config IndexFaceting Config - The configuration for faceting.
- Highlight
And IndexSnippet Config Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- Index
Id string - Languages
Config IndexLanguages Config - The configuration for languages in index setting.
- Name string
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - Pagination
Config IndexPagination Config - The configuration for pagination in index setting.
- Performance
Config IndexPerformance Config - The configuration for performance in index setting.
- Primary
Index stringName - The name of the existing primary index name. This field is used to create a replica index.
- Query
Strategy IndexConfig Query Strategy Config - The configuration for query strategy in index setting.
- Ranking
Config IndexRanking Config - The configuration for ranking.
- Timeouts
Index
Timeouts - Typos
Config IndexTypos Config - The configuration for typos in index setting.
- Virtual bool
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
- Advanced
Config IndexAdvanced Config Args - The configuration for advanced features in index setting.
- Attributes
Config IndexAttributes Config Args - The configuration for attributes.
- Deletion
Protection bool - Enable
Personalization bool - Whether to enable the Personalization feature.
- Enable
Rules bool - Whether Rules should be globally enabled.
- Faceting
Config IndexFaceting Config Args - The configuration for faceting.
- Highlight
And IndexSnippet Config Highlight And Snippet Config Args - The configuration for highlight / snippet in index setting.
- Index
Id string - Languages
Config IndexLanguages Config Args - The configuration for languages in index setting.
- Name string
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - Pagination
Config IndexPagination Config Args - The configuration for pagination in index setting.
- Performance
Config IndexPerformance Config Args - The configuration for performance in index setting.
- Primary
Index stringName - The name of the existing primary index name. This field is used to create a replica index.
- Query
Strategy IndexConfig Query Strategy Config Args - The configuration for query strategy in index setting.
- Ranking
Config IndexRanking Config Args - The configuration for ranking.
- Timeouts
Index
Timeouts Args - Typos
Config IndexTypos Config Args - The configuration for typos in index setting.
- Virtual bool
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
- advanced
Config IndexAdvanced Config - The configuration for advanced features in index setting.
- attributes
Config IndexAttributes Config - The configuration for attributes.
- deletion
Protection Boolean - enable
Personalization Boolean - Whether to enable the Personalization feature.
- enable
Rules Boolean - Whether Rules should be globally enabled.
- faceting
Config IndexFaceting Config - The configuration for faceting.
- highlight
And IndexSnippet Config Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- index
Id String - languages
Config IndexLanguages Config - The configuration for languages in index setting.
- name String
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - pagination
Config IndexPagination Config - The configuration for pagination in index setting.
- performance
Config IndexPerformance Config - The configuration for performance in index setting.
- primary
Index StringName - The name of the existing primary index name. This field is used to create a replica index.
- query
Strategy IndexConfig Query Strategy Config - The configuration for query strategy in index setting.
- ranking
Config IndexRanking Config - The configuration for ranking.
- timeouts
Index
Timeouts - typos
Config IndexTypos Config - The configuration for typos in index setting.
- virtual Boolean
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
- advanced
Config IndexAdvanced Config - The configuration for advanced features in index setting.
- attributes
Config IndexAttributes Config - The configuration for attributes.
- deletion
Protection boolean - enable
Personalization boolean - Whether to enable the Personalization feature.
- enable
Rules boolean - Whether Rules should be globally enabled.
- faceting
Config IndexFaceting Config - The configuration for faceting.
- highlight
And IndexSnippet Config Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- index
Id string - languages
Config IndexLanguages Config - The configuration for languages in index setting.
- name string
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - pagination
Config IndexPagination Config - The configuration for pagination in index setting.
- performance
Config IndexPerformance Config - The configuration for performance in index setting.
- primary
Index stringName - The name of the existing primary index name. This field is used to create a replica index.
- query
Strategy IndexConfig Query Strategy Config - The configuration for query strategy in index setting.
- ranking
Config IndexRanking Config - The configuration for ranking.
- timeouts
Index
Timeouts - typos
Config IndexTypos Config - The configuration for typos in index setting.
- virtual boolean
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
- advanced_
config IndexAdvanced Config Args - The configuration for advanced features in index setting.
- attributes_
config IndexAttributes Config Args - The configuration for attributes.
- deletion_
protection bool - enable_
personalization bool - Whether to enable the Personalization feature.
- enable_
rules bool - Whether Rules should be globally enabled.
- faceting_
config IndexFaceting Config Args - The configuration for faceting.
- highlight_
and_ Indexsnippet_ config Highlight And Snippet Config Args - The configuration for highlight / snippet in index setting.
- index_
id str - languages_
config IndexLanguages Config Args - The configuration for languages in index setting.
- name str
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - pagination_
config IndexPagination Config Args - The configuration for pagination in index setting.
- performance_
config IndexPerformance Config Args - The configuration for performance in index setting.
- primary_
index_ strname - The name of the existing primary index name. This field is used to create a replica index.
- query_
strategy_ Indexconfig Query Strategy Config Args - The configuration for query strategy in index setting.
- ranking_
config IndexRanking Config Args - The configuration for ranking.
- timeouts
Index
Timeouts Args - typos_
config IndexTypos Config Args - The configuration for typos in index setting.
- virtual bool
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
- advanced
Config Property Map - The configuration for advanced features in index setting.
- attributes
Config Property Map - The configuration for attributes.
- deletion
Protection Boolean - enable
Personalization Boolean - Whether to enable the Personalization feature.
- enable
Rules Boolean - Whether Rules should be globally enabled.
- faceting
Config Property Map - The configuration for faceting.
- highlight
And Property MapSnippet Config - The configuration for highlight / snippet in index setting.
- index
Id String - languages
Config Property Map - The configuration for languages in index setting.
- name String
- Name of the index / replica index. For creating virtual replica, use
algolia.VirtualIndex
resource instead. - pagination
Config Property Map - The configuration for pagination in index setting.
- performance
Config Property Map - The configuration for performance in index setting.
- primary
Index StringName - The name of the existing primary index name. This field is used to create a replica index.
- query
Strategy Property MapConfig - The configuration for query strategy in index setting.
- ranking
Config Property Map - The configuration for ranking.
- timeouts Property Map
- typos
Config Property Map - The configuration for typos in index setting.
- virtual Boolean
- Deprecated: Use
algolia.VirtualIndex
resource instead. Whether the index is virtual index. If true, applying the params listed in the doc will be ignored.
Supporting Types
IndexAdvancedConfig, IndexAdvancedConfigArgs
- Attribute
Criteria boolComputed By Min Proximity - When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
- Attribute
For stringDistinct - Name of the de-duplication attribute to be used with the
distinct
feature. - Distinct double
- Whether to enable de-duplication or grouping of results.
- When set to
0
, you disable de-duplication and grouping. - When set to
1
, you enable de-duplication, in which only the most relevant result is returned for all records that have the same value in the distinct attribute. This is similar to the SQLdistinct
keyword. ifdistinct
is set to 1 (de-duplication): - When set to
N (where N > 1)
, you enable grouping, in which most N hits will be returned with the same value for the distinct attribute. then the N most relevant episodes for every show are kept, with similar consequences.
- When set to
- Max
Facet doubleHits - Maximum number of facet hits to return during a search for facet values.
- Min
Proximity double - Precision of the
proximity
ranking criterion. - Replace
Synonyms boolIn Highlight - Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
- Response
Fields List<string> - The fields the response will contain. Applies to search and browse queries. This parameter is mainly intended to limit the response size. For example, in complex queries, echoing of request parameters in the response’s params field can be undesirable.
- Attribute
Criteria boolComputed By Min Proximity - When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
- Attribute
For stringDistinct - Name of the de-duplication attribute to be used with the
distinct
feature. - Distinct float64
- Whether to enable de-duplication or grouping of results.
- When set to
0
, you disable de-duplication and grouping. - When set to
1
, you enable de-duplication, in which only the most relevant result is returned for all records that have the same value in the distinct attribute. This is similar to the SQLdistinct
keyword. ifdistinct
is set to 1 (de-duplication): - When set to
N (where N > 1)
, you enable grouping, in which most N hits will be returned with the same value for the distinct attribute. then the N most relevant episodes for every show are kept, with similar consequences.
- When set to
- Max
Facet float64Hits - Maximum number of facet hits to return during a search for facet values.
- Min
Proximity float64 - Precision of the
proximity
ranking criterion. - Replace
Synonyms boolIn Highlight - Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
- Response
Fields []string - The fields the response will contain. Applies to search and browse queries. This parameter is mainly intended to limit the response size. For example, in complex queries, echoing of request parameters in the response’s params field can be undesirable.
- attribute
Criteria BooleanComputed By Min Proximity - When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
- attribute
For StringDistinct - Name of the de-duplication attribute to be used with the
distinct
feature. - distinct Double
- Whether to enable de-duplication or grouping of results.
- When set to
0
, you disable de-duplication and grouping. - When set to
1
, you enable de-duplication, in which only the most relevant result is returned for all records that have the same value in the distinct attribute. This is similar to the SQLdistinct
keyword. ifdistinct
is set to 1 (de-duplication): - When set to
N (where N > 1)
, you enable grouping, in which most N hits will be returned with the same value for the distinct attribute. then the N most relevant episodes for every show are kept, with similar consequences.
- When set to
- max
Facet DoubleHits - Maximum number of facet hits to return during a search for facet values.
- min
Proximity Double - Precision of the
proximity
ranking criterion. - replace
Synonyms BooleanIn Highlight - Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
- response
Fields List<String> - The fields the response will contain. Applies to search and browse queries. This parameter is mainly intended to limit the response size. For example, in complex queries, echoing of request parameters in the response’s params field can be undesirable.
- attribute
Criteria booleanComputed By Min Proximity - When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
- attribute
For stringDistinct - Name of the de-duplication attribute to be used with the
distinct
feature. - distinct number
- Whether to enable de-duplication or grouping of results.
- When set to
0
, you disable de-duplication and grouping. - When set to
1
, you enable de-duplication, in which only the most relevant result is returned for all records that have the same value in the distinct attribute. This is similar to the SQLdistinct
keyword. ifdistinct
is set to 1 (de-duplication): - When set to
N (where N > 1)
, you enable grouping, in which most N hits will be returned with the same value for the distinct attribute. then the N most relevant episodes for every show are kept, with similar consequences.
- When set to
- max
Facet numberHits - Maximum number of facet hits to return during a search for facet values.
- min
Proximity number - Precision of the
proximity
ranking criterion. - replace
Synonyms booleanIn Highlight - Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
- response
Fields string[] - The fields the response will contain. Applies to search and browse queries. This parameter is mainly intended to limit the response size. For example, in complex queries, echoing of request parameters in the response’s params field can be undesirable.
- attribute_
criteria_ boolcomputed_ by_ min_ proximity - When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
- attribute_
for_ strdistinct - Name of the de-duplication attribute to be used with the
distinct
feature. - distinct float
- Whether to enable de-duplication or grouping of results.
- When set to
0
, you disable de-duplication and grouping. - When set to
1
, you enable de-duplication, in which only the most relevant result is returned for all records that have the same value in the distinct attribute. This is similar to the SQLdistinct
keyword. ifdistinct
is set to 1 (de-duplication): - When set to
N (where N > 1)
, you enable grouping, in which most N hits will be returned with the same value for the distinct attribute. then the N most relevant episodes for every show are kept, with similar consequences.
- When set to
- max_
facet_ floathits - Maximum number of facet hits to return during a search for facet values.
- min_
proximity float - Precision of the
proximity
ranking criterion. - replace_
synonyms_ boolin_ highlight - Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
- response_
fields Sequence[str] - The fields the response will contain. Applies to search and browse queries. This parameter is mainly intended to limit the response size. For example, in complex queries, echoing of request parameters in the response’s params field can be undesirable.
- attribute
Criteria BooleanComputed By Min Proximity - When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
- attribute
For StringDistinct - Name of the de-duplication attribute to be used with the
distinct
feature. - distinct Number
- Whether to enable de-duplication or grouping of results.
- When set to
0
, you disable de-duplication and grouping. - When set to
1
, you enable de-duplication, in which only the most relevant result is returned for all records that have the same value in the distinct attribute. This is similar to the SQLdistinct
keyword. ifdistinct
is set to 1 (de-duplication): - When set to
N (where N > 1)
, you enable grouping, in which most N hits will be returned with the same value for the distinct attribute. then the N most relevant episodes for every show are kept, with similar consequences.
- When set to
- max
Facet NumberHits - Maximum number of facet hits to return during a search for facet values.
- min
Proximity Number - Precision of the
proximity
ranking criterion. - replace
Synonyms BooleanIn Highlight - Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
- response
Fields List<String> - The fields the response will contain. Applies to search and browse queries. This parameter is mainly intended to limit the response size. For example, in complex queries, echoing of request parameters in the response’s params field can be undesirable.
IndexAttributesConfig, IndexAttributesConfigArgs
- Attributes
For List<string>Facetings - The complete list of attributes that will be used for faceting.
- Attributes
To List<string>Retrieves - List of attributes to be retrieved at query time.
- Searchable
Attributes List<string> - The complete list of attributes used for searching.
- Unretrievable
Attributes List<string> - List of attributes that cannot be retrieved at query time.
- Attributes
For []stringFacetings - The complete list of attributes that will be used for faceting.
- Attributes
To []stringRetrieves - List of attributes to be retrieved at query time.
- Searchable
Attributes []string - The complete list of attributes used for searching.
- Unretrievable
Attributes []string - List of attributes that cannot be retrieved at query time.
- attributes
For List<String>Facetings - The complete list of attributes that will be used for faceting.
- attributes
To List<String>Retrieves - List of attributes to be retrieved at query time.
- searchable
Attributes List<String> - The complete list of attributes used for searching.
- unretrievable
Attributes List<String> - List of attributes that cannot be retrieved at query time.
- attributes
For string[]Facetings - The complete list of attributes that will be used for faceting.
- attributes
To string[]Retrieves - List of attributes to be retrieved at query time.
- searchable
Attributes string[] - The complete list of attributes used for searching.
- unretrievable
Attributes string[] - List of attributes that cannot be retrieved at query time.
- attributes_
for_ Sequence[str]facetings - The complete list of attributes that will be used for faceting.
- attributes_
to_ Sequence[str]retrieves - List of attributes to be retrieved at query time.
- searchable_
attributes Sequence[str] - The complete list of attributes used for searching.
- unretrievable_
attributes Sequence[str] - List of attributes that cannot be retrieved at query time.
- attributes
For List<String>Facetings - The complete list of attributes that will be used for faceting.
- attributes
To List<String>Retrieves - List of attributes to be retrieved at query time.
- searchable
Attributes List<String> - The complete list of attributes used for searching.
- unretrievable
Attributes List<String> - List of attributes that cannot be retrieved at query time.
IndexFacetingConfig, IndexFacetingConfigArgs
- Max
Values doublePer Facet - Maximum number of facet values to return for each facet during a regular search.
- Sort
Facet stringValues By - Parameter to controls how the facet values are sorted within each faceted attribute.
- Max
Values float64Per Facet - Maximum number of facet values to return for each facet during a regular search.
- Sort
Facet stringValues By - Parameter to controls how the facet values are sorted within each faceted attribute.
- max
Values DoublePer Facet - Maximum number of facet values to return for each facet during a regular search.
- sort
Facet StringValues By - Parameter to controls how the facet values are sorted within each faceted attribute.
- max
Values numberPer Facet - Maximum number of facet values to return for each facet during a regular search.
- sort
Facet stringValues By - Parameter to controls how the facet values are sorted within each faceted attribute.
- max_
values_ floatper_ facet - Maximum number of facet values to return for each facet during a regular search.
- sort_
facet_ strvalues_ by - Parameter to controls how the facet values are sorted within each faceted attribute.
- max
Values NumberPer Facet - Maximum number of facet values to return for each facet during a regular search.
- sort
Facet StringValues By - Parameter to controls how the facet values are sorted within each faceted attribute.
IndexHighlightAndSnippetConfig, IndexHighlightAndSnippetConfigArgs
- Attributes
To List<string>Highlights - List of attributes to highlight.
- Attributes
To List<string>Snippets - List of attributes to snippet, with an optional maximum number of words to snippet.
- Highlight
Post stringTag - The HTML string to insert after the highlighted parts in all highlight and snippet results.
- Highlight
Pre stringTag - The HTML string to insert before the highlighted parts in all highlight and snippet results.
- Restrict
Highlight boolAnd Snippet Arrays - Restrict highlighting and snippeting to items that matched the query.
- Snippet
Ellipsis stringText - String used as an ellipsis indicator when a snippet is truncated.
- Attributes
To []stringHighlights - List of attributes to highlight.
- Attributes
To []stringSnippets - List of attributes to snippet, with an optional maximum number of words to snippet.
- Highlight
Post stringTag - The HTML string to insert after the highlighted parts in all highlight and snippet results.
- Highlight
Pre stringTag - The HTML string to insert before the highlighted parts in all highlight and snippet results.
- Restrict
Highlight boolAnd Snippet Arrays - Restrict highlighting and snippeting to items that matched the query.
- Snippet
Ellipsis stringText - String used as an ellipsis indicator when a snippet is truncated.
- attributes
To List<String>Highlights - List of attributes to highlight.
- attributes
To List<String>Snippets - List of attributes to snippet, with an optional maximum number of words to snippet.
- highlight
Post StringTag - The HTML string to insert after the highlighted parts in all highlight and snippet results.
- highlight
Pre StringTag - The HTML string to insert before the highlighted parts in all highlight and snippet results.
- restrict
Highlight BooleanAnd Snippet Arrays - Restrict highlighting and snippeting to items that matched the query.
- snippet
Ellipsis StringText - String used as an ellipsis indicator when a snippet is truncated.
- attributes
To string[]Highlights - List of attributes to highlight.
- attributes
To string[]Snippets - List of attributes to snippet, with an optional maximum number of words to snippet.
- highlight
Post stringTag - The HTML string to insert after the highlighted parts in all highlight and snippet results.
- highlight
Pre stringTag - The HTML string to insert before the highlighted parts in all highlight and snippet results.
- restrict
Highlight booleanAnd Snippet Arrays - Restrict highlighting and snippeting to items that matched the query.
- snippet
Ellipsis stringText - String used as an ellipsis indicator when a snippet is truncated.
- attributes_
to_ Sequence[str]highlights - List of attributes to highlight.
- attributes_
to_ Sequence[str]snippets - List of attributes to snippet, with an optional maximum number of words to snippet.
- highlight_
post_ strtag - The HTML string to insert after the highlighted parts in all highlight and snippet results.
- highlight_
pre_ strtag - The HTML string to insert before the highlighted parts in all highlight and snippet results.
- restrict_
highlight_ booland_ snippet_ arrays - Restrict highlighting and snippeting to items that matched the query.
- snippet_
ellipsis_ strtext - String used as an ellipsis indicator when a snippet is truncated.
- attributes
To List<String>Highlights - List of attributes to highlight.
- attributes
To List<String>Snippets - List of attributes to snippet, with an optional maximum number of words to snippet.
- highlight
Post StringTag - The HTML string to insert after the highlighted parts in all highlight and snippet results.
- highlight
Pre StringTag - The HTML string to insert before the highlighted parts in all highlight and snippet results.
- restrict
Highlight BooleanAnd Snippet Arrays - Restrict highlighting and snippeting to items that matched the query.
- snippet
Ellipsis StringText - String used as an ellipsis indicator when a snippet is truncated.
IndexLanguagesConfig, IndexLanguagesConfigArgs
- Attributes
To List<string>Transliterates - List of attributes to apply transliteration
- Camel
Case List<string>Attributes - List of attributes on which to do a decomposition of camel case words.
- Custom
Normalization Dictionary<string, string> - Custom normalization which overrides the engine’s default normalization
- Decompound
Query bool - Whether to split compound words into their composing atoms in the query.
- Decompounded
Attributes List<IndexLanguages Config Decompounded Attribute> - List of attributes to apply word segmentation, also known as decompounding.
- Ignore
Plurals bool - Whether to treat singular, plurals, and other forms of declensions as matching terms.
- Ignore
Plurals List<string>Fors - Whether to treat singular, plurals, and other forms of declensions as matching terms in target languages. List of supported languages are listed on http://nhttps//www.algolia.com/doc/api-reference/api-parameters/ignorePlurals/#usage-notes
- Index
Languages List<string> - List of languages at the index level for language-specific processing such as tokenization and normalization.
- Keep
Diacritics stringOn Characters - List of characters that the engine shouldn’t automatically normalize.
- Query
Languages List<string> - List of languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
- Remove
Stop boolWords - Whether to removes stop (common) words from the query before executing it.
- Remove
Stop List<string>Words Fors - List of languages to removes stop (common) words from the query before executing it.
- Attributes
To []stringTransliterates - List of attributes to apply transliteration
- Camel
Case []stringAttributes - List of attributes on which to do a decomposition of camel case words.
- Custom
Normalization map[string]string - Custom normalization which overrides the engine’s default normalization
- Decompound
Query bool - Whether to split compound words into their composing atoms in the query.
- Decompounded
Attributes []IndexLanguages Config Decompounded Attribute - List of attributes to apply word segmentation, also known as decompounding.
- Ignore
Plurals bool - Whether to treat singular, plurals, and other forms of declensions as matching terms.
- Ignore
Plurals []stringFors - Whether to treat singular, plurals, and other forms of declensions as matching terms in target languages. List of supported languages are listed on http://nhttps//www.algolia.com/doc/api-reference/api-parameters/ignorePlurals/#usage-notes
- Index
Languages []string - List of languages at the index level for language-specific processing such as tokenization and normalization.
- Keep
Diacritics stringOn Characters - List of characters that the engine shouldn’t automatically normalize.
- Query
Languages []string - List of languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
- Remove
Stop boolWords - Whether to removes stop (common) words from the query before executing it.
- Remove
Stop []stringWords Fors - List of languages to removes stop (common) words from the query before executing it.
- attributes
To List<String>Transliterates - List of attributes to apply transliteration
- camel
Case List<String>Attributes - List of attributes on which to do a decomposition of camel case words.
- custom
Normalization Map<String,String> - Custom normalization which overrides the engine’s default normalization
- decompound
Query Boolean - Whether to split compound words into their composing atoms in the query.
- decompounded
Attributes List<IndexLanguages Config Decompounded Attribute> - List of attributes to apply word segmentation, also known as decompounding.
- ignore
Plurals Boolean - Whether to treat singular, plurals, and other forms of declensions as matching terms.
- ignore
Plurals List<String>Fors - Whether to treat singular, plurals, and other forms of declensions as matching terms in target languages. List of supported languages are listed on http://nhttps//www.algolia.com/doc/api-reference/api-parameters/ignorePlurals/#usage-notes
- index
Languages List<String> - List of languages at the index level for language-specific processing such as tokenization and normalization.
- keep
Diacritics StringOn Characters - List of characters that the engine shouldn’t automatically normalize.
- query
Languages List<String> - List of languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
- remove
Stop BooleanWords - Whether to removes stop (common) words from the query before executing it.
- remove
Stop List<String>Words Fors - List of languages to removes stop (common) words from the query before executing it.
- attributes
To string[]Transliterates - List of attributes to apply transliteration
- camel
Case string[]Attributes - List of attributes on which to do a decomposition of camel case words.
- custom
Normalization {[key: string]: string} - Custom normalization which overrides the engine’s default normalization
- decompound
Query boolean - Whether to split compound words into their composing atoms in the query.
- decompounded
Attributes IndexLanguages Config Decompounded Attribute[] - List of attributes to apply word segmentation, also known as decompounding.
- ignore
Plurals boolean - Whether to treat singular, plurals, and other forms of declensions as matching terms.
- ignore
Plurals string[]Fors - Whether to treat singular, plurals, and other forms of declensions as matching terms in target languages. List of supported languages are listed on http://nhttps//www.algolia.com/doc/api-reference/api-parameters/ignorePlurals/#usage-notes
- index
Languages string[] - List of languages at the index level for language-specific processing such as tokenization and normalization.
- keep
Diacritics stringOn Characters - List of characters that the engine shouldn’t automatically normalize.
- query
Languages string[] - List of languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
- remove
Stop booleanWords - Whether to removes stop (common) words from the query before executing it.
- remove
Stop string[]Words Fors - List of languages to removes stop (common) words from the query before executing it.
- attributes_
to_ Sequence[str]transliterates - List of attributes to apply transliteration
- camel_
case_ Sequence[str]attributes - List of attributes on which to do a decomposition of camel case words.
- custom_
normalization Mapping[str, str] - Custom normalization which overrides the engine’s default normalization
- decompound_
query bool - Whether to split compound words into their composing atoms in the query.
- decompounded_
attributes Sequence[IndexLanguages Config Decompounded Attribute] - List of attributes to apply word segmentation, also known as decompounding.
- ignore_
plurals bool - Whether to treat singular, plurals, and other forms of declensions as matching terms.
- ignore_
plurals_ Sequence[str]fors - Whether to treat singular, plurals, and other forms of declensions as matching terms in target languages. List of supported languages are listed on http://nhttps//www.algolia.com/doc/api-reference/api-parameters/ignorePlurals/#usage-notes
- index_
languages Sequence[str] - List of languages at the index level for language-specific processing such as tokenization and normalization.
- keep_
diacritics_ stron_ characters - List of characters that the engine shouldn’t automatically normalize.
- query_
languages Sequence[str] - List of languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
- remove_
stop_ boolwords - Whether to removes stop (common) words from the query before executing it.
- remove_
stop_ Sequence[str]words_ fors - List of languages to removes stop (common) words from the query before executing it.
- attributes
To List<String>Transliterates - List of attributes to apply transliteration
- camel
Case List<String>Attributes - List of attributes on which to do a decomposition of camel case words.
- custom
Normalization Map<String> - Custom normalization which overrides the engine’s default normalization
- decompound
Query Boolean - Whether to split compound words into their composing atoms in the query.
- decompounded
Attributes List<Property Map> - List of attributes to apply word segmentation, also known as decompounding.
- ignore
Plurals Boolean - Whether to treat singular, plurals, and other forms of declensions as matching terms.
- ignore
Plurals List<String>Fors - Whether to treat singular, plurals, and other forms of declensions as matching terms in target languages. List of supported languages are listed on http://nhttps//www.algolia.com/doc/api-reference/api-parameters/ignorePlurals/#usage-notes
- index
Languages List<String> - List of languages at the index level for language-specific processing such as tokenization and normalization.
- keep
Diacritics StringOn Characters - List of characters that the engine shouldn’t automatically normalize.
- query
Languages List<String> - List of languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
- remove
Stop BooleanWords - Whether to removes stop (common) words from the query before executing it.
- remove
Stop List<String>Words Fors - List of languages to removes stop (common) words from the query before executing it.
IndexLanguagesConfigDecompoundedAttribute, IndexLanguagesConfigDecompoundedAttributeArgs
- Attributes List<string>
- Language string
- Attributes []string
- Language string
- attributes List<String>
- language String
- attributes string[]
- language string
- attributes Sequence[str]
- language str
- attributes List<String>
- language String
IndexPaginationConfig, IndexPaginationConfigArgs
- Hits
Per doublePage - The number of hits per page.
- Pagination
Limited doubleTo - The maximum number of hits accessible via pagination
- Hits
Per float64Page - The number of hits per page.
- Pagination
Limited float64To - The maximum number of hits accessible via pagination
- hits
Per DoublePage - The number of hits per page.
- pagination
Limited DoubleTo - The maximum number of hits accessible via pagination
- hits
Per numberPage - The number of hits per page.
- pagination
Limited numberTo - The maximum number of hits accessible via pagination
- hits_
per_ floatpage - The number of hits per page.
- pagination_
limited_ floatto - The maximum number of hits accessible via pagination
- hits
Per NumberPage - The number of hits per page.
- pagination
Limited NumberTo - The maximum number of hits accessible via pagination
IndexPerformanceConfig, IndexPerformanceConfigArgs
- Allow
Compression boolOf Integer Array - Whether to enable compression of large integer arrays.
- Numeric
Attributes List<string>For Filterings - List of numeric attributes that can be used as numerical filters.
- Allow
Compression boolOf Integer Array - Whether to enable compression of large integer arrays.
- Numeric
Attributes []stringFor Filterings - List of numeric attributes that can be used as numerical filters.
- allow
Compression BooleanOf Integer Array - Whether to enable compression of large integer arrays.
- numeric
Attributes List<String>For Filterings - List of numeric attributes that can be used as numerical filters.
- allow
Compression booleanOf Integer Array - Whether to enable compression of large integer arrays.
- numeric
Attributes string[]For Filterings - List of numeric attributes that can be used as numerical filters.
- allow_
compression_ boolof_ integer_ array - Whether to enable compression of large integer arrays.
- numeric_
attributes_ Sequence[str]for_ filterings - List of numeric attributes that can be used as numerical filters.
- allow
Compression BooleanOf Integer Array - Whether to enable compression of large integer arrays.
- numeric
Attributes List<String>For Filterings - List of numeric attributes that can be used as numerical filters.
IndexQueryStrategyConfig, IndexQueryStrategyConfigArgs
- Advanced
Syntax bool - Whether to enable the advanced query syntax.
- Advanced
Syntax List<string>Features - Advanced syntax features to be activated when ‘advancedSyntax’ is enabled
- Alternatives
As List<string>Exacts - List of alternatives that should be considered an exact match by the exact ranking criterion.
- Disable
Exact List<string>On Attributes - List of attributes on which you want to disable the exact ranking criterion.
- Disable
Prefix List<string>On Attributes - List of attributes on which you want to disable prefix matching.
- Exact
On stringSingle Word Query - Controls how the exact ranking criterion is computed when the query contains only one word.
- Optional
Words List<string> - A list of words that should be considered as optional when found in the query.
- Query
Type string - Query type to control if and how query words are interpreted as prefixes.
- Remove
Words stringIf No Results - Strategy to remove words from the query when it doesn’t match any hits.
- Advanced
Syntax bool - Whether to enable the advanced query syntax.
- Advanced
Syntax []stringFeatures - Advanced syntax features to be activated when ‘advancedSyntax’ is enabled
- Alternatives
As []stringExacts - List of alternatives that should be considered an exact match by the exact ranking criterion.
- Disable
Exact []stringOn Attributes - List of attributes on which you want to disable the exact ranking criterion.
- Disable
Prefix []stringOn Attributes - List of attributes on which you want to disable prefix matching.
- Exact
On stringSingle Word Query - Controls how the exact ranking criterion is computed when the query contains only one word.
- Optional
Words []string - A list of words that should be considered as optional when found in the query.
- Query
Type string - Query type to control if and how query words are interpreted as prefixes.
- Remove
Words stringIf No Results - Strategy to remove words from the query when it doesn’t match any hits.
- advanced
Syntax Boolean - Whether to enable the advanced query syntax.
- advanced
Syntax List<String>Features - Advanced syntax features to be activated when ‘advancedSyntax’ is enabled
- alternatives
As List<String>Exacts - List of alternatives that should be considered an exact match by the exact ranking criterion.
- disable
Exact List<String>On Attributes - List of attributes on which you want to disable the exact ranking criterion.
- disable
Prefix List<String>On Attributes - List of attributes on which you want to disable prefix matching.
- exact
On StringSingle Word Query - Controls how the exact ranking criterion is computed when the query contains only one word.
- optional
Words List<String> - A list of words that should be considered as optional when found in the query.
- query
Type String - Query type to control if and how query words are interpreted as prefixes.
- remove
Words StringIf No Results - Strategy to remove words from the query when it doesn’t match any hits.
- advanced
Syntax boolean - Whether to enable the advanced query syntax.
- advanced
Syntax string[]Features - Advanced syntax features to be activated when ‘advancedSyntax’ is enabled
- alternatives
As string[]Exacts - List of alternatives that should be considered an exact match by the exact ranking criterion.
- disable
Exact string[]On Attributes - List of attributes on which you want to disable the exact ranking criterion.
- disable
Prefix string[]On Attributes - List of attributes on which you want to disable prefix matching.
- exact
On stringSingle Word Query - Controls how the exact ranking criterion is computed when the query contains only one word.
- optional
Words string[] - A list of words that should be considered as optional when found in the query.
- query
Type string - Query type to control if and how query words are interpreted as prefixes.
- remove
Words stringIf No Results - Strategy to remove words from the query when it doesn’t match any hits.
- advanced_
syntax bool - Whether to enable the advanced query syntax.
- advanced_
syntax_ Sequence[str]features - Advanced syntax features to be activated when ‘advancedSyntax’ is enabled
- alternatives_
as_ Sequence[str]exacts - List of alternatives that should be considered an exact match by the exact ranking criterion.
- disable_
exact_ Sequence[str]on_ attributes - List of attributes on which you want to disable the exact ranking criterion.
- disable_
prefix_ Sequence[str]on_ attributes - List of attributes on which you want to disable prefix matching.
- exact_
on_ strsingle_ word_ query - Controls how the exact ranking criterion is computed when the query contains only one word.
- optional_
words Sequence[str] - A list of words that should be considered as optional when found in the query.
- query_
type str - Query type to control if and how query words are interpreted as prefixes.
- remove_
words_ strif_ no_ results - Strategy to remove words from the query when it doesn’t match any hits.
- advanced
Syntax Boolean - Whether to enable the advanced query syntax.
- advanced
Syntax List<String>Features - Advanced syntax features to be activated when ‘advancedSyntax’ is enabled
- alternatives
As List<String>Exacts - List of alternatives that should be considered an exact match by the exact ranking criterion.
- disable
Exact List<String>On Attributes - List of attributes on which you want to disable the exact ranking criterion.
- disable
Prefix List<String>On Attributes - List of attributes on which you want to disable prefix matching.
- exact
On StringSingle Word Query - Controls how the exact ranking criterion is computed when the query contains only one word.
- optional
Words List<String> - A list of words that should be considered as optional when found in the query.
- query
Type String - Query type to control if and how query words are interpreted as prefixes.
- remove
Words StringIf No Results - Strategy to remove words from the query when it doesn’t match any hits.
IndexRankingConfig, IndexRankingConfigArgs
- Custom
Rankings List<string> - List of attributes for custom ranking criterion.
- Rankings List<string>
- List of ranking criteria.
- Relevancy
Strictness double - Relevancy threshold below which less relevant results aren’t included in the results
- Custom
Rankings []string - List of attributes for custom ranking criterion.
- Rankings []string
- List of ranking criteria.
- Relevancy
Strictness float64 - Relevancy threshold below which less relevant results aren’t included in the results
- custom
Rankings List<String> - List of attributes for custom ranking criterion.
- rankings List<String>
- List of ranking criteria.
- relevancy
Strictness Double - Relevancy threshold below which less relevant results aren’t included in the results
- custom
Rankings string[] - List of attributes for custom ranking criterion.
- rankings string[]
- List of ranking criteria.
- relevancy
Strictness number - Relevancy threshold below which less relevant results aren’t included in the results
- custom_
rankings Sequence[str] - List of attributes for custom ranking criterion.
- rankings Sequence[str]
- List of ranking criteria.
- relevancy_
strictness float - Relevancy threshold below which less relevant results aren’t included in the results
- custom
Rankings List<String> - List of attributes for custom ranking criterion.
- rankings List<String>
- List of ranking criteria.
- relevancy
Strictness Number - Relevancy threshold below which less relevant results aren’t included in the results
IndexTimeouts, IndexTimeoutsArgs
- Default string
- Default string
- default_ String
- default string
- default str
- default String
IndexTyposConfig, IndexTyposConfigArgs
- Allow
Typos boolOn Numeric Tokens - Whether to allow typos on numbers (“numeric tokens”) in the query str
- Disable
Typo List<string>Tolerance On Attributes - List of attributes on which you want to disable typo tolerance.
- Disable
Typo List<string>Tolerance On Words - List of words on which typo tolerance will be disabled.
- Min
Word doubleSize For1Typo - Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
- Min
Word doubleSize For2Typos - Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
- Separators
To stringIndex - Separators (punctuation characters) to index. By default, separators are not indexed.
- Typo
Tolerance string - Whether typo tolerance is enabled and how it is applied
- Allow
Typos boolOn Numeric Tokens - Whether to allow typos on numbers (“numeric tokens”) in the query str
- Disable
Typo []stringTolerance On Attributes - List of attributes on which you want to disable typo tolerance.
- Disable
Typo []stringTolerance On Words - List of words on which typo tolerance will be disabled.
- Min
Word float64Size For1Typo - Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
- Min
Word float64Size For2Typos - Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
- Separators
To stringIndex - Separators (punctuation characters) to index. By default, separators are not indexed.
- Typo
Tolerance string - Whether typo tolerance is enabled and how it is applied
- allow
Typos BooleanOn Numeric Tokens - Whether to allow typos on numbers (“numeric tokens”) in the query str
- disable
Typo List<String>Tolerance On Attributes - List of attributes on which you want to disable typo tolerance.
- disable
Typo List<String>Tolerance On Words - List of words on which typo tolerance will be disabled.
- min
Word DoubleSize For1Typo - Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
- min
Word DoubleSize For2Typos - Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
- separators
To StringIndex - Separators (punctuation characters) to index. By default, separators are not indexed.
- typo
Tolerance String - Whether typo tolerance is enabled and how it is applied
- allow
Typos booleanOn Numeric Tokens - Whether to allow typos on numbers (“numeric tokens”) in the query str
- disable
Typo string[]Tolerance On Attributes - List of attributes on which you want to disable typo tolerance.
- disable
Typo string[]Tolerance On Words - List of words on which typo tolerance will be disabled.
- min
Word numberSize For1Typo - Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
- min
Word numberSize For2Typos - Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
- separators
To stringIndex - Separators (punctuation characters) to index. By default, separators are not indexed.
- typo
Tolerance string - Whether typo tolerance is enabled and how it is applied
- allow_
typos_ boolon_ numeric_ tokens - Whether to allow typos on numbers (“numeric tokens”) in the query str
- disable_
typo_ Sequence[str]tolerance_ on_ attributes - List of attributes on which you want to disable typo tolerance.
- disable_
typo_ Sequence[str]tolerance_ on_ words - List of words on which typo tolerance will be disabled.
- min_
word_ floatsize_ for1_ typo - Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
- min_
word_ floatsize_ for2_ typos - Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
- separators_
to_ strindex - Separators (punctuation characters) to index. By default, separators are not indexed.
- typo_
tolerance str - Whether typo tolerance is enabled and how it is applied
- allow
Typos BooleanOn Numeric Tokens - Whether to allow typos on numbers (“numeric tokens”) in the query str
- disable
Typo List<String>Tolerance On Attributes - List of attributes on which you want to disable typo tolerance.
- disable
Typo List<String>Tolerance On Words - List of words on which typo tolerance will be disabled.
- min
Word NumberSize For1Typo - Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
- min
Word NumberSize For2Typos - Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
- separators
To StringIndex - Separators (punctuation characters) to index. By default, separators are not indexed.
- typo
Tolerance String - Whether typo tolerance is enabled and how it is applied
Import
$ pulumi import algolia:index/index:Index default {{index_name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- algolia k-yomo/terraform-provider-algolia
- License
- Notes
- This Pulumi package is based on the
algolia
Terraform Provider.