Class IndexSettingsAsSearchParams

java.lang.Object
com.algolia.model.recommend.IndexSettingsAsSearchParams

public class IndexSettingsAsSearchParams extends Object
IndexSettingsAsSearchParams
  • Constructor Details

    • IndexSettingsAsSearchParams

      public IndexSettingsAsSearchParams()
  • Method Details

    • setAttributesForFaceting

      public IndexSettingsAsSearchParams setAttributesForFaceting(List<String> attributesForFaceting)
    • addAttributesForFaceting

      public IndexSettingsAsSearchParams addAttributesForFaceting(String attributesForFacetingItem)
    • getAttributesForFaceting

      @Nullable public List<String> getAttributesForFaceting()
      Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/) and the [modifiers](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) that can be applied: `filterOnly`, `searchable`, and `afterDistinct`.
    • setAttributesToRetrieve

      public IndexSettingsAsSearchParams setAttributesToRetrieve(List<String> attributesToRetrieve)
    • addAttributesToRetrieve

      public IndexSettingsAsSearchParams addAttributesToRetrieve(String attributesToRetrieveItem)
    • getAttributesToRetrieve

      @Nullable public List<String> getAttributesToRetrieve()
      Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. By default, the response includes all attributes.
    • setRanking

      public IndexSettingsAsSearchParams setRanking(List<String> ranking)
    • addRanking

      public IndexSettingsAsSearchParams addRanking(String rankingItem)
    • getRanking

      @Nullable public List<String> getRanking()
      Determines the order in which Algolia [returns your results](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/).
    • setCustomRanking

      public IndexSettingsAsSearchParams setCustomRanking(List<String> customRanking)
    • addCustomRanking

      public IndexSettingsAsSearchParams addCustomRanking(String customRankingItem)
    • getCustomRanking

      @Nullable public List<String> getCustomRanking()
      Specifies the [Custom ranking criterion](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Use the `asc` and `desc` modifiers to specify the ranking order: ascending or descending.
    • setRelevancyStrictness

      public IndexSettingsAsSearchParams setRelevancyStrictness(Integer relevancyStrictness)
    • getRelevancyStrictness

      @Nullable public Integer getRelevancyStrictness()
      Relevancy threshold below which less relevant results aren't included in the results.
    • setAttributesToHighlight

      public IndexSettingsAsSearchParams setAttributesToHighlight(List<String> attributesToHighlight)
    • addAttributesToHighlight

      public IndexSettingsAsSearchParams addAttributesToHighlight(String attributesToHighlightItem)
    • getAttributesToHighlight

      @Nullable public List<String> getAttributesToHighlight()
      Attributes to highlight. Strings that match the search query in the attributes are highlighted by surrounding them with HTML tags (`highlightPreTag` and `highlightPostTag`).
    • setAttributesToSnippet

      public IndexSettingsAsSearchParams setAttributesToSnippet(List<String> attributesToSnippet)
    • addAttributesToSnippet

      public IndexSettingsAsSearchParams addAttributesToSnippet(String attributesToSnippetItem)
    • getAttributesToSnippet

      @Nullable public List<String> getAttributesToSnippet()
      Attributes to _snippet_. 'Snippeting' is shortening the attribute to a certain number of words. If not specified, the attribute is shortened to the 10 words around the matching string but you can specify the number. For example: `body:20`.
    • setHighlightPreTag

      public IndexSettingsAsSearchParams setHighlightPreTag(String highlightPreTag)
    • getHighlightPreTag

      @Nullable public String getHighlightPreTag()
      HTML string to insert before the highlighted parts in all highlight and snippet results.
    • setHighlightPostTag

      public IndexSettingsAsSearchParams setHighlightPostTag(String highlightPostTag)
    • getHighlightPostTag

      @Nullable public String getHighlightPostTag()
      HTML string to insert after the highlighted parts in all highlight and snippet results.
    • setSnippetEllipsisText

      public IndexSettingsAsSearchParams setSnippetEllipsisText(String snippetEllipsisText)
    • getSnippetEllipsisText

      @Nullable public String getSnippetEllipsisText()
      String used as an ellipsis indicator when a snippet is truncated.
    • setRestrictHighlightAndSnippetArrays

      public IndexSettingsAsSearchParams setRestrictHighlightAndSnippetArrays(Boolean restrictHighlightAndSnippetArrays)
    • getRestrictHighlightAndSnippetArrays

      @Nullable public Boolean getRestrictHighlightAndSnippetArrays()
      Restrict highlighting and snippeting to items that matched the query.
    • setHitsPerPage

      public IndexSettingsAsSearchParams setHitsPerPage(Integer hitsPerPage)
    • getHitsPerPage

      @Nullable public Integer getHitsPerPage()
      Number of hits per page. minimum: 1 maximum: 1000
    • setMinWordSizefor1Typo

      public IndexSettingsAsSearchParams setMinWordSizefor1Typo(Integer minWordSizefor1Typo)
    • getMinWordSizefor1Typo

      @Nullable public Integer getMinWordSizefor1Typo()
      Minimum number of characters a word in the query string must contain to accept matches with [one typo](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
    • setMinWordSizefor2Typos

      public IndexSettingsAsSearchParams setMinWordSizefor2Typos(Integer minWordSizefor2Typos)
    • getMinWordSizefor2Typos

      @Nullable public Integer getMinWordSizefor2Typos()
      Minimum number of characters a word in the query string must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
    • setTypoTolerance

      public IndexSettingsAsSearchParams setTypoTolerance(TypoTolerance typoTolerance)
    • getTypoTolerance

      @Nullable public TypoTolerance getTypoTolerance()
      Get typoTolerance
    • setAllowTyposOnNumericTokens

      public IndexSettingsAsSearchParams setAllowTyposOnNumericTokens(Boolean allowTyposOnNumericTokens)
    • getAllowTyposOnNumericTokens

      @Nullable public Boolean getAllowTyposOnNumericTokens()
      Whether to allow typos on numbers (\"numeric tokens\") in the query string.
    • setDisableTypoToleranceOnAttributes

      public IndexSettingsAsSearchParams setDisableTypoToleranceOnAttributes(List<String> disableTypoToleranceOnAttributes)
    • addDisableTypoToleranceOnAttributes

      public IndexSettingsAsSearchParams addDisableTypoToleranceOnAttributes(String disableTypoToleranceOnAttributesItem)
    • getDisableTypoToleranceOnAttributes

      @Nullable public List<String> getDisableTypoToleranceOnAttributes()
      Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
    • setIgnorePlurals

      public IndexSettingsAsSearchParams setIgnorePlurals(IgnorePlurals ignorePlurals)
    • getIgnorePlurals

      @Nullable public IgnorePlurals getIgnorePlurals()
      Get ignorePlurals
    • setRemoveStopWords

      public IndexSettingsAsSearchParams setRemoveStopWords(RemoveStopWords removeStopWords)
    • getRemoveStopWords

      @Nullable public RemoveStopWords getRemoveStopWords()
      Get removeStopWords
    • setKeepDiacriticsOnCharacters

      public IndexSettingsAsSearchParams setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters)
    • getKeepDiacriticsOnCharacters

      @Nullable public String getKeepDiacriticsOnCharacters()
      Characters that the engine shouldn't automatically [normalize](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
    • setQueryLanguages

      public IndexSettingsAsSearchParams setQueryLanguages(List<String> queryLanguages)
    • addQueryLanguages

      public IndexSettingsAsSearchParams addQueryLanguages(String queryLanguagesItem)
    • getQueryLanguages

      @Nullable public List<String> getQueryLanguages()
      Sets your user's search language. This adjusts language-specific settings and features such as `ignorePlurals`, `removeStopWords`, and [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) word detection.
    • setDecompoundQuery

      public IndexSettingsAsSearchParams setDecompoundQuery(Boolean decompoundQuery)
    • getDecompoundQuery

      @Nullable public Boolean getDecompoundQuery()
      [Splits compound words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words) into their component word parts in the query.
    • setEnableRules

      public IndexSettingsAsSearchParams setEnableRules(Boolean enableRules)
    • getEnableRules

      @Nullable public Boolean getEnableRules()
      Incidates whether [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/) are enabled.
    • setEnablePersonalization

      public IndexSettingsAsSearchParams setEnablePersonalization(Boolean enablePersonalization)
    • getEnablePersonalization

      @Nullable public Boolean getEnablePersonalization()
      Incidates whether [Personalization](https://www.algolia.com/doc/guides/personalization/what-is-personalization/) is enabled.
    • setQueryType

      public IndexSettingsAsSearchParams setQueryType(QueryType queryType)
    • getQueryType

      @Nullable public QueryType getQueryType()
      Get queryType
    • setRemoveWordsIfNoResults

      public IndexSettingsAsSearchParams setRemoveWordsIfNoResults(RemoveWordsIfNoResults removeWordsIfNoResults)
    • getRemoveWordsIfNoResults

      @Nullable public RemoveWordsIfNoResults getRemoveWordsIfNoResults()
      Get removeWordsIfNoResults
    • setMode

      public IndexSettingsAsSearchParams setMode(Mode mode)
    • getMode

      @Nullable public Mode getMode()
      Get mode
    • setSemanticSearch

      public IndexSettingsAsSearchParams setSemanticSearch(SemanticSearch semanticSearch)
    • getSemanticSearch

      @Nullable public SemanticSearch getSemanticSearch()
      Get semanticSearch
    • setAdvancedSyntax

      public IndexSettingsAsSearchParams setAdvancedSyntax(Boolean advancedSyntax)
    • getAdvancedSyntax

      @Nullable public Boolean getAdvancedSyntax()
      Enables the [advanced query syntax](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#advanced-syntax).
    • setOptionalWords

      public IndexSettingsAsSearchParams setOptionalWords(List<String> optionalWords)
    • addOptionalWords

      public IndexSettingsAsSearchParams addOptionalWords(String optionalWordsItem)
    • getOptionalWords

      @Nullable public List<String> getOptionalWords()
      Words which should be considered [optional](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words) when found in a query.
    • setDisableExactOnAttributes

      public IndexSettingsAsSearchParams setDisableExactOnAttributes(List<String> disableExactOnAttributes)
    • addDisableExactOnAttributes

      public IndexSettingsAsSearchParams addDisableExactOnAttributes(String disableExactOnAttributesItem)
    • getDisableExactOnAttributes

      @Nullable public List<String> getDisableExactOnAttributes()
      Attributes for which you want to [turn off the exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes).
    • setExactOnSingleWordQuery

      public IndexSettingsAsSearchParams setExactOnSingleWordQuery(ExactOnSingleWordQuery exactOnSingleWordQuery)
    • getExactOnSingleWordQuery

      @Nullable public ExactOnSingleWordQuery getExactOnSingleWordQuery()
      Get exactOnSingleWordQuery
    • setAlternativesAsExact

      public IndexSettingsAsSearchParams setAlternativesAsExact(List<AlternativesAsExact> alternativesAsExact)
    • addAlternativesAsExact

      public IndexSettingsAsSearchParams addAlternativesAsExact(AlternativesAsExact alternativesAsExactItem)
    • getAlternativesAsExact

      @Nullable public List<AlternativesAsExact> getAlternativesAsExact()
      Alternatives that should be considered an exact match by [the exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes).
    • setAdvancedSyntaxFeatures

      public IndexSettingsAsSearchParams setAdvancedSyntaxFeatures(List<AdvancedSyntaxFeatures> advancedSyntaxFeatures)
    • addAdvancedSyntaxFeatures

      public IndexSettingsAsSearchParams addAdvancedSyntaxFeatures(AdvancedSyntaxFeatures advancedSyntaxFeaturesItem)
    • getAdvancedSyntaxFeatures

      @Nullable public List<AdvancedSyntaxFeatures> getAdvancedSyntaxFeatures()
      Allows you to specify which advanced syntax features are active when `advancedSyntax` is enabled.
    • setDistinct

      public IndexSettingsAsSearchParams setDistinct(Distinct distinct)
    • getDistinct

      @Nullable public Distinct getDistinct()
      Get distinct
    • setReplaceSynonymsInHighlight

      public IndexSettingsAsSearchParams setReplaceSynonymsInHighlight(Boolean replaceSynonymsInHighlight)
    • getReplaceSynonymsInHighlight

      @Nullable public Boolean getReplaceSynonymsInHighlight()
      Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
    • setMinProximity

      public IndexSettingsAsSearchParams setMinProximity(Integer minProximity)
    • getMinProximity

      @Nullable public Integer getMinProximity()
      Precision of the [proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity). minimum: 1 maximum: 7
    • setResponseFields

      public IndexSettingsAsSearchParams setResponseFields(List<String> responseFields)
    • addResponseFields

      public IndexSettingsAsSearchParams addResponseFields(String responseFieldsItem)
    • getResponseFields

      @Nullable public List<String> getResponseFields()
      Attributes to include in the API response for search and browse queries.
    • setMaxFacetHits

      public IndexSettingsAsSearchParams setMaxFacetHits(Integer maxFacetHits)
    • getMaxFacetHits

      @Nullable public Integer getMaxFacetHits()
      Maximum number of facet hits to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values). maximum: 100
    • setMaxValuesPerFacet

      public IndexSettingsAsSearchParams setMaxValuesPerFacet(Integer maxValuesPerFacet)
    • getMaxValuesPerFacet

      @Nullable public Integer getMaxValuesPerFacet()
      Maximum number of facet values to return for each facet.
    • setSortFacetValuesBy

      public IndexSettingsAsSearchParams setSortFacetValuesBy(String sortFacetValuesBy)
    • getSortFacetValuesBy

      @Nullable public String getSortFacetValuesBy()
      Controls how facet values are fetched.
    • setAttributeCriteriaComputedByMinProximity

      public IndexSettingsAsSearchParams setAttributeCriteriaComputedByMinProximity(Boolean attributeCriteriaComputedByMinProximity)
    • getAttributeCriteriaComputedByMinProximity

      @Nullable public Boolean getAttributeCriteriaComputedByMinProximity()
      When the [Attribute criterion is ranked above Proximity](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#attribute-and-proximity-combinations) in your ranking formula, Proximity is used to select which searchable attribute is matched in the Attribute ranking stage.
    • setRenderingContent

      public IndexSettingsAsSearchParams setRenderingContent(RenderingContent renderingContent)
    • getRenderingContent

      @Nullable public RenderingContent getRenderingContent()
      Get renderingContent
    • setEnableReRanking

      public IndexSettingsAsSearchParams setEnableReRanking(Boolean enableReRanking)
    • getEnableReRanking

      @Nullable public Boolean getEnableReRanking()
      Indicates whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/).
    • setReRankingApplyFilter

      public IndexSettingsAsSearchParams setReRankingApplyFilter(ReRankingApplyFilter reRankingApplyFilter)
    • getReRankingApplyFilter

      @Nullable public ReRankingApplyFilter getReRankingApplyFilter()
      Get reRankingApplyFilter
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object