We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f70ad2 commit a1526f8Copy full SHA for a1526f8
src/main/kotlin/org/opensearch/indexmanagement/rollup/model/Rollup.kt
@@ -241,7 +241,10 @@ data class Rollup(
241
const val MINIMUM_PAGE_SIZE = 1
242
const val MAXIMUM_PAGE_SIZE = 10_000
243
const val ROLLUP_DOC_ID_FIELD = "$ROLLUP_TYPE.$_ID"
244
- const val ROLLUP_DOC_COUNT_FIELD = "$ROLLUP_TYPE._doc_count"
+ /*
245
+ * _doc_count has to be in root of document so that core's aggregator would pick it up and use it
246
+ * */
247
+ const val ROLLUP_DOC_COUNT_FIELD = "_doc_count"
248
const val ROLLUP_DOC_SCHEMA_VERSION_FIELD = "$ROLLUP_TYPE._$SCHEMA_VERSION_FIELD"
249
const val USER_FIELD = "user"
250
0 commit comments