@@ -188,7 +188,7 @@ public boolean isSearchable() {
188188 @ Override
189189 public IndexFieldData .Builder fielddataBuilder (FieldDataContext fieldDataContext ) {
190190 failIfNoDocValues ();
191- // NOCOMMIT - This needs to be changed to a custom values source type
191+ // TODO - This needs to be changed to a custom values source type
192192 return (cache , breakerService ) -> new IndexHistogramFieldData (name (), AnalyticsValuesSourceType .HISTOGRAM ) {
193193
194194 @ Override
@@ -332,21 +332,16 @@ public void parse(DocumentParserContext context) throws IOException {
332332 subParser = new XContentSubParser (context .parser ());
333333 }
334334 subParser .nextToken ();
335- // NOCOMMIT TODO: Here we should build a t-digest out of the input, based on the settings on the field
335+ // TODO: Here we should build a t-digest out of the input, based on the settings on the field
336336 TDigestParser .ParsedHistogram parsedHistogram = TDigestParser .parse (fullPath (), subParser );
337337
338338 BytesStreamOutput streamOutput = new BytesStreamOutput ();
339339 for (int i = 0 ; i < parsedHistogram .values ().size (); i ++) {
340340 long count = parsedHistogram .counts ().get (i );
341341 assert count >= 0 ;
342342 // we do not add elements with count == 0
343- // NOCOMMIT - Can just do the new behavior for the new field
344343 if (count > 0 ) {
345- if (streamOutput .getTransportVersion ().onOrAfter (TransportVersions .V_8_11_X )) {
346- streamOutput .writeVLong (count );
347- } else {
348- streamOutput .writeVInt (Math .toIntExact (count ));
349- }
344+ streamOutput .writeVLong (count );
350345 streamOutput .writeLong (Double .doubleToRawLongBits (parsedHistogram .values ().get (i )));
351346 }
352347 }
0 commit comments