Class Synonym
- java.lang.Object
-
- com.algolia.search.models.synonyms.Synonym
-
- All Implemented Interfaces:
Serializable
public class Synonym extends Object implements Serializable
Synonyms tell the engine which words and expressions should be considered equal - for example, pants ⇔ trousers or mad ⇔ angry. A search for “trousers” will find “pants”, and “pants” will find “trousers”.* @see Algolia.com
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Synonym()
-
Method Summary
-
-
-
Method Detail
-
createOneWaySynonym
public static Synonym createOneWaySynonym(String objectID, String input, List<String> synonyms)
-
createPlaceHolder
public static Synonym createPlaceHolder(String objectID, String placeholder, List<String> replacements)
-
createAltCorrection1
public static Synonym createAltCorrection1(String objectID, String word, List<String> corrections)
-
createAltCorrection2
public static Synonym createAltCorrection2(String objectID, String word, List<String> corrections)
-
getObjectID
public String getObjectID()
-
getType
public String getType()
-
getInput
public String getInput()
-
getWord
public String getWord()
-
getPlaceholder
public String getPlaceholder()
-
-