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) (opensearch-project#442)

Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
(cherry picked from commit 1f581dd)

Co-authored-by: Petar Dzepina <petar.dzepina@gmail.com>
Signed-off-by: Angie Zhang <langelzh@amazon.com>
  • Loading branch information
2 people authored and Angie Zhang committed Sep 12, 2022
1 parent 8e7c751 commit 18f6cb6
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 18f6cb6

Please sign in to comment.