Class IndexSettings
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.lowlevel.index.settings.impl.IndexSettings
-
public class IndexSettings extends Object
Settings for an Elasticsearch index.
-
-
Field Summary
Fields Modifier and Type Field Description static StringMAX_RESULT_WINDOW_ATTRIBUTEstatic intMAX_RESULT_WINDOW_DEFAULT
-
Constructor Summary
Constructors Constructor Description IndexSettings()IndexSettings(Analysis analysis, Integer maxResultWindow, Map<String,com.google.gson.JsonElement> extraAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexSettingsdiff(Map<String,com.google.gson.JsonElement> extraAttributesToRemove)Remove all entries fromextraAttributesthat are present with the exact same values onextraAttributesToRemoveparameter.AnalysisgetAnalysis()Map<String,com.google.gson.JsonElement>getExtraAttributes()IntegergetMaxResultWindow()voidmerge(IndexSettings other)Merge these (custom) settings with settings generated by Hibernate Search.voidsetAnalysis(Analysis analysis)StringtoString()
-
-
-
Field Detail
-
MAX_RESULT_WINDOW_ATTRIBUTE
public static final String MAX_RESULT_WINDOW_ATTRIBUTE
- See Also:
- Constant Field Values
-
MAX_RESULT_WINDOW_DEFAULT
public static final int MAX_RESULT_WINDOW_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAnalysis
public Analysis getAnalysis()
-
setAnalysis
public void setAnalysis(Analysis analysis)
-
getMaxResultWindow
public Integer getMaxResultWindow()
-
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 fromextraAttributesthat are present with the exact same values onextraAttributesToRemoveparameter.- Parameters:
extraAttributesToRemove- Other index settings extra attributes
-
-