Class IndexSettings


  • public class IndexSettings
    extends Object
    Settings for an Elasticsearch index.
    • Constructor Detail

      • IndexSettings

        public IndexSettings()
      • IndexSettings

        public IndexSettings​(Analysis analysis,
                             Integer maxResultWindow,
                             Map<String,​com.google.gson.JsonElement> extraAttributes)
    • Method Detail

      • getAnalysis

        public Analysis getAnalysis()
      • setAnalysis

        public void setAnalysis​(Analysis analysis)
      • getMaxResultWindow

        public Integer getMaxResultWindow()
      • getExtraAttributes

        public Map<String,​com.google.gson.JsonElement> getExtraAttributes()
      • merge

        public void merge​(IndexSettings other)
        Merge these (custom) settings with settings generated by Hibernate Search.

        Any conflict of definition will be solved in favor of this.

        Parameters:
        other - The other index settings
      • diff

        public IndexSettings diff​(Map<String,​com.google.gson.JsonElement> extraAttributesToRemove)
        Remove all entries from extraAttributes that are present with the exact same values on extraAttributesToRemove parameter.
        Parameters:
        extraAttributesToRemove - Other index settings extra attributes