Package org.nuxeo.runtime.opensearch1
Class OpenSearchIndexConfig
java.lang.Object
org.nuxeo.runtime.opensearch1.OpenSearchIndexConfig
- All Implemented Interfaces:
Descriptor
XMap descriptor for configuring an index
- Author:
- Tiry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Boolean
static final String
static final String
protected Boolean
protected Boolean
protected boolean
protected String
protected String
protected String
protected static final String
protected String
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
contentOfFile
(String filename) getId()
The descriptor id, descriptors with same id are merged.getName()
protected InputStream
getResourceStream
(String filename) boolean
boolean
boolean
merge
(Descriptor o) Useother
mapping and settings if not defined.boolean
newWriteIndexForAlias
(String aliasName, String oldIndexName) protected void
setMapping
(String mapping) protected void
setMappingFile
(String mappingFile) protected void
setSettings
(String settings) protected void
setSettingsFile
(String settingsFile) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
Field Details
-
DEFAULT_SETTING_FILE
- See Also:
-
DEFAULT_MAPPING_FILE
- See Also:
-
WRITE_SUFFIX
- See Also:
-
name
-
enabled
-
create
-
manageAlias
-
writeAlias
-
clientIds
-
settingsContent
-
mappingContent
-
extraMappingContents
-
mappingAppend
protected boolean mappingAppend
-
-
Constructor Details
-
OpenSearchIndexConfig
public OpenSearchIndexConfig()
-
-
Method Details
-
getId
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
getName
- Returns:
- the index name
-
isEnabled
public boolean isEnabled() -
mustCreate
public boolean mustCreate() -
manageAlias
public boolean manageAlias() -
hasExplicitWriteIndex
public boolean hasExplicitWriteIndex() -
writeIndexOrAlias
-
newWriteIndexForAlias
-
getClientIds
-
getSettingsContent
-
setSettings
-
setSettingsFile
-
getMappingContent
-
setMapping
-
setMappingFile
-
getExtraMappingContents
-
contentOfFile
-
getResourceStream
-
merge
Useother
mapping and settings if not defined.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-
toString
-