Package org.nuxeo.elasticsearch.config
Class ElasticSearchIndexConfig
java.lang.Object
org.nuxeo.elasticsearch.config.ElasticSearchIndexConfig
XMap descriptor for configuring an index
- Author:
- Tiry
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
static final String
protected static final String
static final String
protected String[]
protected String[]
protected boolean
protected boolean
protected String
protected Boolean
protected String
protected String
protected String
protected String
protected String
protected String
protected static final String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
contentOfFile
(String filename) String[]
String[]
getName()
protected InputStream
getResourceStream
(String filename) getType()
boolean
boolean
Return true if the index/mapping is associated with a Nuxeo document repositoryboolean
boolean
void
merge
(ElasticSearchIndexConfig other) Useother
mapping and settings if not defined.boolean
newWriteIndexForAlias
(String aliasName, String oldIndexName) void
setEnabled
(boolean isEnabled) toString()
-
Field Details
-
DEFAULT_SETTING_FILE
- See Also:
-
DEFAULT_MAPPING_FILE
- See Also:
-
DEFAULT_REPOSITORY_NAME
- See Also:
-
WRITE_SUFFIX
- See Also:
-
isEnabled
protected boolean isEnabled -
name
-
manageAlias
protected boolean manageAlias -
writeAlias
-
repositoryName
-
type
-
create
protected boolean create -
settings
-
settingsFile
-
mapping
-
mappingFile
-
extraMappings
-
mappingAppend
-
excludes
-
includes
-
-
Constructor Details
-
ElasticSearchIndexConfig
public ElasticSearchIndexConfig()
-
-
Method Details
-
toString
-
getExcludes
-
getIncludes
-
getName
-
getType
-
getSettings
-
contentOfFile
-
getResourceStream
-
getMapping
-
getExtraMappings
-
mustCreate
public boolean mustCreate() -
getRepositoryName
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean isEnabled) -
isDocumentIndex
public boolean isDocumentIndex()Return true if the index/mapping is associated with a Nuxeo document repository- Since:
- 7.4
-
merge
Useother
mapping and settings if not defined. -
hasExplicitWriteIndex
public boolean hasExplicitWriteIndex() -
writeIndexOrAlias
-
manageAlias
public boolean manageAlias() -
newWriteIndexForAlias
-