Class SourceIndex
java.lang.Object
com.algolia.model.querysuggestions.SourceIndex
Configuration of an Algolia index for Query Suggestions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnalyticsTags
(String analyticsTagsItem) addExternal
(String externalItem) addGenerate
(List<String> generateItem) boolean
Get analyticsTagsGet externalGet facetsGet generateName of the Algolia index (case-sensitive) to use as source for query suggestions.Minimum number of hits required to be included as a suggestion.Minimum letters required to be included as a suggestion.If true, Query Suggestions uses all replica indices to find popular searches.int
hashCode()
setAnalyticsTags
(List<String> analyticsTags) setExternal
(List<String> external) setGenerate
(List<List<String>> generate) setIndexName
(String indexName) setMinHits
(Integer minHits) setMinLetters
(Integer minLetters) setReplicas
(Boolean replicas) toString()
-
Constructor Details
-
SourceIndex
public SourceIndex()
-
-
Method Details
-
setIndexName
-
getIndexName
Name of the Algolia index (case-sensitive) to use as source for query suggestions. -
setReplicas
-
getReplicas
If true, Query Suggestions uses all replica indices to find popular searches. If false, only the primary index is used. -
setAnalyticsTags
-
addAnalyticsTags
-
getAnalyticsTags
Get analyticsTags -
setFacets
-
addFacets
-
getFacets
Get facets -
setMinHits
-
getMinHits
Minimum number of hits required to be included as a suggestion. A search query must at least generate `minHits` search results to be included in the Query Suggestions index. minimum: 0 -
setMinLetters
-
getMinLetters
Minimum letters required to be included as a suggestion. A search query must be at least `minLetters` long to be included in the Query Suggestions index. minimum: 0 -
setGenerate
-
addGenerate
-
getGenerate
Get generate -
setExternal
-
addExternal
-
getExternal
Get external -
equals
-
hashCode
public int hashCode() -
toString
-