Package com.algolia.model.search
Class SynonymHit
java.lang.Object
com.algolia.model.search.SynonymHit
Synonym object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCorrections(String correctionsItem) addReplacements(String replacementsItem) addSynonyms(String synonymsItem) booleanWords to be matched in records.getInput()Word or phrase to appear in query strings (for [`onewaysynonym`s](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/one-way-synonyms/)).Unique identifier of a synonym object.[Placeholder token](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/synonyms-placeholders/) to be put inside records.Query words that will match the [placeholder token](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/synonyms-placeholders/).Words or phrases considered equivalent.getType()Get typegetWord()Word or phrase to appear in query strings (for [`altcorrection1` and `altcorrection2`](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/synonyms-alternative-corrections/)).inthashCode()setCorrections(List<String> corrections) setObjectID(String objectID) setPlaceholder(String placeholder) setReplacements(List<String> replacements) setSynonyms(List<String> synonyms) setType(SynonymType type) toString()
-
Constructor Details
-
SynonymHit
public SynonymHit()
-
-
Method Details
-
setObjectID
-
getObjectID
Unique identifier of a synonym object.- Returns:
- objectID
-
setType
-
getType
Get type- Returns:
- type
-
setSynonyms
-
addSynonyms
-
getSynonyms
Words or phrases considered equivalent.- Returns:
- synonyms
-
setInput
-
getInput
Word or phrase to appear in query strings (for [`onewaysynonym`s](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/one-way-synonyms/)).- Returns:
- input
-
setWord
-
getWord
Word or phrase to appear in query strings (for [`altcorrection1` and `altcorrection2`](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/synonyms-alternative-corrections/)).- Returns:
- word
-
setCorrections
-
addCorrections
-
getCorrections
Words to be matched in records.- Returns:
- corrections
-
setPlaceholder
-
getPlaceholder
[Placeholder token](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/synonyms-placeholders/) to be put inside records.- Returns:
- placeholder
-
setReplacements
-
addReplacements
-
getReplacements
Query words that will match the [placeholder token](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/synonyms-placeholders/).- Returns:
- replacements
-
equals
-
hashCode
public int hashCode() -
toString
-