public class ElasticSearchIndexConfig extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
create |
static String |
DEFAULT_MAPPING_FILE |
protected static String |
DEFAULT_REPOSITORY_NAME |
static String |
DEFAULT_SETTING_FILE |
protected String[] |
excludes |
protected String[] |
includes |
protected boolean |
isEnabled |
protected boolean |
manageAlias |
protected String |
mapping |
protected String |
mappingFile |
protected String |
name |
protected String |
repositoryName |
protected String |
settings |
protected String |
settingsFile |
protected String |
type |
protected static String |
WRITE_SUFFIX |
protected String |
writeAlias |
Constructor and Description |
---|
ElasticSearchIndexConfig() |
Modifier and Type | Method and Description |
---|---|
protected String |
contentOfFile(String filename) |
String[] |
getExcludes() |
String[] |
getIncludes() |
String |
getMapping() |
String |
getName() |
String |
getRepositoryName() |
protected InputStream |
getResourceStream(String filename) |
String |
getSettings() |
String |
getType() |
boolean |
hasExplicitWriteIndex() |
boolean |
isDocumentIndex()
Return true if the index/mapping is associated with a Nuxeo document repository
|
boolean |
isEnabled() |
boolean |
manageAlias() |
void |
merge(ElasticSearchIndexConfig other)
Use
other mapping and settings if not defined. |
boolean |
mustCreate() |
String |
newWriteIndexForAlias(String aliasName,
String oldIndexName) |
void |
setEnabled(boolean isEnabled) |
String |
toString() |
String |
writeIndexOrAlias() |
public static final String DEFAULT_SETTING_FILE
public static final String DEFAULT_MAPPING_FILE
protected static final String DEFAULT_REPOSITORY_NAME
protected static final String WRITE_SUFFIX
protected boolean isEnabled
protected boolean manageAlias
protected String writeAlias
protected String repositoryName
protected boolean create
protected String settingsFile
protected String mappingFile
public ElasticSearchIndexConfig()
public String[] getExcludes()
public String[] getIncludes()
public String getSettings()
protected String contentOfFile(String filename)
protected InputStream getResourceStream(String filename)
public String getMapping()
public boolean mustCreate()
public String getRepositoryName()
public boolean isEnabled()
public void setEnabled(boolean isEnabled)
public boolean isDocumentIndex()
public void merge(ElasticSearchIndexConfig other)
other
mapping and settings if not defined.public boolean hasExplicitWriteIndex()
public String writeIndexOrAlias()
public boolean manageAlias()
public String newWriteIndexForAlias(String aliasName, String oldIndexName)
Copyright © 2018 Nuxeo. All rights reserved.