public abstract class Indexer extends Object
| Constructor and Description |
|---|
Indexer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
add(Document[] documents,
String[] passwords,
IndexingOptions options)
Performs indexing operation.
|
abstract void |
add(ExtractedData[] data,
IndexingOptions options)
Performs indexing operation.
|
abstract void |
changeAttributes(AttributeChangeBatch batch,
ChangeAttributesOptions options)
Applies the specified batch of attribute changes to indexed documents without reindexing.
|
abstract void |
delete(String[] documentKeys,
DeleteOptions options)
Deletes indexed documents.
|
abstract void |
deleteAllData()
Deletes all indexed data from all shards of the search network.
|
abstract AliasDictionary |
getAliasDictionary(int shardIndex)
Gets the alias dictionary.
|
abstract Alphabet |
getAlphabet(int shardIndex)
Gets the alphabet dictionary.
|
abstract String[] |
getAttributes(String documentKey)
Gets all the attributes associated with the specified indexed document.
|
abstract CharacterReplacementDictionary |
getCharacterReplacementDictionary(int shardIndex)
Gets the character replacement dictionary.
|
abstract DictionaryBase |
getDictionary(DictionaryType dictionaryType,
int shardIndex)
Gets a dictionary from the specified shard.
|
abstract HomophoneDictionary |
getHomophoneDictionary(int shardIndex)
Gets the homophone dictionary.
|
abstract PasswordDictionary |
getPasswordDictionary(int shardIndex)
Gets the password dictionary.
|
abstract SpellingCorrector |
getSpellingCorrector(int shardIndex)
Gets the spelling corrector dictionary.
|
abstract StopWordDictionary |
getStopWordDictionary(int shardIndex)
Gets the stop word dictionary.
|
abstract SynonymDictionary |
getSynonymDictionary(int shardIndex)
Gets the synonym dictionary.
|
abstract void |
optimize(OptimizeOptions options)
Minimizes the number of index segments by merging them one with another.
|
abstract void |
setDictionary(DictionaryBase dictionary)
Sets a dictionary in all shards.
|
abstract void |
setDictionary(DictionaryBase dictionary,
int shardIndex)
Sets a dictionary in the specified shard.
|
abstract void |
synchronize(SynchronizeOptions options)
Synchronizes the list of indexed documents with those on shards.
|
public abstract void add(Document[] documents, String[] passwords, IndexingOptions options)
documents - The documents from file system, stream, or structure.passwords - The document passwords.options - The add options.public abstract void add(ExtractedData[] data, IndexingOptions options)
data - The extracted data.options - The indexing options.public abstract void changeAttributes(AttributeChangeBatch batch, ChangeAttributesOptions options)
batch - The attribute change batch.options - The change attributes options.public abstract void delete(String[] documentKeys, DeleteOptions options)
documentKeys - The keys of documents added from streams or structures.options - The delete options.public abstract void deleteAllData()
public abstract AliasDictionary getAliasDictionary(int shardIndex)
shardIndex - The shard index.public abstract Alphabet getAlphabet(int shardIndex)
shardIndex - The shard index.public abstract String[] getAttributes(String documentKey)
documentKey - The document key.public abstract CharacterReplacementDictionary getCharacterReplacementDictionary(int shardIndex)
shardIndex - The shard index.public abstract DictionaryBase getDictionary(DictionaryType dictionaryType, int shardIndex)
dictionaryType - The dictionary type.shardIndex - The shard index.public abstract HomophoneDictionary getHomophoneDictionary(int shardIndex)
shardIndex - The shard index.public abstract PasswordDictionary getPasswordDictionary(int shardIndex)
shardIndex - The shard index.public abstract SpellingCorrector getSpellingCorrector(int shardIndex)
shardIndex - The shard index.public abstract StopWordDictionary getStopWordDictionary(int shardIndex)
shardIndex - The shard index.public abstract SynonymDictionary getSynonymDictionary(int shardIndex)
shardIndex - The shard index.public abstract void optimize(OptimizeOptions options)
options - The optimize options.public abstract void setDictionary(DictionaryBase dictionary)
dictionary - The dictionary.public abstract void setDictionary(DictionaryBase dictionary, int shardIndex)
dictionary - The dictionary.shardIndex - The shard index.public abstract void synchronize(SynchronizeOptions options)
options - The synchronize options.Copyright © 2026. All rights reserved.