-
Notifications
You must be signed in to change notification settings - Fork 25.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add doc_count field mapper #58339
Add doc_count field mapper #58339
Changes from 1 commit
4b5fab3
cd515b3
655e112
db13d83
191d793
5f81bee
dab8219
ecdc603
520ac9a
676ffc6
7c7139c
d3b9c45
c36ecac
4dca391
912d943
be46a00
c0f23ae
f7b43c1
5e1b96a
80d832b
1e8b472
e24d680
74c727b
cd2c84d
91246eb
77aa346
39c43a0
8ca3fbc
83929cb
848fc77
0a1731d
82f092a
ba92359
cb61366
522c385
df2a2eb
838436f
4a92c80
5d6d037
0ff6fe1
23e4b30
b258653
f5ed1df
2fcdcf6
4138d16
5d38b7f
654847e
7b7ca43
ce44e87
5621c44
1d969a1
cb05034
d7d80f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -54,7 +54,7 @@ public abstract class BucketsAggregator extends AggregatorBase { | |||||
private final BigArrays bigArrays; | ||||||
private final IntConsumer multiBucketConsumer; | ||||||
private IntArray docCounts; | ||||||
private DocCountProvider docCountProvider; | ||||||
protected final DocCountProvider docCountProvider; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could use a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Method Line 98 in 7b7ca43
Line 72 in 7b7ca43
I think the easier way to share the code of reading |
||||||
|
||||||
public BucketsAggregator(String name, AggregatorFactories factories, SearchContext context, Aggregator parent, | ||||||
CardinalityUpperBound bucketCardinality, Map<String, Object> metadata) throws IOException { | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we switch to long now that a single document can add more than 1 ?
That's probably a follow up though, no need to change in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in this PR