Class SourceIndex
java.lang.Object
com.algolia.model.querysuggestions.SourceIndex
Configuration of an Algolia index for Query Suggestions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAnalyticsTags
(String analyticsTagsItem) addExternal
(String externalItem) addGenerate
(List<String> generateItem) boolean
[Analytics tags](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) for filtering the popular searches.Algolia indices with popular searches to use as query suggestions.Facets to use as top categories with your suggestions.Get generateName of the Algolia index 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 replicas of the primary index 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 to use as source for query suggestions. -
setReplicas
-
getReplicas
If true, Query Suggestions uses all replicas of the primary index to find popular searches. If false, only the primary index is used. -
setAnalyticsTags
-
addAnalyticsTags
-
getAnalyticsTags
[Analytics tags](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) for filtering the popular searches. -
setFacets
-
addFacets
-
getFacets
Facets to use as top categories with your suggestions. If provided, Query Suggestions adds the top facet values to each suggestion. -
setMinHits
-
getMinHits
Minimum number of hits required to be included as a suggestion. A search query must at least generate `minHits` hits 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
Algolia indices with popular searches to use as query suggestions. Records of these indices must have these attributes: - `query`: search query which will be added as a suggestion - `count`: measure of popularity of that search query For example, you can export popular searches from an external analytics tool, such as Google Analytics or Adobe Analytics, and feed this data into an external Algolia index. You can use this external index to generate query suggestions until your Algolia analytics has collected enough data. -
equals
-
hashCode
public int hashCode() -
toString
-