Skip to content

Commit

Permalink
moved _doc_count field from rollup._doc_count to root of document (op…
Browse files Browse the repository at this point in the history
…ensearch-project#439)

Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
  • Loading branch information
petardz committed Aug 4, 2022
1 parent 0f0ba16 commit 1f581dd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ data class Rollup(
const val MINIMUM_PAGE_SIZE = 1
const val MAXIMUM_PAGE_SIZE = 10_000
const val ROLLUP_DOC_ID_FIELD = "$ROLLUP_TYPE.$_ID"
const val ROLLUP_DOC_COUNT_FIELD = "$ROLLUP_TYPE._doc_count"
/*
* _doc_count has to be in root of document so that core's aggregator would pick it up and use it
* */
const val ROLLUP_DOC_COUNT_FIELD = "_doc_count"
const val ROLLUP_DOC_SCHEMA_VERSION_FIELD = "$ROLLUP_TYPE._$SCHEMA_VERSION_FIELD"
const val USER_FIELD = "user"

Expand Down

0 comments on commit 1f581dd

Please sign in to comment.