java.lang.Object
org.hibernate.search.backend.elasticsearch.lowlevel.index.settings.impl.IndexSettings

public class IndexSettings extends Object
Settings for an Elasticsearch index.
  • Field Details

  • Constructor Details

    • IndexSettings

      public IndexSettings()
    • IndexSettings

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

    • getAnalysis

      public Analysis getAnalysis()
    • setAnalysis

      public void setAnalysis(Analysis analysis)
    • getMaxResultWindow

      public Integer getMaxResultWindow()
    • getKnn

      public Boolean getKnn()
    • setKnn

      public void setKnn(Boolean knn)
    • getExtraAttributes

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

      public String toString()
      Overrides:
      toString in class Object
    • 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