Package com.algolia.model.search
Class DictionaryEntry
java.lang.Object
com.algolia.model.search.DictionaryEntry
Dictionary entry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDecomposition(String decompositionItem) booleanFor compound entries, governs the behavior of the `word` parameter.[Supported language ISO code](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/).Unique identifier for a dictionary object.getState()Get stategetWord()Dictionary entry word.getWords()Compound dictionary [word declensions](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-plurals-and-other-declensions/).inthashCode()setAdditionalProperty(String name, Object value) setDecomposition(List<String> decomposition) setLanguage(String language) setObjectID(String objectID) setState(DictionaryEntryState state) toString()
-
Constructor Details
-
DictionaryEntry
public DictionaryEntry()
-
-
Method Details
-
getAdditionalProperties
-
setAdditionalProperty
-
setObjectID
-
getObjectID
Unique identifier for a dictionary object. -
setLanguage
-
getLanguage
[Supported language ISO code](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/). -
setWord
-
getWord
Dictionary entry word. Usage depends on the type of dictionary entry. **`stopwordEntry`** The stop word you want to add or update. If the entry already exists in Algolia's standard dictionary, you can override its behavior by adding it to the custom dictionary and setting its `state` to `disabled`. **`compoundEntry`** When `decomposition` is empty: adds `word` as a compound atom. For example, atom “kino” decomposes the query “kopfkino” into \"kopf\" and \"kino\". When `decomposition` isn't empty: creates a decomposition exception. For example, when decomposition is set to the [\"hund\", \"hutte\"] exception, \"hundehutte\" decomposes into “hund” and “hutte”, discarding the linking \"e\". -
setWords
-
addWords
-
getWords
Compound dictionary [word declensions](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-plurals-and-other-declensions/). If the entry already exists in Algolia's standard dictionary, you can override its behavior by adding it to the custom dictionary and setting its `state` to `disabled`. -
setDecomposition
-
addDecomposition
-
getDecomposition
For compound entries, governs the behavior of the `word` parameter. -
setState
-
getState
Get state -
equals
-
hashCode
public int hashCode() -
toString
-