algolia.VirtualIndex
Explore with Pulumi AI
A configuration for a virtual index.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as algolia from "@pulumi/algolia";
const example = new algolia.Index("example", {attributesConfig: {
searchableAttributes: [
"title",
"description",
],
attributesToRetrieves: ["*"],
}});
const exampleVirtualReplica = new algolia.VirtualIndex("exampleVirtualReplica", {
primaryIndexName: example.name,
attributesConfig: {
unretrievableAttributes: ["author_email"],
attributesToRetrieves: ["*"],
},
rankingConfig: {
customRankings: ["desc(likes)"],
},
facetingConfig: {
maxValuesPerFacet: 50,
sortFacetValuesBy: "alpha",
},
languagesConfig: {
removeStopWordsFors: ["en"],
},
});
import pulumi
import pulumi_algolia as algolia
example = algolia.Index("example", attributes_config={
"searchable_attributes": [
"title",
"description",
],
"attributes_to_retrieves": ["*"],
})
example_virtual_replica = algolia.VirtualIndex("exampleVirtualReplica",
primary_index_name=example.name,
attributes_config={
"unretrievable_attributes": ["author_email"],
"attributes_to_retrieves": ["*"],
},
ranking_config={
"custom_rankings": ["desc(likes)"],
},
faceting_config={
"max_values_per_facet": 50,
"sort_facet_values_by": "alpha",
},
languages_config={
"remove_stop_words_fors": ["en"],
})
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 {
example, err := algolia.NewIndex(ctx, "example", &algolia.IndexArgs{
AttributesConfig: &algolia.IndexAttributesConfigArgs{
SearchableAttributes: pulumi.StringArray{
pulumi.String("title"),
pulumi.String("description"),
},
AttributesToRetrieves: pulumi.StringArray{
pulumi.String("*"),
},
},
})
if err != nil {
return err
}
_, err = algolia.NewVirtualIndex(ctx, "exampleVirtualReplica", &algolia.VirtualIndexArgs{
PrimaryIndexName: example.Name,
AttributesConfig: &algolia.VirtualIndexAttributesConfigArgs{
UnretrievableAttributes: pulumi.StringArray{
pulumi.String("author_email"),
},
AttributesToRetrieves: pulumi.StringArray{
pulumi.String("*"),
},
},
RankingConfig: &algolia.VirtualIndexRankingConfigArgs{
CustomRankings: pulumi.StringArray{
pulumi.String("desc(likes)"),
},
},
FacetingConfig: &algolia.VirtualIndexFacetingConfigArgs{
MaxValuesPerFacet: pulumi.Float64(50),
SortFacetValuesBy: pulumi.String("alpha"),
},
LanguagesConfig: &algolia.VirtualIndexLanguagesConfigArgs{
RemoveStopWordsFors: pulumi.StringArray{
pulumi.String("en"),
},
},
})
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 example = new Algolia.Index("example", new()
{
AttributesConfig = new Algolia.Inputs.IndexAttributesConfigArgs
{
SearchableAttributes = new[]
{
"title",
"description",
},
AttributesToRetrieves = new[]
{
"*",
},
},
});
var exampleVirtualReplica = new Algolia.VirtualIndex("exampleVirtualReplica", new()
{
PrimaryIndexName = example.Name,
AttributesConfig = new Algolia.Inputs.VirtualIndexAttributesConfigArgs
{
UnretrievableAttributes = new[]
{
"author_email",
},
AttributesToRetrieves = new[]
{
"*",
},
},
RankingConfig = new Algolia.Inputs.VirtualIndexRankingConfigArgs
{
CustomRankings = new[]
{
"desc(likes)",
},
},
FacetingConfig = new Algolia.Inputs.VirtualIndexFacetingConfigArgs
{
MaxValuesPerFacet = 50,
SortFacetValuesBy = "alpha",
},
LanguagesConfig = new Algolia.Inputs.VirtualIndexLanguagesConfigArgs
{
RemoveStopWordsFors = new[]
{
"en",
},
},
});
});
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.VirtualIndex;
import com.pulumi.algolia.VirtualIndexArgs;
import com.pulumi.algolia.inputs.VirtualIndexAttributesConfigArgs;
import com.pulumi.algolia.inputs.VirtualIndexRankingConfigArgs;
import com.pulumi.algolia.inputs.VirtualIndexFacetingConfigArgs;
import com.pulumi.algolia.inputs.VirtualIndexLanguagesConfigArgs;
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 example = new Index("example", IndexArgs.builder()
.attributesConfig(IndexAttributesConfigArgs.builder()
.searchableAttributes(
"title",
"description")
.attributesToRetrieves("*")
.build())
.build());
var exampleVirtualReplica = new VirtualIndex("exampleVirtualReplica", VirtualIndexArgs.builder()
.primaryIndexName(example.name())
.attributesConfig(VirtualIndexAttributesConfigArgs.builder()
.unretrievableAttributes("author_email")
.attributesToRetrieves("*")
.build())
.rankingConfig(VirtualIndexRankingConfigArgs.builder()
.customRankings("desc(likes)")
.build())
.facetingConfig(VirtualIndexFacetingConfigArgs.builder()
.maxValuesPerFacet(50)
.sortFacetValuesBy("alpha")
.build())
.languagesConfig(VirtualIndexLanguagesConfigArgs.builder()
.removeStopWordsFors("en")
.build())
.build());
}
}
resources:
example:
type: algolia:Index
properties:
attributesConfig:
searchableAttributes:
- title
- description
attributesToRetrieves:
- '*'
exampleVirtualReplica:
type: algolia:VirtualIndex
properties:
primaryIndexName: ${example.name}
attributesConfig:
unretrievableAttributes:
- author_email
attributesToRetrieves:
- '*'
rankingConfig:
customRankings:
- desc(likes)
facetingConfig:
maxValuesPerFacet: 50
sortFacetValuesBy: alpha
languagesConfig:
removeStopWordsFors:
- en
Create VirtualIndex Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualIndex(name: string, args: VirtualIndexArgs, opts?: CustomResourceOptions);
@overload
def VirtualIndex(resource_name: str,
args: VirtualIndexArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualIndex(resource_name: str,
opts: Optional[ResourceOptions] = None,
primary_index_name: Optional[str] = None,
name: Optional[str] = None,
query_strategy_config: Optional[VirtualIndexQueryStrategyConfigArgs] = None,
enable_personalization: Optional[bool] = None,
enable_rules: Optional[bool] = None,
faceting_config: Optional[VirtualIndexFacetingConfigArgs] = None,
highlight_and_snippet_config: Optional[VirtualIndexHighlightAndSnippetConfigArgs] = None,
deletion_protection: Optional[bool] = None,
pagination_config: Optional[VirtualIndexPaginationConfigArgs] = None,
languages_config: Optional[VirtualIndexLanguagesConfigArgs] = None,
attributes_config: Optional[VirtualIndexAttributesConfigArgs] = None,
advanced_config: Optional[VirtualIndexAdvancedConfigArgs] = None,
ranking_config: Optional[VirtualIndexRankingConfigArgs] = None,
timeouts: Optional[VirtualIndexTimeoutsArgs] = None,
typos_config: Optional[VirtualIndexTyposConfigArgs] = None,
virtual_index_id: Optional[str] = None)
func NewVirtualIndex(ctx *Context, name string, args VirtualIndexArgs, opts ...ResourceOption) (*VirtualIndex, error)
public VirtualIndex(string name, VirtualIndexArgs args, CustomResourceOptions? opts = null)
public VirtualIndex(String name, VirtualIndexArgs args)
public VirtualIndex(String name, VirtualIndexArgs args, CustomResourceOptions options)
type: algolia:VirtualIndex
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 VirtualIndexArgs
- 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 VirtualIndexArgs
- 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 VirtualIndexArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualIndexArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualIndexArgs
- 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 virtualIndexResource = new Algolia.VirtualIndex("virtualIndexResource", new()
{
PrimaryIndexName = "string",
Name = "string",
QueryStrategyConfig = new Algolia.Inputs.VirtualIndexQueryStrategyConfigArgs
{
AdvancedSyntax = false,
AdvancedSyntaxFeatures = new[]
{
"string",
},
AlternativesAsExacts = new[]
{
"string",
},
DisableExactOnAttributes = new[]
{
"string",
},
DisablePrefixOnAttributes = new[]
{
"string",
},
ExactOnSingleWordQuery = "string",
OptionalWords = new[]
{
"string",
},
QueryType = "string",
RemoveWordsIfNoResults = "string",
},
EnablePersonalization = false,
EnableRules = false,
FacetingConfig = new Algolia.Inputs.VirtualIndexFacetingConfigArgs
{
MaxValuesPerFacet = 0,
SortFacetValuesBy = "string",
},
HighlightAndSnippetConfig = new Algolia.Inputs.VirtualIndexHighlightAndSnippetConfigArgs
{
AttributesToHighlights = new[]
{
"string",
},
AttributesToSnippets = new[]
{
"string",
},
HighlightPostTag = "string",
HighlightPreTag = "string",
RestrictHighlightAndSnippetArrays = false,
SnippetEllipsisText = "string",
},
DeletionProtection = false,
PaginationConfig = new Algolia.Inputs.VirtualIndexPaginationConfigArgs
{
HitsPerPage = 0,
PaginationLimitedTo = 0,
},
LanguagesConfig = new Algolia.Inputs.VirtualIndexLanguagesConfigArgs
{
AttributesToTransliterates = new[]
{
"string",
},
CamelCaseAttributes = new[]
{
"string",
},
CustomNormalization =
{
{ "string", "string" },
},
DecompoundQuery = false,
DecompoundedAttributes = new[]
{
new Algolia.Inputs.VirtualIndexLanguagesConfigDecompoundedAttributeArgs
{
Attributes = new[]
{
"string",
},
Language = "string",
},
},
IgnorePlurals = false,
IgnorePluralsFors = new[]
{
"string",
},
IndexLanguages = new[]
{
"string",
},
KeepDiacriticsOnCharacters = "string",
QueryLanguages = new[]
{
"string",
},
RemoveStopWords = false,
RemoveStopWordsFors = new[]
{
"string",
},
},
AttributesConfig = new Algolia.Inputs.VirtualIndexAttributesConfigArgs
{
AttributesForFacetings = new[]
{
"string",
},
AttributesToRetrieves = new[]
{
"string",
},
SearchableAttributes = new[]
{
"string",
},
UnretrievableAttributes = new[]
{
"string",
},
},
AdvancedConfig = new Algolia.Inputs.VirtualIndexAdvancedConfigArgs
{
AttributeCriteriaComputedByMinProximity = false,
AttributeForDistinct = "string",
Distinct = 0,
MaxFacetHits = 0,
MinProximity = 0,
ReplaceSynonymsInHighlight = false,
ResponseFields = new[]
{
"string",
},
},
RankingConfig = new Algolia.Inputs.VirtualIndexRankingConfigArgs
{
CustomRankings = new[]
{
"string",
},
Rankings = new[]
{
"string",
},
RelevancyStrictness = 0,
},
Timeouts = new Algolia.Inputs.VirtualIndexTimeoutsArgs
{
Default = "string",
},
TyposConfig = new Algolia.Inputs.VirtualIndexTyposConfigArgs
{
AllowTyposOnNumericTokens = false,
DisableTypoToleranceOnAttributes = new[]
{
"string",
},
DisableTypoToleranceOnWords = new[]
{
"string",
},
MinWordSizeFor1Typo = 0,
MinWordSizeFor2Typos = 0,
SeparatorsToIndex = "string",
TypoTolerance = "string",
},
VirtualIndexId = "string",
});
example, err := algolia.NewVirtualIndex(ctx, "virtualIndexResource", &algolia.VirtualIndexArgs{
PrimaryIndexName: pulumi.String("string"),
Name: pulumi.String("string"),
QueryStrategyConfig: &algolia.VirtualIndexQueryStrategyConfigArgs{
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"),
},
EnablePersonalization: pulumi.Bool(false),
EnableRules: pulumi.Bool(false),
FacetingConfig: &algolia.VirtualIndexFacetingConfigArgs{
MaxValuesPerFacet: pulumi.Float64(0),
SortFacetValuesBy: pulumi.String("string"),
},
HighlightAndSnippetConfig: &algolia.VirtualIndexHighlightAndSnippetConfigArgs{
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"),
},
DeletionProtection: pulumi.Bool(false),
PaginationConfig: &algolia.VirtualIndexPaginationConfigArgs{
HitsPerPage: pulumi.Float64(0),
PaginationLimitedTo: pulumi.Float64(0),
},
LanguagesConfig: &algolia.VirtualIndexLanguagesConfigArgs{
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.VirtualIndexLanguagesConfigDecompoundedAttributeArray{
&algolia.VirtualIndexLanguagesConfigDecompoundedAttributeArgs{
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"),
},
},
AttributesConfig: &algolia.VirtualIndexAttributesConfigArgs{
AttributesForFacetings: pulumi.StringArray{
pulumi.String("string"),
},
AttributesToRetrieves: pulumi.StringArray{
pulumi.String("string"),
},
SearchableAttributes: pulumi.StringArray{
pulumi.String("string"),
},
UnretrievableAttributes: pulumi.StringArray{
pulumi.String("string"),
},
},
AdvancedConfig: &algolia.VirtualIndexAdvancedConfigArgs{
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"),
},
},
RankingConfig: &algolia.VirtualIndexRankingConfigArgs{
CustomRankings: pulumi.StringArray{
pulumi.String("string"),
},
Rankings: pulumi.StringArray{
pulumi.String("string"),
},
RelevancyStrictness: pulumi.Float64(0),
},
Timeouts: &algolia.VirtualIndexTimeoutsArgs{
Default: pulumi.String("string"),
},
TyposConfig: &algolia.VirtualIndexTyposConfigArgs{
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"),
},
VirtualIndexId: pulumi.String("string"),
})
var virtualIndexResource = new VirtualIndex("virtualIndexResource", VirtualIndexArgs.builder()
.primaryIndexName("string")
.name("string")
.queryStrategyConfig(VirtualIndexQueryStrategyConfigArgs.builder()
.advancedSyntax(false)
.advancedSyntaxFeatures("string")
.alternativesAsExacts("string")
.disableExactOnAttributes("string")
.disablePrefixOnAttributes("string")
.exactOnSingleWordQuery("string")
.optionalWords("string")
.queryType("string")
.removeWordsIfNoResults("string")
.build())
.enablePersonalization(false)
.enableRules(false)
.facetingConfig(VirtualIndexFacetingConfigArgs.builder()
.maxValuesPerFacet(0)
.sortFacetValuesBy("string")
.build())
.highlightAndSnippetConfig(VirtualIndexHighlightAndSnippetConfigArgs.builder()
.attributesToHighlights("string")
.attributesToSnippets("string")
.highlightPostTag("string")
.highlightPreTag("string")
.restrictHighlightAndSnippetArrays(false)
.snippetEllipsisText("string")
.build())
.deletionProtection(false)
.paginationConfig(VirtualIndexPaginationConfigArgs.builder()
.hitsPerPage(0)
.paginationLimitedTo(0)
.build())
.languagesConfig(VirtualIndexLanguagesConfigArgs.builder()
.attributesToTransliterates("string")
.camelCaseAttributes("string")
.customNormalization(Map.of("string", "string"))
.decompoundQuery(false)
.decompoundedAttributes(VirtualIndexLanguagesConfigDecompoundedAttributeArgs.builder()
.attributes("string")
.language("string")
.build())
.ignorePlurals(false)
.ignorePluralsFors("string")
.indexLanguages("string")
.keepDiacriticsOnCharacters("string")
.queryLanguages("string")
.removeStopWords(false)
.removeStopWordsFors("string")
.build())
.attributesConfig(VirtualIndexAttributesConfigArgs.builder()
.attributesForFacetings("string")
.attributesToRetrieves("string")
.searchableAttributes("string")
.unretrievableAttributes("string")
.build())
.advancedConfig(VirtualIndexAdvancedConfigArgs.builder()
.attributeCriteriaComputedByMinProximity(false)
.attributeForDistinct("string")
.distinct(0)
.maxFacetHits(0)
.minProximity(0)
.replaceSynonymsInHighlight(false)
.responseFields("string")
.build())
.rankingConfig(VirtualIndexRankingConfigArgs.builder()
.customRankings("string")
.rankings("string")
.relevancyStrictness(0)
.build())
.timeouts(VirtualIndexTimeoutsArgs.builder()
.default_("string")
.build())
.typosConfig(VirtualIndexTyposConfigArgs.builder()
.allowTyposOnNumericTokens(false)
.disableTypoToleranceOnAttributes("string")
.disableTypoToleranceOnWords("string")
.minWordSizeFor1Typo(0)
.minWordSizeFor2Typos(0)
.separatorsToIndex("string")
.typoTolerance("string")
.build())
.virtualIndexId("string")
.build());
virtual_index_resource = algolia.VirtualIndex("virtualIndexResource",
primary_index_name="string",
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",
},
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",
},
deletion_protection=False,
pagination_config={
"hits_per_page": 0,
"pagination_limited_to": 0,
},
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"],
},
attributes_config={
"attributes_for_facetings": ["string"],
"attributes_to_retrieves": ["string"],
"searchable_attributes": ["string"],
"unretrievable_attributes": ["string"],
},
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"],
},
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",
},
virtual_index_id="string")
const virtualIndexResource = new algolia.VirtualIndex("virtualIndexResource", {
primaryIndexName: "string",
name: "string",
queryStrategyConfig: {
advancedSyntax: false,
advancedSyntaxFeatures: ["string"],
alternativesAsExacts: ["string"],
disableExactOnAttributes: ["string"],
disablePrefixOnAttributes: ["string"],
exactOnSingleWordQuery: "string",
optionalWords: ["string"],
queryType: "string",
removeWordsIfNoResults: "string",
},
enablePersonalization: false,
enableRules: false,
facetingConfig: {
maxValuesPerFacet: 0,
sortFacetValuesBy: "string",
},
highlightAndSnippetConfig: {
attributesToHighlights: ["string"],
attributesToSnippets: ["string"],
highlightPostTag: "string",
highlightPreTag: "string",
restrictHighlightAndSnippetArrays: false,
snippetEllipsisText: "string",
},
deletionProtection: false,
paginationConfig: {
hitsPerPage: 0,
paginationLimitedTo: 0,
},
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"],
},
attributesConfig: {
attributesForFacetings: ["string"],
attributesToRetrieves: ["string"],
searchableAttributes: ["string"],
unretrievableAttributes: ["string"],
},
advancedConfig: {
attributeCriteriaComputedByMinProximity: false,
attributeForDistinct: "string",
distinct: 0,
maxFacetHits: 0,
minProximity: 0,
replaceSynonymsInHighlight: false,
responseFields: ["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",
},
virtualIndexId: "string",
});
type: algolia:VirtualIndex
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
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
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
virtualIndexId: string
VirtualIndex 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 VirtualIndex resource accepts the following input properties:
- Primary
Index stringName - The name of the existing primary index name.
- Advanced
Config VirtualIndex Advanced Config - The configuration for advanced features in index setting.
- Attributes
Config VirtualIndex Attributes 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 VirtualIndex Faceting Config - The configuration for faceting.
- Highlight
And VirtualSnippet Config Index Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- Languages
Config VirtualIndex Languages Config - The configuration for languages in index setting.
- Name string
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - Pagination
Config VirtualIndex Pagination Config - The configuration for pagination in index setting.
- Query
Strategy VirtualConfig Index Query Strategy Config - The configuration for query strategy in index setting.
- Ranking
Config VirtualIndex Ranking Config - The configuration for ranking.
- Timeouts
Virtual
Index Timeouts - Typos
Config VirtualIndex Typos Config - The configuration for typos in index setting.
- Virtual
Index stringId
- Primary
Index stringName - The name of the existing primary index name.
- Advanced
Config VirtualIndex Advanced Config Args - The configuration for advanced features in index setting.
- Attributes
Config VirtualIndex Attributes 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 VirtualIndex Faceting Config Args - The configuration for faceting.
- Highlight
And VirtualSnippet Config Index Highlight And Snippet Config Args - The configuration for highlight / snippet in index setting.
- Languages
Config VirtualIndex Languages Config Args - The configuration for languages in index setting.
- Name string
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - Pagination
Config VirtualIndex Pagination Config Args - The configuration for pagination in index setting.
- Query
Strategy VirtualConfig Index Query Strategy Config Args - The configuration for query strategy in index setting.
- Ranking
Config VirtualIndex Ranking Config Args - The configuration for ranking.
- Timeouts
Virtual
Index Timeouts Args - Typos
Config VirtualIndex Typos Config Args - The configuration for typos in index setting.
- Virtual
Index stringId
- primary
Index StringName - The name of the existing primary index name.
- advanced
Config VirtualIndex Advanced Config - The configuration for advanced features in index setting.
- attributes
Config VirtualIndex Attributes 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 VirtualIndex Faceting Config - The configuration for faceting.
- highlight
And VirtualSnippet Config Index Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- languages
Config VirtualIndex Languages Config - The configuration for languages in index setting.
- name String
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - pagination
Config VirtualIndex Pagination Config - The configuration for pagination in index setting.
- query
Strategy VirtualConfig Index Query Strategy Config - The configuration for query strategy in index setting.
- ranking
Config VirtualIndex Ranking Config - The configuration for ranking.
- timeouts
Virtual
Index Timeouts - typos
Config VirtualIndex Typos Config - The configuration for typos in index setting.
- virtual
Index StringId
- primary
Index stringName - The name of the existing primary index name.
- advanced
Config VirtualIndex Advanced Config - The configuration for advanced features in index setting.
- attributes
Config VirtualIndex Attributes 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 VirtualIndex Faceting Config - The configuration for faceting.
- highlight
And VirtualSnippet Config Index Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- languages
Config VirtualIndex Languages Config - The configuration for languages in index setting.
- name string
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - pagination
Config VirtualIndex Pagination Config - The configuration for pagination in index setting.
- query
Strategy VirtualConfig Index Query Strategy Config - The configuration for query strategy in index setting.
- ranking
Config VirtualIndex Ranking Config - The configuration for ranking.
- timeouts
Virtual
Index Timeouts - typos
Config VirtualIndex Typos Config - The configuration for typos in index setting.
- virtual
Index stringId
- primary_
index_ strname - The name of the existing primary index name.
- advanced_
config VirtualIndex Advanced Config Args - The configuration for advanced features in index setting.
- attributes_
config VirtualIndex Attributes 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 VirtualIndex Faceting Config Args - The configuration for faceting.
- highlight_
and_ Virtualsnippet_ config Index Highlight And Snippet Config Args - The configuration for highlight / snippet in index setting.
- languages_
config VirtualIndex Languages Config Args - The configuration for languages in index setting.
- name str
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - pagination_
config VirtualIndex Pagination Config Args - The configuration for pagination in index setting.
- query_
strategy_ Virtualconfig Index Query Strategy Config Args - The configuration for query strategy in index setting.
- ranking_
config VirtualIndex Ranking Config Args - The configuration for ranking.
- timeouts
Virtual
Index Timeouts Args - typos_
config VirtualIndex Typos Config Args - The configuration for typos in index setting.
- virtual_
index_ strid
- primary
Index StringName - The name of the existing primary index name.
- 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.
- languages
Config Property Map - The configuration for languages in index setting.
- name String
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - pagination
Config Property Map - The configuration for pagination in index setting.
- 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
Index StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualIndex resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Performance
Configs List<VirtualIndex Performance Config> - The configuration for performance in index setting.
- Id string
- The provider-assigned unique ID for this managed resource.
- Performance
Configs []VirtualIndex Performance Config - The configuration for performance in index setting.
- id String
- The provider-assigned unique ID for this managed resource.
- performance
Configs List<VirtualIndex Performance Config> - The configuration for performance in index setting.
- id string
- The provider-assigned unique ID for this managed resource.
- performance
Configs VirtualIndex Performance Config[] - The configuration for performance in index setting.
- id str
- The provider-assigned unique ID for this managed resource.
- performance_
configs Sequence[VirtualIndex Performance Config] - The configuration for performance in index setting.
- id String
- The provider-assigned unique ID for this managed resource.
- performance
Configs List<Property Map> - The configuration for performance in index setting.
Look up Existing VirtualIndex Resource
Get an existing VirtualIndex 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?: VirtualIndexState, opts?: CustomResourceOptions): VirtualIndex
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
advanced_config: Optional[VirtualIndexAdvancedConfigArgs] = None,
attributes_config: Optional[VirtualIndexAttributesConfigArgs] = None,
deletion_protection: Optional[bool] = None,
enable_personalization: Optional[bool] = None,
enable_rules: Optional[bool] = None,
faceting_config: Optional[VirtualIndexFacetingConfigArgs] = None,
highlight_and_snippet_config: Optional[VirtualIndexHighlightAndSnippetConfigArgs] = None,
languages_config: Optional[VirtualIndexLanguagesConfigArgs] = None,
name: Optional[str] = None,
pagination_config: Optional[VirtualIndexPaginationConfigArgs] = None,
performance_configs: Optional[Sequence[VirtualIndexPerformanceConfigArgs]] = None,
primary_index_name: Optional[str] = None,
query_strategy_config: Optional[VirtualIndexQueryStrategyConfigArgs] = None,
ranking_config: Optional[VirtualIndexRankingConfigArgs] = None,
timeouts: Optional[VirtualIndexTimeoutsArgs] = None,
typos_config: Optional[VirtualIndexTyposConfigArgs] = None,
virtual_index_id: Optional[str] = None) -> VirtualIndex
func GetVirtualIndex(ctx *Context, name string, id IDInput, state *VirtualIndexState, opts ...ResourceOption) (*VirtualIndex, error)
public static VirtualIndex Get(string name, Input<string> id, VirtualIndexState? state, CustomResourceOptions? opts = null)
public static VirtualIndex get(String name, Output<String> id, VirtualIndexState state, CustomResourceOptions options)
resources: _: type: algolia:VirtualIndex 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 VirtualIndex Advanced Config - The configuration for advanced features in index setting.
- Attributes
Config VirtualIndex Attributes 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 VirtualIndex Faceting Config - The configuration for faceting.
- Highlight
And VirtualSnippet Config Index Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- Languages
Config VirtualIndex Languages Config - The configuration for languages in index setting.
- Name string
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - Pagination
Config VirtualIndex Pagination Config - The configuration for pagination in index setting.
- Performance
Configs List<VirtualIndex Performance Config> - The configuration for performance in index setting.
- Primary
Index stringName - The name of the existing primary index name.
- Query
Strategy VirtualConfig Index Query Strategy Config - The configuration for query strategy in index setting.
- Ranking
Config VirtualIndex Ranking Config - The configuration for ranking.
- Timeouts
Virtual
Index Timeouts - Typos
Config VirtualIndex Typos Config - The configuration for typos in index setting.
- Virtual
Index stringId
- Advanced
Config VirtualIndex Advanced Config Args - The configuration for advanced features in index setting.
- Attributes
Config VirtualIndex Attributes 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 VirtualIndex Faceting Config Args - The configuration for faceting.
- Highlight
And VirtualSnippet Config Index Highlight And Snippet Config Args - The configuration for highlight / snippet in index setting.
- Languages
Config VirtualIndex Languages Config Args - The configuration for languages in index setting.
- Name string
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - Pagination
Config VirtualIndex Pagination Config Args - The configuration for pagination in index setting.
- Performance
Configs []VirtualIndex Performance Config Args - The configuration for performance in index setting.
- Primary
Index stringName - The name of the existing primary index name.
- Query
Strategy VirtualConfig Index Query Strategy Config Args - The configuration for query strategy in index setting.
- Ranking
Config VirtualIndex Ranking Config Args - The configuration for ranking.
- Timeouts
Virtual
Index Timeouts Args - Typos
Config VirtualIndex Typos Config Args - The configuration for typos in index setting.
- Virtual
Index stringId
- advanced
Config VirtualIndex Advanced Config - The configuration for advanced features in index setting.
- attributes
Config VirtualIndex Attributes 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 VirtualIndex Faceting Config - The configuration for faceting.
- highlight
And VirtualSnippet Config Index Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- languages
Config VirtualIndex Languages Config - The configuration for languages in index setting.
- name String
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - pagination
Config VirtualIndex Pagination Config - The configuration for pagination in index setting.
- performance
Configs List<VirtualIndex Performance Config> - The configuration for performance in index setting.
- primary
Index StringName - The name of the existing primary index name.
- query
Strategy VirtualConfig Index Query Strategy Config - The configuration for query strategy in index setting.
- ranking
Config VirtualIndex Ranking Config - The configuration for ranking.
- timeouts
Virtual
Index Timeouts - typos
Config VirtualIndex Typos Config - The configuration for typos in index setting.
- virtual
Index StringId
- advanced
Config VirtualIndex Advanced Config - The configuration for advanced features in index setting.
- attributes
Config VirtualIndex Attributes 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 VirtualIndex Faceting Config - The configuration for faceting.
- highlight
And VirtualSnippet Config Index Highlight And Snippet Config - The configuration for highlight / snippet in index setting.
- languages
Config VirtualIndex Languages Config - The configuration for languages in index setting.
- name string
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - pagination
Config VirtualIndex Pagination Config - The configuration for pagination in index setting.
- performance
Configs VirtualIndex Performance Config[] - The configuration for performance in index setting.
- primary
Index stringName - The name of the existing primary index name.
- query
Strategy VirtualConfig Index Query Strategy Config - The configuration for query strategy in index setting.
- ranking
Config VirtualIndex Ranking Config - The configuration for ranking.
- timeouts
Virtual
Index Timeouts - typos
Config VirtualIndex Typos Config - The configuration for typos in index setting.
- virtual
Index stringId
- advanced_
config VirtualIndex Advanced Config Args - The configuration for advanced features in index setting.
- attributes_
config VirtualIndex Attributes 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 VirtualIndex Faceting Config Args - The configuration for faceting.
- highlight_
and_ Virtualsnippet_ config Index Highlight And Snippet Config Args - The configuration for highlight / snippet in index setting.
- languages_
config VirtualIndex Languages Config Args - The configuration for languages in index setting.
- name str
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - pagination_
config VirtualIndex Pagination Config Args - The configuration for pagination in index setting.
- performance_
configs Sequence[VirtualIndex Performance Config Args] - The configuration for performance in index setting.
- primary_
index_ strname - The name of the existing primary index name.
- query_
strategy_ Virtualconfig Index Query Strategy Config Args - The configuration for query strategy in index setting.
- ranking_
config VirtualIndex Ranking Config Args - The configuration for ranking.
- timeouts
Virtual
Index Timeouts Args - typos_
config VirtualIndex Typos Config Args - The configuration for typos in index setting.
- virtual_
index_ strid
- 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.
- languages
Config Property Map - The configuration for languages in index setting.
- name String
- Name of the virtual index. Its name should NOT be surrounded with
virtual()
. - pagination
Config Property Map - The configuration for pagination in index setting.
- performance
Configs List<Property Map> - The configuration for performance in index setting.
- primary
Index StringName - The name of the existing primary index name.
- 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
Index StringId
Supporting Types
VirtualIndexAdvancedConfig, VirtualIndexAdvancedConfigArgs
- 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.
VirtualIndexAttributesConfig, VirtualIndexAttributesConfigArgs
- 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.
VirtualIndexFacetingConfig, VirtualIndexFacetingConfigArgs
- 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.
VirtualIndexHighlightAndSnippetConfig, VirtualIndexHighlightAndSnippetConfigArgs
- 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.
VirtualIndexLanguagesConfig, VirtualIndexLanguagesConfigArgs
- 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<VirtualIndex Languages 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 []VirtualIndex Languages 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<VirtualIndex Languages 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 VirtualIndex Languages 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[VirtualIndex Languages 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.
VirtualIndexLanguagesConfigDecompoundedAttribute, VirtualIndexLanguagesConfigDecompoundedAttributeArgs
- 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
VirtualIndexPaginationConfig, VirtualIndexPaginationConfigArgs
- 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
VirtualIndexPerformanceConfig, VirtualIndexPerformanceConfigArgs
- Allow
Compression boolOf Integer Array - Numeric
Attributes List<string>For Filterings
- allow
Compression BooleanOf Integer Array - numeric
Attributes List<String>For Filterings
- allow
Compression booleanOf Integer Array - numeric
Attributes string[]For Filterings
- allow_
compression_ boolof_ integer_ array - numeric_
attributes_ Sequence[str]for_ filterings
- allow
Compression BooleanOf Integer Array - numeric
Attributes List<String>For Filterings
VirtualIndexQueryStrategyConfig, VirtualIndexQueryStrategyConfigArgs
- 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.
VirtualIndexRankingConfig, VirtualIndexRankingConfigArgs
- 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
VirtualIndexTimeouts, VirtualIndexTimeoutsArgs
- Default string
- Default string
- default_ String
- default string
- default str
- default String
VirtualIndexTyposConfig, VirtualIndexTyposConfigArgs
- 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/virtualIndex:VirtualIndex 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.