Package org.nuxeo.elasticsearch.config
Class ElasticSearchIndexConfig
- java.lang.Object
-
- org.nuxeo.elasticsearch.config.ElasticSearchIndexConfig
-
public class ElasticSearchIndexConfig extends Object
XMap descriptor for configuring an index- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ElasticSearchIndexConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 repositoryboolean
isEnabled()
boolean
manageAlias()
void
merge(ElasticSearchIndexConfig other)
Useother
mapping and settings if not defined.boolean
mustCreate()
String
newWriteIndexForAlias(String aliasName, String oldIndexName)
void
setEnabled(boolean isEnabled)
String
toString()
String
writeIndexOrAlias()
-
-
-
Field Detail
-
DEFAULT_SETTING_FILE
public static final String DEFAULT_SETTING_FILE
- See Also:
- Constant Field Values
-
DEFAULT_MAPPING_FILE
public static final String DEFAULT_MAPPING_FILE
- See Also:
- Constant Field Values
-
DEFAULT_REPOSITORY_NAME
protected static final String DEFAULT_REPOSITORY_NAME
- See Also:
- Constant Field Values
-
WRITE_SUFFIX
protected static final String WRITE_SUFFIX
- See Also:
- Constant Field Values
-
isEnabled
protected boolean isEnabled
-
manageAlias
protected boolean manageAlias
-
writeAlias
protected String writeAlias
-
repositoryName
protected String repositoryName
-
create
protected boolean create
-
settingsFile
protected String settingsFile
-
mappingFile
protected String mappingFile
-
-
Constructor Detail
-
ElasticSearchIndexConfig
public ElasticSearchIndexConfig()
-
-
Method Detail
-
getExcludes
public String[] getExcludes()
-
getIncludes
public String[] getIncludes()
-
getSettings
public String getSettings()
-
contentOfFile
protected String contentOfFile(String filename)
-
getResourceStream
protected InputStream getResourceStream(String filename)
-
getMapping
public String getMapping()
-
mustCreate
public boolean mustCreate()
-
getRepositoryName
public String 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
public void merge(ElasticSearchIndexConfig other)
Useother
mapping and settings if not defined.
-
hasExplicitWriteIndex
public boolean hasExplicitWriteIndex()
-
writeIndexOrAlias
public String writeIndexOrAlias()
-
manageAlias
public boolean manageAlias()
-
newWriteIndexForAlias
public String newWriteIndexForAlias(String aliasName, String oldIndexName)
-
-