Class ElasticSearchIndexConfig

java.lang.Object
org.nuxeo.elasticsearch.config.ElasticSearchIndexConfig

public class ElasticSearchIndexConfig extends Object
XMap descriptor for configuring an index
Author:
Tiry
  • Field Details

    • DEFAULT_SETTING_FILE

      public static final String DEFAULT_SETTING_FILE
      See Also:
    • DEFAULT_MAPPING_FILE

      public static final String DEFAULT_MAPPING_FILE
      See Also:
    • DEFAULT_REPOSITORY_NAME

      protected static final String DEFAULT_REPOSITORY_NAME
      See Also:
    • WRITE_SUFFIX

      protected static final String WRITE_SUFFIX
      See Also:
    • isEnabled

      protected boolean isEnabled
    • name

      protected String name
    • manageAlias

      protected boolean manageAlias
    • writeAlias

      protected String writeAlias
    • repositoryName

      protected String repositoryName
    • type

      protected String type
    • create

      protected boolean create
    • settings

      protected String settings
    • settingsFile

      protected String settingsFile
    • mapping

      protected String mapping
    • mappingFile

      protected String mappingFile
    • extraMappings

      protected List<String> extraMappings
    • mappingAppend

      protected Boolean mappingAppend
    • excludes

      protected String[] excludes
    • includes

      protected String[] includes
  • Constructor Details

    • ElasticSearchIndexConfig

      public ElasticSearchIndexConfig()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getExcludes

      public String[] getExcludes()
    • getIncludes

      public String[] getIncludes()
    • getName

      public String getName()
    • getType

      public String getType()
    • getSettings

      public String getSettings()
    • contentOfFile

      protected String contentOfFile(String filename)
    • getResourceStream

      protected InputStream getResourceStream(String filename)
    • getMapping

      public String getMapping()
    • getExtraMappings

      public List<String> getExtraMappings()
    • 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)
      Use other 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)