Package com.algolia.model.recommend
Class IndexSettingsAsSearchParams
java.lang.Object
com.algolia.model.recommend.IndexSettingsAsSearchParams
IndexSettingsAsSearchParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAdvancedSyntaxFeatures
(AdvancedSyntaxFeatures advancedSyntaxFeaturesItem) addAlternativesAsExact
(AlternativesAsExact alternativesAsExactItem) addAttributesForFaceting
(String attributesForFacetingItem) addAttributesToHighlight
(String attributesToHighlightItem) addAttributesToRetrieve
(String attributesToRetrieveItem) addAttributesToSnippet
(String attributesToSnippetItem) addCustomRanking
(String customRankingItem) addDisableExactOnAttributes
(String disableExactOnAttributesItem) addDisableTypoToleranceOnAttributes
(String disableTypoToleranceOnAttributesItem) addOptionalWords
(String optionalWordsItem) addQueryLanguages
(String queryLanguagesItem) addRanking
(String rankingItem) addResponseFields
(String responseFieldsItem) boolean
Enables the [advanced query syntax](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#advanced-syntax).Allows you to specify which advanced syntax features are active when `advancedSyntax` is enabled.Whether to allow typos on numbers (\"numeric tokens\") in the query string.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).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.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`.Attributes to highlight.Attributes to include in the API response.Attributes to _snippet_.Specifies the [Custom ranking criterion](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/).[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.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).Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).Get distinctIncidates whether [Personalization](https://www.algolia.com/doc/guides/personalization/what-is-personalization/) is enabled.Indicates whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/).Incidates whether [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/) are enabled.Get exactOnSingleWordQueryHTML string to insert after the highlighted parts in all highlight and snippet results.HTML string to insert before the highlighted parts in all highlight and snippet results.Number of hits per page.Get ignorePluralsCharacters 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/).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 number of facet values to return for each facet.Precision of the [proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity).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).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).getMode()
Get modeWords 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.Sets your user's search language.Get queryTypeDetermines the order in which Algolia [returns your results](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/).Relevancy threshold below which less relevant results aren't included in the results.Get removeStopWordsGet removeWordsIfNoResultsGet renderingContentWhether to highlight and snippet the original word that matches the synonym or the synonym itself.Get reRankingApplyFilterAttributes to include in the API response for search and browse queries.Restrict highlighting and snippeting to items that matched the query.Get semanticSearchString used as an ellipsis indicator when a snippet is truncated.Controls how facet values are fetched.Get typoToleranceint
hashCode()
setAdvancedSyntax
(Boolean advancedSyntax) setAdvancedSyntaxFeatures
(List<AdvancedSyntaxFeatures> advancedSyntaxFeatures) setAllowTyposOnNumericTokens
(Boolean allowTyposOnNumericTokens) setAlternativesAsExact
(List<AlternativesAsExact> alternativesAsExact) setAttributeCriteriaComputedByMinProximity
(Boolean attributeCriteriaComputedByMinProximity) setAttributesForFaceting
(List<String> attributesForFaceting) setAttributesToHighlight
(List<String> attributesToHighlight) setAttributesToRetrieve
(List<String> attributesToRetrieve) setAttributesToSnippet
(List<String> attributesToSnippet) setCustomRanking
(List<String> customRanking) setDecompoundQuery
(Boolean decompoundQuery) setDisableExactOnAttributes
(List<String> disableExactOnAttributes) setDisableTypoToleranceOnAttributes
(List<String> disableTypoToleranceOnAttributes) setDistinct
(Distinct distinct) setEnablePersonalization
(Boolean enablePersonalization) setEnableReRanking
(Boolean enableReRanking) setEnableRules
(Boolean enableRules) setExactOnSingleWordQuery
(ExactOnSingleWordQuery exactOnSingleWordQuery) setHighlightPostTag
(String highlightPostTag) setHighlightPreTag
(String highlightPreTag) setHitsPerPage
(Integer hitsPerPage) setIgnorePlurals
(IgnorePlurals ignorePlurals) setKeepDiacriticsOnCharacters
(String keepDiacriticsOnCharacters) setMaxFacetHits
(Integer maxFacetHits) setMaxValuesPerFacet
(Integer maxValuesPerFacet) setMinProximity
(Integer minProximity) setMinWordSizefor1Typo
(Integer minWordSizefor1Typo) setMinWordSizefor2Typos
(Integer minWordSizefor2Typos) setOptionalWords
(List<String> optionalWords) setQueryLanguages
(List<String> queryLanguages) setQueryType
(QueryType queryType) setRanking
(List<String> ranking) setRelevancyStrictness
(Integer relevancyStrictness) setRemoveStopWords
(RemoveStopWords removeStopWords) setRemoveWordsIfNoResults
(RemoveWordsIfNoResults removeWordsIfNoResults) setRenderingContent
(RenderingContent renderingContent) setReplaceSynonymsInHighlight
(Boolean replaceSynonymsInHighlight) setReRankingApplyFilter
(ReRankingApplyFilter reRankingApplyFilter) setResponseFields
(List<String> responseFields) setRestrictHighlightAndSnippetArrays
(Boolean restrictHighlightAndSnippetArrays) setSemanticSearch
(SemanticSearch semanticSearch) setSnippetEllipsisText
(String snippetEllipsisText) setSortFacetValuesBy
(String sortFacetValuesBy) setTypoTolerance
(TypoTolerance typoTolerance) toString()
-
Constructor Details
-
IndexSettingsAsSearchParams
public IndexSettingsAsSearchParams()
-
-
Method Details
-
setAttributesForFaceting
-
addAttributesForFaceting
-
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
-
addAttributesToRetrieve
-
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
-
addRanking
-
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
-
addCustomRanking
-
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
-
getRelevancyStrictness
Relevancy threshold below which less relevant results aren't included in the results. -
setAttributesToHighlight
-
addAttributesToHighlight
-
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
-
addAttributesToSnippet
-
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
-
getHighlightPreTag
HTML string to insert before the highlighted parts in all highlight and snippet results. -
setHighlightPostTag
-
getHighlightPostTag
HTML string to insert after the highlighted parts in all highlight and snippet results. -
setSnippetEllipsisText
-
getSnippetEllipsisText
String used as an ellipsis indicator when a snippet is truncated. -
setRestrictHighlightAndSnippetArrays
public IndexSettingsAsSearchParams setRestrictHighlightAndSnippetArrays(Boolean restrictHighlightAndSnippetArrays) -
getRestrictHighlightAndSnippetArrays
Restrict highlighting and snippeting to items that matched the query. -
setHitsPerPage
-
getHitsPerPage
Number of hits per page. minimum: 1 maximum: 1000 -
setMinWordSizefor1Typo
-
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
-
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
-
getTypoTolerance
Get typoTolerance -
setAllowTyposOnNumericTokens
-
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
Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). -
setIgnorePlurals
-
getIgnorePlurals
Get ignorePlurals -
setRemoveStopWords
-
getRemoveStopWords
Get removeStopWords -
setKeepDiacriticsOnCharacters
-
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
-
addQueryLanguages
-
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
-
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
-
getEnableRules
Incidates whether [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/) are enabled. -
setEnablePersonalization
-
getEnablePersonalization
Incidates whether [Personalization](https://www.algolia.com/doc/guides/personalization/what-is-personalization/) is enabled. -
setQueryType
-
getQueryType
Get queryType -
setRemoveWordsIfNoResults
public IndexSettingsAsSearchParams setRemoveWordsIfNoResults(RemoveWordsIfNoResults removeWordsIfNoResults) -
getRemoveWordsIfNoResults
Get removeWordsIfNoResults -
setMode
-
getMode
Get mode -
setSemanticSearch
-
getSemanticSearch
Get semanticSearch -
setAdvancedSyntax
-
getAdvancedSyntax
Enables the [advanced query syntax](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#advanced-syntax). -
setOptionalWords
-
addOptionalWords
-
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
-
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
Get exactOnSingleWordQuery -
setAlternativesAsExact
public IndexSettingsAsSearchParams setAlternativesAsExact(List<AlternativesAsExact> alternativesAsExact) -
addAlternativesAsExact
public IndexSettingsAsSearchParams addAlternativesAsExact(AlternativesAsExact alternativesAsExactItem) -
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
Allows you to specify which advanced syntax features are active when `advancedSyntax` is enabled. -
setDistinct
-
getDistinct
Get distinct -
setReplaceSynonymsInHighlight
public IndexSettingsAsSearchParams setReplaceSynonymsInHighlight(Boolean replaceSynonymsInHighlight) -
getReplaceSynonymsInHighlight
Whether to highlight and snippet the original word that matches the synonym or the synonym itself. -
setMinProximity
-
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
-
addResponseFields
-
getResponseFields
Attributes to include in the API response for search and browse queries. -
setMaxFacetHits
-
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
-
getMaxValuesPerFacet
Maximum number of facet values to return for each facet. -
setSortFacetValuesBy
-
getSortFacetValuesBy
Controls how facet values are fetched. -
setAttributeCriteriaComputedByMinProximity
public IndexSettingsAsSearchParams setAttributeCriteriaComputedByMinProximity(Boolean attributeCriteriaComputedByMinProximity) -
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
-
getRenderingContent
Get renderingContent -
setEnableReRanking
-
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
Get reRankingApplyFilter -
equals
-
hashCode
public int hashCode() -
toString
-