[ML] add min_version field to machine learning results index mapping (#37115)
* ML: add min_version field to mapping * Adding min_version as reserved field name
This commit is contained in:
parent
d6acd8e15f
commit
2c3ce5b9de
|
@ -898,6 +898,8 @@ public class ElasticsearchMappings {
|
||||||
|
|
||||||
builder.startObject(ModelSnapshot.QUANTILES.getPreferredName())
|
builder.startObject(ModelSnapshot.QUANTILES.getPreferredName())
|
||||||
.field(ENABLED, false)
|
.field(ENABLED, false)
|
||||||
|
.endObject().startObject(ModelSnapshot.MIN_VERSION.getPreferredName())
|
||||||
|
.field(TYPE, KEYWORD)
|
||||||
.endObject()
|
.endObject()
|
||||||
.startObject(ModelSnapshot.LATEST_RECORD_TIME.getPreferredName())
|
.startObject(ModelSnapshot.LATEST_RECORD_TIME.getPreferredName())
|
||||||
.field(TYPE, DATE)
|
.field(TYPE, DATE)
|
||||||
|
|
|
@ -167,6 +167,7 @@ public final class ReservedFieldNames {
|
||||||
ModelSnapshot.LATEST_RECORD_TIME.getPreferredName(),
|
ModelSnapshot.LATEST_RECORD_TIME.getPreferredName(),
|
||||||
ModelSnapshot.LATEST_RESULT_TIME.getPreferredName(),
|
ModelSnapshot.LATEST_RESULT_TIME.getPreferredName(),
|
||||||
ModelSnapshot.RETAIN.getPreferredName(),
|
ModelSnapshot.RETAIN.getPreferredName(),
|
||||||
|
ModelSnapshot.MIN_VERSION.getPreferredName(),
|
||||||
|
|
||||||
Result.RESULT_TYPE.getPreferredName(),
|
Result.RESULT_TYPE.getPreferredName(),
|
||||||
Result.TIMESTAMP.getPreferredName(),
|
Result.TIMESTAMP.getPreferredName(),
|
||||||
|
|
Loading…
Reference in New Issue