as we know, if we wanna add agg param, we can use searchSource.aggs(xxx), but how can we clear the aggs params, any interface?
You can clear the aggs param (or any other), by just passing null to the method: searchSource.aggs(null).
Cheers,
Tim
as we know, if we wanna add agg param, we can use searchSource.aggs(xxx), but how can we clear the aggs params, any interface?
You can clear the aggs param (or any other), by just passing null to the method: searchSource.aggs(null).
Cheers,
Tim
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.