From e99f000366f3fe15f6adb48c4d0d8f52fb732915 Mon Sep 17 00:00:00 2001
From: Rabi Panda
Date: Tue, 16 Mar 2021 16:43:43 -0700
Subject: [PATCH] [Rename] refactor o.e.search.aggregations.bucket package in
the server module. (#326)
Rename `org.elasticserach.search.aggregations.bucket` to `org.opensearch.search.aggregations.bucket` in package names and references.
Signed-off-by: Rabi Panda
---
.../client/RestHighLevelClient.java | 104 +++++++--------
.../client/RequestConvertersTests.java | 2 +-
.../java/org/opensearch/client/SearchIT.java | 18 +--
.../documentation/SearchDocumentationIT.java | 8 +-
.../script/expression/MoreExpressionIT.java | 2 +-
.../TokenCountFieldMapperIntegrationIT.java | 2 +-
.../join/aggregations/ChildrenIT.java | 2 +-
.../join/aggregations/ParentIT.java | 4 +-
.../join/query/ChildQuerySearchIT.java | 6 +-
.../join/aggregations/Children.java | 2 +-
.../ChildrenToParentAggregator.java | 2 +-
.../join/aggregations/InternalChildren.java | 2 +-
.../join/aggregations/InternalParent.java | 2 +-
.../opensearch/join/aggregations/Parent.java | 2 +-
.../aggregations/ParentJoinAggregator.java | 6 +-
.../join/aggregations/ParsedChildren.java | 2 +-
.../join/aggregations/ParsedParent.java | 2 +-
.../ChildrenToParentAggregatorTests.java | 4 +-
.../aggregations/InternalChildrenTests.java | 2 +-
.../aggregations/InternalParentTests.java | 2 +-
.../ParentToChildrenAggregatorTests.java | 4 +-
.../aggregations/AggregationBuilders.java | 74 +++++------
.../search/aggregations/AggregationPhase.java | 2 +-
.../aggregations/AggregatorFactories.java | 4 +-
.../search/aggregations/BucketOrder.java | 2 +-
.../aggregations/CardinalityUpperBound.java | 6 +-
.../InternalMultiBucketAggregation.java | 4 +-
.../search/aggregations/InternalOrder.java | 2 +-
.../search/aggregations/KeyComparable.java | 2 +-
.../aggregations/LeafBucketCollector.java | 2 +-
.../MultiBucketConsumerService.java | 2 +-
.../ParsedMultiBucketAggregation.java | 2 +-
.../PipelineAggregationBuilder.java | 6 +-
.../org/opensearch/search/DocValueFormat.java | 2 +-
.../org/opensearch/search/SearchModule.java | 122 +++++++++---------
.../bucket/BestBucketsDeferringCollector.java | 2 +-
.../aggregations/bucket/BucketUtils.java | 4 +-
.../bucket/BucketsAggregator.java | 6 +-
.../bucket/DeferableBucketAggregator.java | 2 +-
.../bucket/DeferringBucketCollector.java | 2 +-
.../InternalSingleBucketAggregation.java | 2 +-
.../bucket/IteratorAndCurrent.java | 2 +-
.../MergingBucketsDeferringCollector.java | 2 +-
.../bucket/MultiBucketsAggregation.java | 2 +-
.../bucket/ParsedSingleBucketAggregation.java | 2 +-
.../bucket/SingleBucketAggregation.java | 2 +-
.../bucket/SingleBucketAggregator.java | 2 +-
.../bucket/adjacency/AdjacencyMatrix.java | 6 +-
.../AdjacencyMatrixAggregationBuilder.java | 4 +-
.../adjacency/AdjacencyMatrixAggregator.java | 4 +-
.../AdjacencyMatrixAggregatorFactory.java | 4 +-
.../adjacency/InternalAdjacencyMatrix.java | 2 +-
.../adjacency/ParsedAdjacencyMatrix.java | 2 +-
.../bucket/composite/BinaryValuesSource.java | 2 +-
.../composite/CompositeAggregation.java | 4 +-
.../CompositeAggregationBuilder.java | 4 +-
.../CompositeAggregationFactory.java | 2 +-
.../bucket/composite/CompositeAggregator.java | 4 +-
.../bucket/composite/CompositeKey.java | 2 +-
.../CompositeValuesCollectorQueue.java | 2 +-
.../CompositeValuesSourceBuilder.java | 2 +-
.../CompositeValuesSourceConfig.java | 2 +-
.../CompositeValuesSourceParserHelper.java | 2 +-
.../DateHistogramValuesSourceBuilder.java | 12 +-
.../bucket/composite/DoubleValuesSource.java | 2 +-
.../GeoTileGridValuesSourceBuilder.java | 8 +-
.../bucket/composite/GeoTileValuesSource.java | 4 +-
.../composite/GlobalOrdinalValuesSource.java | 2 +-
.../composite/HistogramValuesSource.java | 2 +-
.../HistogramValuesSourceBuilder.java | 4 +-
.../bucket/composite/InternalComposite.java | 2 +-
.../bucket/composite/LongValuesSource.java | 2 +-
.../bucket/composite/ParsedComposite.java | 2 +-
.../composite/PointsSortedDocsProducer.java | 2 +-
.../composite/RoundingValuesSource.java | 2 +-
.../SingleDimensionValuesSource.java | 2 +-
.../bucket/composite/SortedDocsProducer.java | 2 +-
.../composite/TermsSortedDocsProducer.java | 2 +-
.../composite/TermsValuesSourceBuilder.java | 2 +-
.../aggregations/bucket/filter/Filter.java | 4 +-
.../filter/FilterAggregationBuilder.java | 2 +-
.../bucket/filter/FilterAggregator.java | 6 +-
.../filter/FilterAggregatorFactory.java | 2 +-
.../aggregations/bucket/filter/Filters.java | 4 +-
.../filter/FiltersAggregationBuilder.java | 4 +-
.../bucket/filter/FiltersAggregator.java | 4 +-
.../filter/FiltersAggregatorFactory.java | 4 +-
.../bucket/filter/InternalFilter.java | 4 +-
.../bucket/filter/InternalFilters.java | 2 +-
.../bucket/filter/ParsedFilter.java | 4 +-
.../bucket/filter/ParsedFilters.java | 2 +-
.../bucket/geogrid/BoundedCellValues.java | 2 +-
.../bucket/geogrid/BucketPriorityQueue.java | 2 +-
.../bucket/geogrid/CellIdSource.java | 2 +-
.../bucket/geogrid/CellValues.java | 2 +-
.../aggregations/bucket/geogrid/GeoGrid.java | 4 +-
.../geogrid/GeoGridAggregationBuilder.java | 4 +-
.../bucket/geogrid/GeoGridAggregator.java | 6 +-
.../GeoHashGridAggregationBuilder.java | 2 +-
.../bucket/geogrid/GeoHashGridAggregator.java | 2 +-
.../geogrid/GeoHashGridAggregatorFactory.java | 2 +-
.../GeoTileGridAggregationBuilder.java | 2 +-
.../bucket/geogrid/GeoTileGridAggregator.java | 2 +-
.../geogrid/GeoTileGridAggregatorFactory.java | 2 +-
.../bucket/geogrid/GeoTileUtils.java | 2 +-
.../bucket/geogrid/InternalGeoGrid.java | 2 +-
.../bucket/geogrid/InternalGeoGridBucket.java | 2 +-
.../bucket/geogrid/InternalGeoHashGrid.java | 2 +-
.../geogrid/InternalGeoHashGridBucket.java | 2 +-
.../bucket/geogrid/InternalGeoTileGrid.java | 2 +-
.../geogrid/InternalGeoTileGridBucket.java | 2 +-
.../bucket/geogrid/ParsedGeoGrid.java | 2 +-
.../bucket/geogrid/ParsedGeoGridBucket.java | 2 +-
.../bucket/geogrid/ParsedGeoHashGrid.java | 2 +-
.../geogrid/ParsedGeoHashGridBucket.java | 2 +-
.../bucket/geogrid/ParsedGeoTileGrid.java | 2 +-
.../geogrid/ParsedGeoTileGridBucket.java | 2 +-
.../bucket/geogrid/UnboundedCellValues.java | 2 +-
.../aggregations/bucket/global/Global.java | 4 +-
.../global/GlobalAggregationBuilder.java | 2 +-
.../bucket/global/GlobalAggregator.java | 6 +-
.../global/GlobalAggregatorFactory.java | 2 +-
.../bucket/global/InternalGlobal.java | 4 +-
.../bucket/global/ParsedGlobal.java | 4 +-
.../AbstractHistogramAggregator.java | 11 +-
.../AutoDateHistogramAggregationBuilder.java | 2 +-
.../AutoDateHistogramAggregator.java | 12 +-
.../AutoDateHistogramAggregatorFactory.java | 4 +-
.../AutoDateHistogramAggregatorSupplier.java | 2 +-
.../DateHistogramAggregationBuilder.java | 2 +-
.../DateHistogramAggregationSupplier.java | 2 +-
.../histogram/DateHistogramAggregator.java | 6 +-
.../DateHistogramAggregatorFactory.java | 2 +-
.../histogram/DateHistogramInterval.java | 2 +-
.../histogram/DateIntervalConsumer.java | 2 +-
.../bucket/histogram/DateIntervalWrapper.java | 2 +-
.../DateRangeHistogramAggregator.java | 6 +-
.../bucket/histogram/DoubleBounds.java | 2 +-
.../bucket/histogram/Histogram.java | 4 +-
.../HistogramAggregationBuilder.java | 2 +-
.../histogram/HistogramAggregatorFactory.java | 2 +-
.../HistogramAggregatorSupplier.java | 2 +-
.../bucket/histogram/HistogramFactory.java | 6 +-
.../histogram/InternalAutoDateHistogram.java | 8 +-
.../histogram/InternalDateHistogram.java | 6 +-
.../bucket/histogram/InternalHistogram.java | 6 +-
.../InternalVariableWidthHistogram.java | 6 +-
.../bucket/histogram/LongBounds.java | 2 +-
.../histogram/NumericHistogramAggregator.java | 2 +-
.../histogram/ParsedAutoDateHistogram.java | 2 +-
.../bucket/histogram/ParsedDateHistogram.java | 2 +-
.../bucket/histogram/ParsedHistogram.java | 2 +-
.../ParsedVariableWidthHistogram.java | 2 +-
.../histogram/RangeHistogramAggregator.java | 2 +-
.../histogram/SizedBucketAggregator.java | 2 +-
.../SizedBucketAggregatorBuilder.java | 2 +-
...iableWidthHistogramAggregationBuilder.java | 2 +-
.../VariableWidthHistogramAggregator.java | 10 +-
...riableWidthHistogramAggregatorFactory.java | 2 +-
...iableWidthHistogramAggregatorSupplier.java | 2 +-
.../bucket/histogram/package-info.java | 2 +-
.../bucket/missing/InternalMissing.java | 4 +-
.../aggregations/bucket/missing/Missing.java | 4 +-
.../missing/MissingAggregationBuilder.java | 2 +-
.../bucket/missing/MissingAggregator.java | 6 +-
.../missing/MissingAggregatorFactory.java | 2 +-
.../missing/MissingAggregatorSupplier.java | 2 +-
.../bucket/missing/ParsedMissing.java | 4 +-
.../bucket/nested/InternalNested.java | 4 +-
.../bucket/nested/InternalReverseNested.java | 4 +-
.../aggregations/bucket/nested/Nested.java | 4 +-
.../nested/NestedAggregationBuilder.java | 2 +-
.../bucket/nested/NestedAggregator.java | 6 +-
.../nested/NestedAggregatorFactory.java | 2 +-
.../bucket/nested/ParsedNested.java | 4 +-
.../bucket/nested/ParsedReverseNested.java | 4 +-
.../bucket/nested/ReverseNested.java | 4 +-
.../ReverseNestedAggregationBuilder.java | 2 +-
.../nested/ReverseNestedAggregator.java | 6 +-
.../ReverseNestedAggregatorFactory.java | 2 +-
.../search/aggregations/bucket/package-info | 0
.../range/AbstractRangeAggregatorFactory.java | 6 +-
.../bucket/range/AbstractRangeBuilder.java | 4 +-
.../bucket/range/BinaryRangeAggregator.java | 4 +-
.../range/BinaryRangeAggregatorFactory.java | 2 +-
.../range/DateRangeAggregationBuilder.java | 2 +-
.../range/DateRangeAggregatorFactory.java | 2 +-
.../range/GeoDistanceAggregationBuilder.java | 8 +-
.../range/GeoDistanceAggregatorSupplier.java | 2 +-
.../GeoDistanceRangeAggregatorFactory.java | 4 +-
.../bucket/range/InternalBinaryRange.java | 2 +-
.../bucket/range/InternalDateRange.java | 2 +-
.../bucket/range/InternalGeoDistance.java | 2 +-
.../bucket/range/InternalRange.java | 2 +-
.../range/IpRangeAggregationBuilder.java | 2 +-
.../range/IpRangeAggregatorSupplier.java | 2 +-
.../bucket/range/ParsedBinaryRange.java | 2 +-
.../bucket/range/ParsedDateRange.java | 2 +-
.../bucket/range/ParsedGeoDistance.java | 2 +-
.../bucket/range/ParsedRange.java | 2 +-
.../aggregations/bucket/range/Range.java | 4 +-
.../bucket/range/RangeAggregationBuilder.java | 4 +-
.../bucket/range/RangeAggregator.java | 10 +-
.../bucket/range/RangeAggregatorFactory.java | 6 +-
.../bucket/range/RangeAggregatorSupplier.java | 2 +-
.../sampler/BestDocsDeferringCollector.java | 4 +-
.../DiversifiedAggregationBuilder.java | 2 +-
.../sampler/DiversifiedAggregatorFactory.java | 4 +-
.../DiversifiedAggregatorSupplier.java | 2 +-
...DiversifiedBytesHashSamplerAggregator.java | 4 +-
.../DiversifiedMapSamplerAggregator.java | 4 +-
.../DiversifiedNumericSamplerAggregator.java | 4 +-
.../DiversifiedOrdinalsSamplerAggregator.java | 4 +-
.../bucket/sampler/InternalSampler.java | 4 +-
.../bucket/sampler/ParsedSampler.java | 4 +-
.../aggregations/bucket/sampler/Sampler.java | 4 +-
.../sampler/SamplerAggregationBuilder.java | 2 +-
.../bucket/sampler/SamplerAggregator.java | 8 +-
.../sampler/SamplerAggregatorFactory.java | 2 +-
.../bucket/sampler/UnmappedSampler.java | 2 +-
.../terms/AbstractRareTermsAggregator.java | 10 +-
.../terms/AbstractStringTermsAggregator.java | 4 +-
.../bucket/terms/BucketPriorityQueue.java | 2 +-
.../BucketSignificancePriorityQueue.java | 2 +-
.../bucket/terms/BytesKeyedBucketOrds.java | 2 +-
.../bucket/terms/DoubleTerms.java | 2 +-
.../GlobalOrdinalsStringTermsAggregator.java | 6 +-
.../bucket/terms/IncludeExclude.java | 2 +-
.../bucket/terms/InternalMappedRareTerms.java | 2 +-
.../terms/InternalMappedSignificantTerms.java | 4 +-
.../bucket/terms/InternalMappedTerms.java | 2 +-
.../bucket/terms/InternalRareTerms.java | 2 +-
.../terms/InternalSignificantTerms.java | 4 +-
.../bucket/terms/InternalTerms.java | 6 +-
.../bucket/terms/LongKeyedBucketOrds.java | 2 +-
.../bucket/terms/LongRareTerms.java | 2 +-
.../bucket/terms/LongRareTermsAggregator.java | 2 +-
.../aggregations/bucket/terms/LongTerms.java | 2 +-
.../terms/MapStringTermsAggregator.java | 6 +-
.../bucket/terms/NumericTermsAggregator.java | 10 +-
.../bucket/terms/ParsedDoubleTerms.java | 2 +-
.../bucket/terms/ParsedLongRareTerms.java | 2 +-
.../bucket/terms/ParsedLongTerms.java | 2 +-
.../bucket/terms/ParsedRareTerms.java | 2 +-
.../terms/ParsedSignificantLongTerms.java | 2 +-
.../terms/ParsedSignificantStringTerms.java | 2 +-
.../bucket/terms/ParsedSignificantTerms.java | 2 +-
.../bucket/terms/ParsedStringRareTerms.java | 2 +-
.../bucket/terms/ParsedStringTerms.java | 2 +-
.../bucket/terms/ParsedTerms.java | 6 +-
.../aggregations/bucket/terms/RareTerms.java | 4 +-
.../terms/RareTermsAggregationBuilder.java | 2 +-
.../terms/RareTermsAggregatorFactory.java | 2 +-
.../terms/RareTermsAggregatorSupplier.java | 2 +-
.../bucket/terms/SignificanceLookup.java | 4 +-
.../bucket/terms/SignificantLongTerms.java | 4 +-
.../bucket/terms/SignificantStringTerms.java | 4 +-
.../bucket/terms/SignificantTerms.java | 4 +-
.../SignificantTermsAggregationBuilder.java | 8 +-
.../SignificantTermsAggregatorFactory.java | 8 +-
.../SignificantTermsAggregatorSupplier.java | 4 +-
.../SignificantTextAggregationBuilder.java | 6 +-
.../SignificantTextAggregatorFactory.java | 12 +-
.../bucket/terms/StringRareTerms.java | 2 +-
.../terms/StringRareTermsAggregator.java | 2 +-
.../bucket/terms/StringTerms.java | 2 +-
.../aggregations/bucket/terms/Terms.java | 4 +-
.../bucket/terms/TermsAggregationBuilder.java | 4 +-
.../bucket/terms/TermsAggregator.java | 6 +-
.../bucket/terms/TermsAggregatorFactory.java | 8 +-
.../bucket/terms/TermsAggregatorSupplier.java | 2 +-
.../bucket/terms/UnmappedRareTerms.java | 2 +-
.../terms/UnmappedSignificantTerms.java | 4 +-
.../bucket/terms/UnmappedTerms.java | 2 +-
.../bucket/terms/heuristic/ChiSquare.java | 2 +-
.../bucket/terms/heuristic/GND.java | 2 +-
.../bucket/terms/heuristic/JLHScore.java | 2 +-
.../terms/heuristic/MutualInformation.java | 2 +-
.../heuristic/NXYSignificanceHeuristic.java | 2 +-
.../terms/heuristic/PercentageScore.java | 2 +-
.../terms/heuristic/ScriptHeuristic.java | 2 +-
.../heuristic/SignificanceHeuristic.java | 4 +-
.../SignificanceHeuristicBuilder.java | 2 +-
.../metrics/GeoGridAggregatorSupplier.java | 2 +-
.../aggregations/pipeline/BucketHelpers.java | 2 +-
.../BucketSortPipelineAggregator.java | 2 +-
.../CumulativeSumPipelineAggregator.java | 4 +-
.../DerivativePipelineAggregationBuilder.java | 4 +-
.../DerivativePipelineAggregator.java | 4 +-
.../pipeline/MovAvgPipelineAggregator.java | 6 +-
.../pipeline/MovFnPipelineAggregator.java | 4 +-
.../SerialDiffPipelineAggregator.java | 4 +-
.../support/AggregationInspectionHelper.java | 40 +++---
.../aggregations/support/AggregationPath.java | 2 +-
.../aggregations/support/package-info.java | 2 +-
.../aggregations/AggregationsTests.java | 52 ++++----
.../AggregatorFactoriesTests.java | 2 +-
.../InternalAggregationsTests.java | 6 +-
.../InternalMultiBucketAggregationTests.java | 6 +-
.../SharedSignificantTermsTestMethods.java | 6 +-
.../search/DocValueFormatTests.java | 2 +-
.../opensearch/search/SearchModuleTests.java | 4 +-
.../opensearch/search/SearchServiceTests.java | 4 +-
.../bucket/AutoDateHistogramTests.java | 4 +-
.../BestBucketsDeferringCollectorTests.java | 2 +-
.../aggregations/bucket/BucketUtilsTests.java | 2 +-
.../bucket/BucketsAggregatorTests.java | 2 +-
.../aggregations/bucket/DateRangeTests.java | 6 +-
.../bucket/DateScriptMocksPlugin.java | 2 +-
.../aggregations/bucket/FilterTests.java | 4 +-
.../aggregations/bucket/FiltersTests.java | 8 +-
.../bucket/GeoDistanceRangeTests.java | 6 +-
.../aggregations/bucket/GeoHashGridTests.java | 6 +-
.../aggregations/bucket/GeoTileGridTests.java | 8 +-
.../bucket/GlobalAggregatorTests.java | 8 +-
.../aggregations/bucket/GlobalTests.java | 4 +-
.../aggregations/bucket/HistogramTests.java | 4 +-
.../aggregations/bucket/IpRangeTests.java | 4 +-
...MergingBucketsDeferringCollectorTests.java | 2 +-
.../aggregations/bucket/MissingTests.java | 4 +-
.../aggregations/bucket/RangeTests.java | 6 +-
.../aggregations/bucket/RareTermsTests.java | 6 +-
.../aggregations/bucket/SamplerTests.java | 4 +-
.../bucket/ShardSizeTestCase.java | 2 +-
.../bucket/SignificantTermsTests.java | 22 ++--
.../bucket/SignificantTextTests.java | 10 +-
.../aggregations/bucket/TermsTests.java | 8 +-
...djacencyMatrixAggregationBuilderTests.java | 2 +-
.../InternalAdjacencyMatrixTests.java | 2 +-
.../CompositeAggregationBuilderTests.java | 6 +-
.../composite/CompositeAggregatorTests.java | 12 +-
.../CompositeValuesCollectorQueueTests.java | 2 +-
.../GeoTileGridValuesSourceBuilderTests.java | 2 +-
.../composite/InternalCompositeTests.java | 2 +-
...egacyIntervalCompositeAggBuilderTests.java | 4 +-
.../SingleDimensionValuesSourceTests.java | 2 +-
.../bucket/filter/FilterAggregatorTests.java | 2 +-
.../bucket/filter/FiltersAggregatorTests.java | 2 +-
.../bucket/filter/InternalFilterTests.java | 4 +-
.../bucket/filter/InternalFiltersTests.java | 4 +-
.../geogrid/GeoGridAggregatorTestCase.java | 6 +-
.../bucket/geogrid/GeoGridTestCase.java | 2 +-
.../geogrid/GeoHashGridAggregatorTests.java | 2 +-
.../geogrid/GeoHashGridParserTests.java | 2 +-
.../bucket/geogrid/GeoHashGridTests.java | 2 +-
.../geogrid/GeoTileGridAggregatorTests.java | 2 +-
.../geogrid/GeoTileGridParserTests.java | 2 +-
.../bucket/geogrid/GeoTileGridTests.java | 2 +-
.../bucket/geogrid/GeoTileUtilsTests.java | 14 +-
.../bucket/global/InternalGlobalTests.java | 4 +-
...oDateHistogramAggregationBuilderTests.java | 2 +-
.../AutoDateHistogramAggregatorTests.java | 6 +-
.../DateHistogramAggregatorTestCase.java | 2 +-
.../DateHistogramAggregatorTests.java | 6 +-
.../bucket/histogram/DateHistogramTests.java | 2 +-
.../histogram/DateIntervalWrapperTests.java | 2 +-
.../DateRangeHistogramAggregatorTests.java | 2 +-
.../bucket/histogram/DoubleBoundsTests.java | 2 +-
.../InternalAutoDateHistogramTests.java | 6 +-
.../histogram/InternalDateHistogramTests.java | 2 +-
.../histogram/InternalHistogramTests.java | 2 +-
.../InternalVariableWidthHistogramTests.java | 2 +-
.../bucket/histogram/LongBoundsTests.java | 2 +-
.../NumericHistogramAggregatorTests.java | 2 +-
.../RangeHistogramAggregatorTests.java | 2 +-
...VariableWidthHistogramAggregatorTests.java | 6 +-
.../bucket/missing/InternalMissingTests.java | 4 +-
.../missing/MissingAggregatorTests.java | 2 +-
.../bucket/nested/InternalNestedTests.java | 4 +-
.../nested/InternalReverseNestedTests.java | 4 +-
.../bucket/nested/NestedAggregatorTests.java | 16 +--
.../bucket/nested/NestedTests.java | 2 +-
.../nested/ReverseNestedAggregatorTests.java | 6 +-
.../bucket/nested/ReverseNestedTests.java | 2 +-
.../range/BinaryRangeAggregatorTests.java | 6 +-
.../range/DateRangeAggregatorTests.java | 2 +-
.../range/InternalBinaryRangeTests.java | 2 +-
.../bucket/range/InternalDateRangeTests.java | 2 +-
.../range/InternalGeoDistanceTests.java | 2 +-
.../bucket/range/InternalRangeTestCase.java | 4 +-
.../bucket/range/InternalRangeTests.java | 2 +-
.../bucket/range/IpRangeAggregatorTests.java | 2 +-
.../range/RangeAggregationBuilderTests.java | 2 +-
.../bucket/range/RangeAggregatorTests.java | 2 +-
.../BestDocsDeferringCollectorTests.java | 2 +-
.../DiversifiedAggregationBuilderTests.java | 4 +-
.../sampler/DiversifiedSamplerTests.java | 6 +-
.../bucket/sampler/InternalSamplerTests.java | 4 +-
.../sampler/SamplerAggregatorTests.java | 8 +-
.../terms/BinaryTermsAggregatorTests.java | 2 +-
.../terms/BytesKeyedBucketOrdsTests.java | 6 +-
.../bucket/terms/DoubleTermsTests.java | 2 +-
.../terms/InternalRareTermsTestCase.java | 2 +-
.../InternalSignificantTermsTestCase.java | 14 +-
.../bucket/terms/InternalTermsTestCase.java | 2 +-
.../terms/KeywordTermsAggregatorTests.java | 2 +-
.../terms/LongKeyedBucketOrdsTests.java | 2 +-
.../bucket/terms/LongRareTermsTests.java | 2 +-
.../bucket/terms/LongTermsTests.java | 2 +-
.../terms/NumericTermsAggregatorTests.java | 2 +-
.../terms/RareTermsAggregatorTests.java | 12 +-
.../terms/SignificanceHeuristicTests.java | 14 +-
.../terms/SignificantLongTermsTests.java | 4 +-
.../terms/SignificantStringTermsTests.java | 4 +-
.../SignificantTermsAggregatorTests.java | 4 +-
.../terms/SignificantTextAggregatorTests.java | 6 +-
.../bucket/terms/StringRareTermsTests.java | 2 +-
.../bucket/terms/StringTermsTests.java | 2 +-
.../terms/TermsAggregatorFactoryTests.java | 2 +-
.../bucket/terms/TermsAggregatorTests.java | 18 +--
.../metrics/AdjacencyMatrixTests.java | 2 +-
.../metrics/AvgAggregatorTests.java | 8 +-
.../metrics/MaxAggregatorTests.java | 12 +-
.../metrics/MinAggregatorTests.java | 20 +--
.../ScriptedMetricAggregatorTests.java | 4 +-
.../metrics/TopHitsAggregatorTests.java | 2 +-
.../pipeline/AvgBucketAggregatorTests.java | 6 +-
.../aggregations/pipeline/AvgBucketTests.java | 4 +-
.../pipeline/BucketHelpersTests.java | 2 +-
.../pipeline/BucketScriptAggregatorTests.java | 6 +-
.../CumulativeSumAggregatorTests.java | 8 +-
.../pipeline/DerivativeAggregatorTests.java | 6 +-
.../pipeline/ExtendedStatsBucketTests.java | 4 +-
.../aggregations/pipeline/MaxBucketTests.java | 4 +-
.../aggregations/pipeline/MinBucketTests.java | 4 +-
.../pipeline/MovFnAggrgatorTests.java | 8 +-
.../pipeline/PercentilesBucketTests.java | 4 +-
.../PipelineAggregationHelperTests.java | 6 +-
.../pipeline/StatsBucketTests.java | 4 +-
.../aggregations/pipeline/SumBucketTests.java | 4 +-
.../support/IncludeExcludeTests.java | 4 +-
.../support/ValuesSourceRegistryTests.java | 2 +-
.../DelayedShardAggregationBuilder.java | 2 +-
.../DelayedShardAggregationPlugin.java | 2 +-
.../aggregations/AggregatorTestCase.java | 2 +-
...ternalSingleBucketAggregationTestCase.java | 4 +-
.../test/InternalAggregationTestCase.java | 104 +++++++--------
...nternalMultiBucketAggregationTestCase.java | 2 +-
.../bucket/AbstractTermsTestCase.java | 6 +-
439 files changed, 1045 insertions(+), 1046 deletions(-)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/BestBucketsDeferringCollector.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/BucketUtils.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/BucketsAggregator.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/DeferableBucketAggregator.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/DeferringBucketCollector.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/InternalSingleBucketAggregation.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/IteratorAndCurrent.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/MergingBucketsDeferringCollector.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/MultiBucketsAggregation.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/ParsedSingleBucketAggregation.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/SingleBucketAggregation.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/SingleBucketAggregator.java (94%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/adjacency/AdjacencyMatrix.java (90%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregator.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregatorFactory.java (94%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/adjacency/InternalAdjacencyMatrix.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/adjacency/ParsedAdjacencyMatrix.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/BinaryValuesSource.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeAggregation.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeAggregationFactory.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeAggregator.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeKey.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeValuesCollectorQueue.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeValuesSourceBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeValuesSourceConfig.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeValuesSourceParserHelper.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/DateHistogramValuesSourceBuilder.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/DoubleValuesSource.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilder.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/GeoTileValuesSource.java (94%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/GlobalOrdinalValuesSource.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/HistogramValuesSource.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/HistogramValuesSourceBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/InternalComposite.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/LongValuesSource.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/ParsedComposite.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/PointsSortedDocsProducer.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/RoundingValuesSource.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/SingleDimensionValuesSource.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/SortedDocsProducer.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/TermsSortedDocsProducer.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/TermsValuesSourceBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/Filter.java (87%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/FilterAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/FilterAggregator.java (94%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/FilterAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/Filters.java (90%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/FiltersAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/FiltersAggregator.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/FiltersAggregatorFactory.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/InternalFilter.java (92%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/InternalFilters.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/ParsedFilter.java (89%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/ParsedFilters.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/BoundedCellValues.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/BucketPriorityQueue.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/CellIdSource.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/CellValues.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoGrid.java (90%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoGridAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoGridAggregator.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoHashGridAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoHashGridAggregator.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoHashGridAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoTileGridAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoTileGridAggregator.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoTileGridAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoTileUtils.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/InternalGeoGrid.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/InternalGeoGridBucket.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/InternalGeoHashGrid.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/InternalGeoHashGridBucket.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/InternalGeoTileGrid.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/InternalGeoTileGridBucket.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/ParsedGeoGrid.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/ParsedGeoGridBucket.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/ParsedGeoHashGrid.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/ParsedGeoHashGridBucket.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/ParsedGeoTileGrid.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/ParsedGeoTileGridBucket.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/UnboundedCellValues.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/global/Global.java (87%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/global/GlobalAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/global/GlobalAggregator.java (93%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/global/GlobalAggregatorFactory.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/global/InternalGlobal.java (92%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/global/ParsedGlobal.java (89%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java (90%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/AutoDateHistogramAggregator.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorFactory.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorSupplier.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateHistogramAggregationBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateHistogramAggregationSupplier.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateHistogramAggregator.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateHistogramInterval.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateIntervalConsumer.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateIntervalWrapper.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateRangeHistogramAggregator.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DoubleBounds.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/Histogram.java (92%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/HistogramAggregationBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/HistogramAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/HistogramAggregatorSupplier.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/HistogramFactory.java (92%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/InternalAutoDateHistogram.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/InternalDateHistogram.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/InternalHistogram.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/InternalVariableWidthHistogram.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/LongBounds.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/NumericHistogramAggregator.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/ParsedAutoDateHistogram.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/ParsedDateHistogram.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/ParsedHistogram.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/ParsedVariableWidthHistogram.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/RangeHistogramAggregator.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/SizedBucketAggregator.java (94%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/SizedBucketAggregatorBuilder.java (94%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/VariableWidthHistogramAggregationBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/VariableWidthHistogramAggregator.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorSupplier.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/package-info.java (93%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/missing/InternalMissing.java (92%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/missing/Missing.java (87%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/missing/MissingAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/missing/MissingAggregator.java (94%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/missing/MissingAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/missing/MissingAggregatorSupplier.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/missing/ParsedMissing.java (89%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/InternalNested.java (92%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/InternalReverseNested.java (92%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/Nested.java (87%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/NestedAggregationBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/NestedAggregator.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/NestedAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/ParsedNested.java (89%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/ParsedReverseNested.java (89%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/ReverseNested.java (87%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/ReverseNestedAggregationBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/ReverseNestedAggregator.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/ReverseNestedAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/package-info (100%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/AbstractRangeAggregatorFactory.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/AbstractRangeBuilder.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/BinaryRangeAggregator.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/BinaryRangeAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/DateRangeAggregationBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/DateRangeAggregatorFactory.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/GeoDistanceAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/GeoDistanceAggregatorSupplier.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/GeoDistanceRangeAggregatorFactory.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/InternalBinaryRange.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/InternalDateRange.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/InternalGeoDistance.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/InternalRange.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/IpRangeAggregationBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/IpRangeAggregatorSupplier.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/ParsedBinaryRange.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/ParsedDateRange.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/ParsedGeoDistance.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/ParsedRange.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/Range.java (93%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/RangeAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/RangeAggregator.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/RangeAggregatorFactory.java (89%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/RangeAggregatorSupplier.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/BestDocsDeferringCollector.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/DiversifiedAggregationBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/DiversifiedAggregatorFactory.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/DiversifiedAggregatorSupplier.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/DiversifiedBytesHashSamplerAggregator.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/DiversifiedMapSamplerAggregator.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/DiversifiedNumericSamplerAggregator.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/DiversifiedOrdinalsSamplerAggregator.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/InternalSampler.java (93%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/ParsedSampler.java (89%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/Sampler.java (88%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/SamplerAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/SamplerAggregator.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/SamplerAggregatorFactory.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/UnmappedSampler.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/AbstractRareTermsAggregator.java (92%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/AbstractStringTermsAggregator.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/BucketPriorityQueue.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/BucketSignificancePriorityQueue.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/BytesKeyedBucketOrds.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/DoubleTerms.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/IncludeExclude.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/InternalMappedRareTerms.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/InternalMappedSignificantTerms.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/InternalMappedTerms.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/InternalRareTerms.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/InternalSignificantTerms.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/InternalTerms.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/LongKeyedBucketOrds.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/LongRareTerms.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/LongRareTermsAggregator.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/LongTerms.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/MapStringTermsAggregator.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/NumericTermsAggregator.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/ParsedDoubleTerms.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/ParsedLongRareTerms.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/ParsedLongTerms.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/ParsedRareTerms.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/ParsedSignificantLongTerms.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/ParsedSignificantStringTerms.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/ParsedSignificantTerms.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/ParsedStringRareTerms.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/ParsedStringTerms.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/ParsedTerms.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/RareTerms.java (90%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/RareTermsAggregationBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/RareTermsAggregatorFactory.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/RareTermsAggregatorSupplier.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificanceLookup.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantLongTerms.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantStringTerms.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantTerms.java (94%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantTermsAggregationBuilder.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantTermsAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantTermsAggregatorSupplier.java (92%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantTextAggregationBuilder.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantTextAggregatorFactory.java (96%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/StringRareTerms.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/StringRareTermsAggregator.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/StringTerms.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/Terms.java (93%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/TermsAggregationBuilder.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/TermsAggregator.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/TermsAggregatorFactory.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/TermsAggregatorSupplier.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/UnmappedRareTerms.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/UnmappedSignificantTerms.java (97%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/UnmappedTerms.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/heuristic/ChiSquare.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/heuristic/GND.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/heuristic/JLHScore.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/heuristic/MutualInformation.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/heuristic/NXYSignificanceHeuristic.java (99%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/heuristic/PercentageScore.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/heuristic/ScriptHeuristic.java (98%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/heuristic/SignificanceHeuristic.java (95%)
rename server/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/heuristic/SignificanceHeuristicBuilder.java (93%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/AutoDateHistogramTests.java (91%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/BestBucketsDeferringCollectorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/BucketUtilsTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/BucketsAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/DateRangeTests.java (94%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/DateScriptMocksPlugin.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/FilterTests.java (90%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/FiltersTests.java (97%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/GeoDistanceRangeTests.java (95%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/GeoHashGridTests.java (93%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/GeoTileGridTests.java (91%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/GlobalAggregatorTests.java (92%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/GlobalTests.java (88%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/HistogramTests.java (97%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/IpRangeTests.java (96%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/MergingBucketsDeferringCollectorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/MissingTests.java (90%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/RangeTests.java (95%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/RareTermsTests.java (95%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/SamplerTests.java (90%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/ShardSizeTestCase.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/SignificantTermsTests.java (88%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/SignificantTextTests.java (91%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/TermsTests.java (95%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/adjacency/InternalAdjacencyMatrixTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeAggregationBuilderTests.java (95%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/CompositeValuesCollectorQueueTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilderTests.java (97%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/InternalCompositeTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/LegacyIntervalCompositeAggBuilderTests.java (97%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/composite/SingleDimensionValuesSourceTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/FilterAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/FiltersAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/InternalFilterTests.java (96%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/filter/InternalFiltersTests.java (97%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoGridAggregatorTestCase.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoGridTestCase.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoHashGridAggregatorTests.java (95%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoHashGridParserTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoHashGridTests.java (96%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoTileGridAggregatorTests.java (96%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoTileGridParserTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoTileGridTests.java (96%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/geogrid/GeoTileUtilsTests.java (95%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/global/InternalGlobalTests.java (91%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilderTests.java (97%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateHistogramAggregatorTestCase.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateHistogramAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateHistogramTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateIntervalWrapperTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DateRangeHistogramAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/DoubleBoundsTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/InternalAutoDateHistogramTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/InternalDateHistogramTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/InternalHistogramTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/InternalVariableWidthHistogramTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/LongBoundsTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/NumericHistogramAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/RangeHistogramAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/missing/InternalMissingTests.java (91%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/missing/MissingAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/InternalNestedTests.java (93%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/InternalReverseNestedTests.java (93%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/NestedAggregatorTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/NestedTests.java (94%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/ReverseNestedAggregatorTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/nested/ReverseNestedTests.java (95%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/BinaryRangeAggregatorTests.java (96%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/DateRangeAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/InternalBinaryRangeTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/InternalDateRangeTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/InternalGeoDistanceTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/InternalRangeTestCase.java (96%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/InternalRangeTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/IpRangeAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/RangeAggregationBuilderTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/range/RangeAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/BestDocsDeferringCollectorTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/DiversifiedAggregationBuilderTests.java (91%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/DiversifiedSamplerTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/InternalSamplerTests.java (92%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/sampler/SamplerAggregatorTests.java (96%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/BinaryTermsAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/BytesKeyedBucketOrdsTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/DoubleTermsTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/InternalRareTermsTestCase.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/InternalSignificantTermsTestCase.java (93%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/InternalTermsTestCase.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/KeywordTermsAggregatorTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/LongKeyedBucketOrdsTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/LongRareTermsTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/LongTermsTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/NumericTermsAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/RareTermsAggregatorTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificanceHeuristicTests.java (97%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantLongTermsTests.java (97%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantStringTermsTests.java (97%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantTermsAggregatorTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/SignificantTextAggregatorTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/StringRareTermsTests.java (98%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/StringTermsTests.java (99%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/TermsAggregatorFactoryTests.java (97%)
rename server/src/test/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/terms/TermsAggregatorTests.java (99%)
rename test/framework/src/main/java/org/{elasticsearch => opensearch}/search/aggregations/bucket/AbstractTermsTestCase.java (94%)
diff --git a/client/rest-high-level/src/main/java/org/opensearch/client/RestHighLevelClient.java b/client/rest-high-level/src/main/java/org/opensearch/client/RestHighLevelClient.java
index e75dec7052c..ef0a2965510 100644
--- a/client/rest-high-level/src/main/java/org/opensearch/client/RestHighLevelClient.java
+++ b/client/rest-high-level/src/main/java/org/opensearch/client/RestHighLevelClient.java
@@ -95,58 +95,58 @@ import org.opensearch.script.mustache.MultiSearchTemplateResponse;
import org.opensearch.script.mustache.SearchTemplateRequest;
import org.opensearch.script.mustache.SearchTemplateResponse;
import org.elasticsearch.search.aggregations.Aggregation;
-import org.elasticsearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.adjacency.ParsedAdjacencyMatrix;
-import org.elasticsearch.search.aggregations.bucket.composite.CompositeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.composite.ParsedComposite;
-import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.ParsedFilter;
-import org.elasticsearch.search.aggregations.bucket.filter.ParsedFilters;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.geogrid.ParsedGeoHashGrid;
-import org.elasticsearch.search.aggregations.bucket.geogrid.ParsedGeoTileGrid;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.ParsedGlobal;
-import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.ParsedAutoDateHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.ParsedDateHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.ParsedHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.ParsedVariableWidthHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.missing.ParsedMissing;
-import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.nested.ParsedNested;
-import org.elasticsearch.search.aggregations.bucket.nested.ParsedReverseNested;
-import org.elasticsearch.search.aggregations.bucket.nested.ReverseNestedAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.DateRangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.ParsedBinaryRange;
-import org.elasticsearch.search.aggregations.bucket.range.ParsedDateRange;
-import org.elasticsearch.search.aggregations.bucket.range.ParsedGeoDistance;
-import org.elasticsearch.search.aggregations.bucket.range.ParsedRange;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.sampler.InternalSampler;
-import org.elasticsearch.search.aggregations.bucket.sampler.ParsedSampler;
-import org.elasticsearch.search.aggregations.bucket.terms.LongRareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedLongRareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedSignificantLongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedSignificantStringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedStringRareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantStringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.LongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedDoubleTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedLongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedStringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.StringRareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
+import org.opensearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.adjacency.ParsedAdjacencyMatrix;
+import org.opensearch.search.aggregations.bucket.composite.CompositeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.composite.ParsedComposite;
+import org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.ParsedFilter;
+import org.opensearch.search.aggregations.bucket.filter.ParsedFilters;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.ParsedGeoHashGrid;
+import org.opensearch.search.aggregations.bucket.geogrid.ParsedGeoTileGrid;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.ParsedGlobal;
+import org.opensearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.ParsedAutoDateHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.ParsedDateHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.ParsedHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.ParsedVariableWidthHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.missing.ParsedMissing;
+import org.opensearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.nested.ParsedNested;
+import org.opensearch.search.aggregations.bucket.nested.ParsedReverseNested;
+import org.opensearch.search.aggregations.bucket.nested.ReverseNestedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.ParsedBinaryRange;
+import org.opensearch.search.aggregations.bucket.range.ParsedDateRange;
+import org.opensearch.search.aggregations.bucket.range.ParsedGeoDistance;
+import org.opensearch.search.aggregations.bucket.range.ParsedRange;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.sampler.InternalSampler;
+import org.opensearch.search.aggregations.bucket.sampler.ParsedSampler;
+import org.opensearch.search.aggregations.bucket.terms.LongRareTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedLongRareTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedSignificantLongTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedSignificantStringTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedStringRareTerms;
+import org.opensearch.search.aggregations.bucket.terms.SignificantLongTerms;
+import org.opensearch.search.aggregations.bucket.terms.SignificantStringTerms;
+import org.opensearch.search.aggregations.bucket.terms.DoubleTerms;
+import org.opensearch.search.aggregations.bucket.terms.LongTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedDoubleTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedLongTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedStringTerms;
+import org.opensearch.search.aggregations.bucket.terms.StringRareTerms;
+import org.opensearch.search.aggregations.bucket.terms.StringTerms;
import org.opensearch.search.aggregations.metrics.AvgAggregationBuilder;
import org.opensearch.search.aggregations.metrics.CardinalityAggregationBuilder;
import org.opensearch.search.aggregations.metrics.ExtendedStatsAggregationBuilder;
diff --git a/client/rest-high-level/src/test/java/org/opensearch/client/RequestConvertersTests.java b/client/rest-high-level/src/test/java/org/opensearch/client/RequestConvertersTests.java
index 73998aa94e8..8ca3369bc18 100644
--- a/client/rest-high-level/src/test/java/org/opensearch/client/RequestConvertersTests.java
+++ b/client/rest-high-level/src/test/java/org/opensearch/client/RequestConvertersTests.java
@@ -94,7 +94,7 @@ import org.opensearch.script.ScriptType;
import org.opensearch.script.mustache.MultiSearchTemplateRequest;
import org.opensearch.script.mustache.SearchTemplateRequest;
import org.opensearch.search.Scroll;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.ValueType;
import org.opensearch.search.builder.SearchSourceBuilder;
import org.opensearch.search.collapse.CollapseBuilder;
diff --git a/client/rest-high-level/src/test/java/org/opensearch/client/SearchIT.java b/client/rest-high-level/src/test/java/org/opensearch/client/SearchIT.java
index 323a47e0f74..6de7a5d4a25 100644
--- a/client/rest-high-level/src/test/java/org/opensearch/client/SearchIT.java
+++ b/client/rest-high-level/src/test/java/org/opensearch/client/SearchIT.java
@@ -63,15 +63,15 @@ import org.opensearch.script.mustache.SearchTemplateResponse;
import org.opensearch.search.SearchHit;
import org.elasticsearch.search.aggregations.AggregationBuilders;
import org.elasticsearch.search.aggregations.BucketOrder;
-import org.elasticsearch.search.aggregations.bucket.composite.CompositeAggregation;
-import org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder;
-import org.elasticsearch.search.aggregations.bucket.composite.TermsValuesSourceBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.Range;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.RareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.RareTermsAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.composite.CompositeAggregation;
+import org.opensearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder;
+import org.opensearch.search.aggregations.bucket.composite.TermsValuesSourceBuilder;
+import org.opensearch.search.aggregations.bucket.range.Range;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.RareTerms;
+import org.opensearch.search.aggregations.bucket.terms.RareTermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.matrix.stats.MatrixStats;
import org.opensearch.search.aggregations.matrix.stats.MatrixStatsAggregationBuilder;
import org.opensearch.search.aggregations.metrics.WeightedAvg;
diff --git a/client/rest-high-level/src/test/java/org/opensearch/client/documentation/SearchDocumentationIT.java b/client/rest-high-level/src/test/java/org/opensearch/client/documentation/SearchDocumentationIT.java
index 872a38534c7..f6e2eb6f3c2 100644
--- a/client/rest-high-level/src/test/java/org/opensearch/client/documentation/SearchDocumentationIT.java
+++ b/client/rest-high-level/src/test/java/org/opensearch/client/documentation/SearchDocumentationIT.java
@@ -86,10 +86,10 @@ import org.opensearch.search.SearchHits;
import org.elasticsearch.search.aggregations.Aggregation;
import org.elasticsearch.search.aggregations.AggregationBuilders;
import org.elasticsearch.search.aggregations.Aggregations;
-import org.elasticsearch.search.aggregations.bucket.range.Range;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms.Bucket;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.Range;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.Terms.Bucket;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.metrics.Avg;
import org.opensearch.search.builder.SearchSourceBuilder;
import org.opensearch.search.fetch.subphase.FetchSourceContext;
diff --git a/modules/lang-expression/src/internalClusterTest/java/org/opensearch/script/expression/MoreExpressionIT.java b/modules/lang-expression/src/internalClusterTest/java/org/opensearch/script/expression/MoreExpressionIT.java
index d35dd682f59..e2abf192c28 100644
--- a/modules/lang-expression/src/internalClusterTest/java/org/opensearch/script/expression/MoreExpressionIT.java
+++ b/modules/lang-expression/src/internalClusterTest/java/org/opensearch/script/expression/MoreExpressionIT.java
@@ -35,7 +35,7 @@ import org.opensearch.script.Script;
import org.opensearch.script.ScriptType;
import org.opensearch.search.SearchHits;
import org.elasticsearch.search.aggregations.AggregationBuilders;
-import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
+import org.opensearch.search.aggregations.bucket.histogram.Histogram;
import org.opensearch.search.aggregations.metrics.Stats;
import org.opensearch.search.aggregations.pipeline.SimpleValue;
import org.opensearch.search.sort.SortBuilders;
diff --git a/modules/mapper-extras/src/javaRestTest/java/org/opensearch/index/mapper/TokenCountFieldMapperIntegrationIT.java b/modules/mapper-extras/src/javaRestTest/java/org/opensearch/index/mapper/TokenCountFieldMapperIntegrationIT.java
index f2b490cdc21..710d277dbcf 100644
--- a/modules/mapper-extras/src/javaRestTest/java/org/opensearch/index/mapper/TokenCountFieldMapperIntegrationIT.java
+++ b/modules/mapper-extras/src/javaRestTest/java/org/opensearch/index/mapper/TokenCountFieldMapperIntegrationIT.java
@@ -31,7 +31,7 @@ import org.elasticsearch.common.settings.Settings;
import org.opensearch.index.query.QueryBuilders;
import org.opensearch.search.SearchHit;
import org.elasticsearch.search.aggregations.AggregationBuilders;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
import org.elasticsearch.test.ESIntegTestCase;
import java.io.IOException;
diff --git a/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/aggregations/ChildrenIT.java b/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/aggregations/ChildrenIT.java
index 00580a2cbf6..95a3e57520a 100644
--- a/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/aggregations/ChildrenIT.java
+++ b/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/aggregations/ChildrenIT.java
@@ -28,7 +28,7 @@ import org.elasticsearch.common.settings.Settings;
import org.opensearch.search.SearchHit;
import org.elasticsearch.search.aggregations.AggregationBuilders;
import org.elasticsearch.search.aggregations.InternalAggregation;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
import org.opensearch.search.aggregations.metrics.Sum;
import org.opensearch.search.aggregations.metrics.TopHits;
import org.opensearch.search.sort.SortOrder;
diff --git a/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/aggregations/ParentIT.java b/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/aggregations/ParentIT.java
index f2383ae7c86..d59cb05d173 100644
--- a/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/aggregations/ParentIT.java
+++ b/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/aggregations/ParentIT.java
@@ -22,8 +22,8 @@ package org.opensearch.join.aggregations;
import org.opensearch.action.search.SearchRequestBuilder;
import org.opensearch.action.search.SearchResponse;
import org.elasticsearch.search.aggregations.Aggregation;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
import java.util.HashMap;
import java.util.HashSet;
diff --git a/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/ChildQuerySearchIT.java b/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/ChildQuerySearchIT.java
index 3694773f1b7..7e1d2026ff1 100644
--- a/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/ChildQuerySearchIT.java
+++ b/modules/parent-join/src/internalClusterTest/java/org/opensearch/join/query/ChildQuerySearchIT.java
@@ -40,9 +40,9 @@ import org.opensearch.index.query.functionscore.FunctionScoreQueryBuilder;
import org.opensearch.rest.RestStatus;
import org.opensearch.search.SearchHit;
import org.elasticsearch.search.aggregations.AggregationBuilders;
-import org.elasticsearch.search.aggregations.bucket.filter.Filter;
-import org.elasticsearch.search.aggregations.bucket.global.Global;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.filter.Filter;
+import org.opensearch.search.aggregations.bucket.global.Global;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder;
import org.opensearch.search.fetch.subphase.highlight.HighlightBuilder.Field;
import org.opensearch.search.fetch.subphase.highlight.HighlightField;
diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/Children.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/Children.java
index f2bae235ade..f7c76fb94be 100644
--- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/Children.java
+++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/Children.java
@@ -19,7 +19,7 @@
package org.opensearch.join.aggregations;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregation;
/**
* An single bucket aggregation that translates parent documents to their children documents.
diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenToParentAggregator.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenToParentAggregator.java
index a773e7580e0..637a9258dd7 100644
--- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenToParentAggregator.java
+++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ChildrenToParentAggregator.java
@@ -24,7 +24,7 @@ import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.internal.SearchContext;
diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/InternalChildren.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/InternalChildren.java
index 06b9114f9ae..9d0329cb7a9 100644
--- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/InternalChildren.java
+++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/InternalChildren.java
@@ -21,7 +21,7 @@ package org.opensearch.join.aggregations;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.InternalSingleBucketAggregation;
import java.io.IOException;
import java.util.Map;
diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/InternalParent.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/InternalParent.java
index 9736df941dd..f1a8788e100 100644
--- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/InternalParent.java
+++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/InternalParent.java
@@ -21,7 +21,7 @@ package org.opensearch.join.aggregations;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.InternalSingleBucketAggregation;
import java.io.IOException;
import java.util.Map;
diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/Parent.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/Parent.java
index 9a3acf62746..d08142b8c56 100644
--- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/Parent.java
+++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/Parent.java
@@ -19,7 +19,7 @@
package org.opensearch.join.aggregations;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregation;
/**
* An single bucket aggregation that translates child documents to their parent documents.
diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentJoinAggregator.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentJoinAggregator.java
index 185d0bb0f81..ef4bc7064fb 100644
--- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentJoinAggregator.java
+++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParentJoinAggregator.java
@@ -37,9 +37,9 @@ import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator;
-import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregator;
+import org.opensearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.internal.SearchContext;
diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParsedChildren.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParsedChildren.java
index a7fe88b877d..dcc2ec46a64 100644
--- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParsedChildren.java
+++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParsedChildren.java
@@ -19,7 +19,7 @@
package org.opensearch.join.aggregations;
import org.elasticsearch.common.xcontent.XContentParser;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.io.IOException;
diff --git a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParsedParent.java b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParsedParent.java
index 1b36d6f8a82..652c674d751 100644
--- a/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParsedParent.java
+++ b/modules/parent-join/src/main/java/org/opensearch/join/aggregations/ParsedParent.java
@@ -19,7 +19,7 @@
package org.opensearch.join.aggregations;
import org.elasticsearch.common.xcontent.XContentParser;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.io.IOException;
diff --git a/modules/parent-join/src/test/java/org/opensearch/join/aggregations/ChildrenToParentAggregatorTests.java b/modules/parent-join/src/test/java/org/opensearch/join/aggregations/ChildrenToParentAggregatorTests.java
index 4eb995480de..c318fefdd48 100644
--- a/modules/parent-join/src/test/java/org/opensearch/join/aggregations/ChildrenToParentAggregatorTests.java
+++ b/modules/parent-join/src/test/java/org/opensearch/join/aggregations/ChildrenToParentAggregatorTests.java
@@ -55,8 +55,8 @@ import org.elasticsearch.plugins.SearchPlugin;
import org.elasticsearch.search.aggregations.Aggregation;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
-import org.elasticsearch.search.aggregations.bucket.terms.LongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.LongTerms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.metrics.InternalMin;
import org.opensearch.search.aggregations.metrics.MinAggregationBuilder;
diff --git a/modules/parent-join/src/test/java/org/opensearch/join/aggregations/InternalChildrenTests.java b/modules/parent-join/src/test/java/org/opensearch/join/aggregations/InternalChildrenTests.java
index d3d7600351d..e1765e820bf 100644
--- a/modules/parent-join/src/test/java/org/opensearch/join/aggregations/InternalChildrenTests.java
+++ b/modules/parent-join/src/test/java/org/opensearch/join/aggregations/InternalChildrenTests.java
@@ -27,7 +27,7 @@ import org.elasticsearch.plugins.SearchPlugin;
import org.elasticsearch.search.aggregations.Aggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalSingleBucketAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.util.ArrayList;
import java.util.List;
diff --git a/modules/parent-join/src/test/java/org/opensearch/join/aggregations/InternalParentTests.java b/modules/parent-join/src/test/java/org/opensearch/join/aggregations/InternalParentTests.java
index 84d3bb4e436..9395a85f2ff 100644
--- a/modules/parent-join/src/test/java/org/opensearch/join/aggregations/InternalParentTests.java
+++ b/modules/parent-join/src/test/java/org/opensearch/join/aggregations/InternalParentTests.java
@@ -26,7 +26,7 @@ import org.elasticsearch.plugins.SearchPlugin;
import org.elasticsearch.search.aggregations.Aggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalSingleBucketAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.util.ArrayList;
import java.util.List;
diff --git a/modules/parent-join/src/test/java/org/opensearch/join/aggregations/ParentToChildrenAggregatorTests.java b/modules/parent-join/src/test/java/org/opensearch/join/aggregations/ParentToChildrenAggregatorTests.java
index 09dc2b115ce..0136a6cae6a 100644
--- a/modules/parent-join/src/test/java/org/opensearch/join/aggregations/ParentToChildrenAggregatorTests.java
+++ b/modules/parent-join/src/test/java/org/opensearch/join/aggregations/ParentToChildrenAggregatorTests.java
@@ -55,8 +55,8 @@ import org.opensearch.join.mapper.ParentJoinFieldMapper;
import org.elasticsearch.plugins.SearchPlugin;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.StringTerms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.metrics.InternalMin;
import org.opensearch.search.aggregations.metrics.MinAggregationBuilder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/AggregationBuilders.java b/server/src/main/java/org/elasticsearch/search/aggregations/AggregationBuilders.java
index df4f8d3b6d2..d7ca43c6e28 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/AggregationBuilders.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/AggregationBuilders.java
@@ -21,43 +21,43 @@ package org.elasticsearch.search.aggregations;
import org.opensearch.common.geo.GeoDistance;
import org.opensearch.common.geo.GeoPoint;
import org.elasticsearch.index.query.QueryBuilder;
-import org.elasticsearch.search.aggregations.bucket.adjacency.AdjacencyMatrix;
-import org.elasticsearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.composite.CompositeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.Filter;
-import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.Filters;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregator.KeyedFilter;
-import org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoTileGrid;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.Global;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.missing.Missing;
-import org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.nested.Nested;
-import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.nested.ReverseNested;
-import org.elasticsearch.search.aggregations.bucket.nested.ReverseNestedAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.DateRangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.Range;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.sampler.DiversifiedAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.sampler.Sampler;
-import org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantTextAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.adjacency.AdjacencyMatrix;
+import org.opensearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.composite.CompositeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder;
+import org.opensearch.search.aggregations.bucket.filter.Filter;
+import org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.Filters;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregator.KeyedFilter;
+import org.opensearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.InternalGeoTileGrid;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.Global;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.Histogram;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.missing.Missing;
+import org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.nested.Nested;
+import org.opensearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.nested.ReverseNested;
+import org.opensearch.search.aggregations.bucket.nested.ReverseNestedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.Range;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.sampler.DiversifiedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.sampler.Sampler;
+import org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.SignificantTerms;
+import org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.SignificantTextAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.metrics.Avg;
import org.opensearch.search.aggregations.metrics.AvgAggregationBuilder;
import org.opensearch.search.aggregations.metrics.Cardinality;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/AggregationPhase.java b/server/src/main/java/org/elasticsearch/search/aggregations/AggregationPhase.java
index 257325d4c37..2923b58fa0d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/AggregationPhase.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/AggregationPhase.java
@@ -22,7 +22,7 @@ import org.apache.lucene.search.Collector;
import org.apache.lucene.search.Query;
import org.opensearch.common.inject.Inject;
import org.opensearch.common.lucene.search.Queries;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregator;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregator;
import org.opensearch.search.internal.SearchContext;
import org.opensearch.search.profile.query.CollectorResult;
import org.opensearch.search.profile.query.InternalProfileCollector;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/AggregatorFactories.java b/server/src/main/java/org/elasticsearch/search/aggregations/AggregatorFactories.java
index 8885bd4535f..4b199342fa4 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/AggregatorFactories.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/AggregatorFactories.java
@@ -33,8 +33,8 @@ import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.index.query.QueryRewriteContext;
import org.elasticsearch.index.query.QueryShardContext;
import org.elasticsearch.index.query.Rewriteable;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.pipeline.PipelineAggregator;
import org.opensearch.search.aggregations.pipeline.PipelineAggregator.PipelineTree;
import org.opensearch.search.aggregations.support.AggregationPath;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/BucketOrder.java b/server/src/main/java/org/elasticsearch/search/aggregations/BucketOrder.java
index a44fa908521..04d1add048e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/BucketOrder.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/BucketOrder.java
@@ -22,7 +22,7 @@ import org.opensearch.common.Strings;
import org.opensearch.common.io.stream.StreamOutput;
import org.opensearch.common.io.stream.Writeable;
import org.elasticsearch.common.xcontent.ToXContentObject;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
import org.opensearch.search.aggregations.support.AggregationPath;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/CardinalityUpperBound.java b/server/src/main/java/org/elasticsearch/search/aggregations/CardinalityUpperBound.java
index 94e80b54588..9b1d8f1a5d8 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/CardinalityUpperBound.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/CardinalityUpperBound.java
@@ -19,9 +19,9 @@
package org.elasticsearch.search.aggregations;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
-import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregator;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.filter.FilterAggregator;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregator;
import java.util.function.IntFunction;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/InternalMultiBucketAggregation.java b/server/src/main/java/org/elasticsearch/search/aggregations/InternalMultiBucketAggregation.java
index fe100b8295d..1144c32cb44 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/InternalMultiBucketAggregation.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/InternalMultiBucketAggregation.java
@@ -21,8 +21,8 @@ package org.elasticsearch.search.aggregations;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.Writeable;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregation;
import org.opensearch.search.aggregations.pipeline.PipelineAggregator.PipelineTree;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/InternalOrder.java b/server/src/main/java/org/elasticsearch/search/aggregations/InternalOrder.java
index bcffa03cb33..945b1bd506d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/InternalOrder.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/InternalOrder.java
@@ -28,7 +28,7 @@ import org.elasticsearch.common.xcontent.XContent;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.search.aggregations.Aggregator.BucketComparator;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
import org.opensearch.search.aggregations.support.AggregationPath;
import org.opensearch.search.sort.SortOrder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/KeyComparable.java b/server/src/main/java/org/elasticsearch/search/aggregations/KeyComparable.java
index c69cf0689c6..5b124f31b5c 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/KeyComparable.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/KeyComparable.java
@@ -18,7 +18,7 @@
*/
package org.elasticsearch.search.aggregations;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
/**
* Defines behavior for comparing {@link Bucket#getKey() bucket keys} to imposes a total ordering
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/LeafBucketCollector.java b/server/src/main/java/org/elasticsearch/search/aggregations/LeafBucketCollector.java
index da5009371f9..8d15afc8ec3 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/LeafBucketCollector.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/LeafBucketCollector.java
@@ -21,7 +21,7 @@ package org.elasticsearch.search.aggregations;
import org.apache.lucene.search.LeafCollector;
import org.apache.lucene.search.Scorable;
-import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
+import org.opensearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
import java.io.IOException;
import java.util.stream.Stream;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/MultiBucketConsumerService.java b/server/src/main/java/org/elasticsearch/search/aggregations/MultiBucketConsumerService.java
index a186fb2299c..560335dcc00 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/MultiBucketConsumerService.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/MultiBucketConsumerService.java
@@ -26,7 +26,7 @@ import org.elasticsearch.common.settings.Setting;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.opensearch.rest.RestStatus;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
import java.io.IOException;
import java.util.function.IntConsumer;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/ParsedMultiBucketAggregation.java b/server/src/main/java/org/elasticsearch/search/aggregations/ParsedMultiBucketAggregation.java
index 974aa568f3a..c18fa83be3c 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/ParsedMultiBucketAggregation.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/ParsedMultiBucketAggregation.java
@@ -25,7 +25,7 @@ import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.common.xcontent.XContentParserUtils;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.io.IOException;
import java.util.ArrayList;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/PipelineAggregationBuilder.java b/server/src/main/java/org/elasticsearch/search/aggregations/PipelineAggregationBuilder.java
index bdaa31496be..89ee129dbbb 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/PipelineAggregationBuilder.java
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/PipelineAggregationBuilder.java
@@ -26,9 +26,9 @@ import org.elasticsearch.common.xcontent.ToXContentFragment;
import org.elasticsearch.index.query.QueryRewriteContext;
import org.elasticsearch.index.query.Rewriteable;
import org.elasticsearch.search.aggregations.AggregatorFactories.Builder;
-import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
import org.opensearch.search.aggregations.pipeline.PipelineAggregator;
import java.io.IOException;
diff --git a/server/src/main/java/org/opensearch/search/DocValueFormat.java b/server/src/main/java/org/opensearch/search/DocValueFormat.java
index 85927064bdd..eb68bde7b55 100644
--- a/server/src/main/java/org/opensearch/search/DocValueFormat.java
+++ b/server/src/main/java/org/opensearch/search/DocValueFormat.java
@@ -34,7 +34,7 @@ import org.opensearch.common.time.DateMathParser;
import org.opensearch.common.time.DateUtils;
import org.opensearch.geometry.utils.Geohash;
import org.elasticsearch.index.mapper.DateFieldMapper;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils;
import java.io.IOException;
import java.math.BigInteger;
diff --git a/server/src/main/java/org/opensearch/search/SearchModule.java b/server/src/main/java/org/opensearch/search/SearchModule.java
index 611ed9628b4..7d68b4e09d5 100644
--- a/server/src/main/java/org/opensearch/search/SearchModule.java
+++ b/server/src/main/java/org/opensearch/search/SearchModule.java
@@ -104,67 +104,67 @@ import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.BaseAggregationBuilder;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.PipelineAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.adjacency.InternalAdjacencyMatrix;
-import org.elasticsearch.search.aggregations.bucket.composite.CompositeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.composite.InternalComposite;
-import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.InternalFilter;
-import org.elasticsearch.search.aggregations.bucket.filter.InternalFilters;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid;
-import org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoTileGrid;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.InternalGlobal;
-import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalAutoDateHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalVariableWidthHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.missing.InternalMissing;
-import org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.nested.InternalNested;
-import org.elasticsearch.search.aggregations.bucket.nested.InternalReverseNested;
-import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.nested.ReverseNestedAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.DateRangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.InternalBinaryRange;
-import org.elasticsearch.search.aggregations.bucket.range.InternalDateRange;
-import org.elasticsearch.search.aggregations.bucket.range.InternalGeoDistance;
-import org.elasticsearch.search.aggregations.bucket.range.InternalRange;
-import org.elasticsearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.sampler.DiversifiedAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.sampler.InternalSampler;
-import org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.sampler.UnmappedSampler;
-import org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.LongRareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.LongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.RareTermsAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantStringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantTextAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.StringRareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.UnmappedRareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.UnmappedSignificantTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.UnmappedTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.ChiSquare;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.GND;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.JLHScore;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.MutualInformation;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.PercentageScore;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.ScriptHeuristic;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.adjacency.InternalAdjacencyMatrix;
+import org.opensearch.search.aggregations.bucket.composite.CompositeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.composite.InternalComposite;
+import org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.InternalFilter;
+import org.opensearch.search.aggregations.bucket.filter.InternalFilters;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid;
+import org.opensearch.search.aggregations.bucket.geogrid.InternalGeoTileGrid;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.InternalGlobal;
+import org.opensearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.InternalAutoDateHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.InternalDateHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.InternalHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.InternalVariableWidthHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.missing.InternalMissing;
+import org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.nested.InternalNested;
+import org.opensearch.search.aggregations.bucket.nested.InternalReverseNested;
+import org.opensearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.nested.ReverseNestedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.InternalBinaryRange;
+import org.opensearch.search.aggregations.bucket.range.InternalDateRange;
+import org.opensearch.search.aggregations.bucket.range.InternalGeoDistance;
+import org.opensearch.search.aggregations.bucket.range.InternalRange;
+import org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.sampler.DiversifiedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.sampler.InternalSampler;
+import org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.sampler.UnmappedSampler;
+import org.opensearch.search.aggregations.bucket.terms.DoubleTerms;
+import org.opensearch.search.aggregations.bucket.terms.LongRareTerms;
+import org.opensearch.search.aggregations.bucket.terms.LongTerms;
+import org.opensearch.search.aggregations.bucket.terms.RareTermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.SignificantLongTerms;
+import org.opensearch.search.aggregations.bucket.terms.SignificantStringTerms;
+import org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.SignificantTextAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.StringRareTerms;
+import org.opensearch.search.aggregations.bucket.terms.StringTerms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.UnmappedRareTerms;
+import org.opensearch.search.aggregations.bucket.terms.UnmappedSignificantTerms;
+import org.opensearch.search.aggregations.bucket.terms.UnmappedTerms;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.ChiSquare;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.GND;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.JLHScore;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.MutualInformation;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.PercentageScore;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.ScriptHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import org.opensearch.search.aggregations.metrics.AvgAggregationBuilder;
import org.opensearch.search.aggregations.metrics.CardinalityAggregationBuilder;
import org.opensearch.search.aggregations.metrics.ExtendedStatsAggregationBuilder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/BestBucketsDeferringCollector.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/BestBucketsDeferringCollector.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/BestBucketsDeferringCollector.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/BestBucketsDeferringCollector.java
index d0d9d869783..8ca8e135b76 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/BestBucketsDeferringCollector.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/BestBucketsDeferringCollector.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.CollectionTerminatedException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/BucketUtils.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/BucketUtils.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/BucketUtils.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/BucketUtils.java
index 823a2b1e434..70b9782a67d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/BucketUtils.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/BucketUtils.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
/**
* Helper functions for common Bucketing functions
@@ -28,7 +28,7 @@ public final class BucketUtils {
/**
* Heuristic used to determine the size of shard-side PriorityQueues when
* selecting the top N terms from a distributed index.
- *
+ *
* @param finalSize
* The number of terms required in the final reduce phase.
* @return A suggested default for the size of any shard-side PriorityQueues
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/BucketsAggregator.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/BucketsAggregator.java
index ac1944c2e94..3d8717fdba7 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/BucketsAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.opensearch.common.lease.Releasable;
import org.elasticsearch.common.util.BigArrays;
@@ -29,8 +29,8 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregator;
-import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregator;
+import org.opensearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
import org.opensearch.search.aggregations.support.AggregationPath;
import org.opensearch.search.internal.SearchContext;
import org.opensearch.search.sort.SortOrder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/DeferableBucketAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/DeferableBucketAggregator.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/DeferableBucketAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/DeferableBucketAggregator.java
index 4fb4f65d186..206fcccc350 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/DeferableBucketAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/DeferableBucketAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/DeferringBucketCollector.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/DeferringBucketCollector.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/DeferringBucketCollector.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/DeferringBucketCollector.java
index 53761bc7404..19fc1f23795 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/DeferringBucketCollector.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/DeferringBucketCollector.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.ScoreMode;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/InternalSingleBucketAggregation.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/InternalSingleBucketAggregation.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/InternalSingleBucketAggregation.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/InternalSingleBucketAggregation.java
index 0c2d447d8b4..7a7f5d0d83d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/InternalSingleBucketAggregation.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/InternalSingleBucketAggregation.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/IteratorAndCurrent.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/IteratorAndCurrent.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/IteratorAndCurrent.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/IteratorAndCurrent.java
index ffb6dd8adb2..4a9fee5be41 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/IteratorAndCurrent.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/IteratorAndCurrent.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollector.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/MergingBucketsDeferringCollector.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollector.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/MergingBucketsDeferringCollector.java
index bab6dde98c6..12b30e3656c 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollector.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/MergingBucketsDeferringCollector.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.apache.lucene.util.packed.PackedInts;
import org.apache.lucene.util.packed.PackedLongValues;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/MultiBucketsAggregation.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/MultiBucketsAggregation.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/MultiBucketsAggregation.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/MultiBucketsAggregation.java
index 24b1894455a..96132a083b0 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/MultiBucketsAggregation.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/MultiBucketsAggregation.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.common.xcontent.ToXContent;
import org.elasticsearch.search.aggregations.Aggregation;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/ParsedSingleBucketAggregation.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/ParsedSingleBucketAggregation.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/ParsedSingleBucketAggregation.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/ParsedSingleBucketAggregation.java
index ab8012d5bbe..551d315145a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/ParsedSingleBucketAggregation.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/ParsedSingleBucketAggregation.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/SingleBucketAggregation.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/SingleBucketAggregation.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/SingleBucketAggregation.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/SingleBucketAggregation.java
index 112922a5df7..f85c485e443 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/SingleBucketAggregation.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/SingleBucketAggregation.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.search.aggregations.Aggregation;
import org.elasticsearch.search.aggregations.Aggregations;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/SingleBucketAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/SingleBucketAggregator.java
similarity index 94%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/SingleBucketAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/SingleBucketAggregator.java
index 38148a10333..70e15147850 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/SingleBucketAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/SingleBucketAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
/**
* A bucket aggregator that doesn't create new buckets.
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrix.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrix.java
similarity index 90%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrix.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrix.java
index 365fbb5547b..ef3cceb48bd 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrix.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrix.java
@@ -17,15 +17,15 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.adjacency;
+package org.opensearch.search.aggregations.bucket.adjacency;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.util.List;
/**
* A multi bucket aggregation where the buckets are defined by a set of filters
- * (a bucket is produced per filter plus a bucket for each non-empty filter
+ * (a bucket is produced per filter plus a bucket for each non-empty filter
* intersection so A, B and A&B).
*/
public interface AdjacencyMatrix extends MultiBucketsAggregation {
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilder.java
index 741716be3fe..5ce66eaa5e4 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.adjacency;
+package org.opensearch.search.aggregations.bucket.adjacency;
import org.elasticsearch.common.ParseField;
import org.opensearch.common.io.stream.StreamInput;
@@ -34,7 +34,7 @@ import org.elasticsearch.search.aggregations.AbstractAggregationBuilder;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorFactories.Builder;
import org.elasticsearch.search.aggregations.AggregatorFactory;
-import org.elasticsearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregator.KeyedFilter;
+import org.opensearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregator.KeyedFilter;
import java.io.IOException;
import java.util.ArrayList;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregator.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregator.java
index 6b7e75ef57b..a34c714b2bd 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.adjacency;
+package org.opensearch.search.aggregations.bucket.adjacency;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.Weight;
@@ -39,7 +39,7 @@ import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
import org.opensearch.search.internal.SearchContext;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregatorFactory.java
similarity index 94%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregatorFactory.java
index f2567a43d74..f2ef1f1e9d9 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.adjacency;
+package org.opensearch.search.aggregations.bucket.adjacency;
import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.Query;
@@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.AggregatorFactory;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
-import org.elasticsearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregator.KeyedFilter;
+import org.opensearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregator.KeyedFilter;
import org.opensearch.search.internal.SearchContext;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/InternalAdjacencyMatrix.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/InternalAdjacencyMatrix.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/InternalAdjacencyMatrix.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/InternalAdjacencyMatrix.java
index 9d114538a7c..873e21dd1d7 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/InternalAdjacencyMatrix.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/InternalAdjacencyMatrix.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.adjacency;
+package org.opensearch.search.aggregations.bucket.adjacency;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/ParsedAdjacencyMatrix.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/ParsedAdjacencyMatrix.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/ParsedAdjacencyMatrix.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/ParsedAdjacencyMatrix.java
index b07bbf529d2..0c8d08089ad 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/adjacency/ParsedAdjacencyMatrix.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/ParsedAdjacencyMatrix.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.adjacency;
+package org.opensearch.search.aggregations.bucket.adjacency;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/BinaryValuesSource.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/BinaryValuesSource.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/BinaryValuesSource.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/BinaryValuesSource.java
index 93ca25c01c3..ec47d5b3267 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/BinaryValuesSource.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/BinaryValuesSource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.LeafReaderContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregation.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregation.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregation.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregation.java
index b5b5218fc53..17a787b492e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregation.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregation.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.elasticsearch.common.xcontent.XContentBuilder;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.io.IOException;
import java.util.List;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregationBuilder.java
index 70e7c6b23b4..68b52e985c6 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.elasticsearch.common.ParseField;
import org.opensearch.common.io.stream.StreamInput;
@@ -29,7 +29,7 @@ import org.elasticsearch.search.aggregations.AbstractAggregationBuilder;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.AggregatorFactory;
-import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregatorFactory;
+import org.opensearch.search.aggregations.bucket.nested.NestedAggregatorFactory;
import org.opensearch.search.aggregations.support.ValuesSourceRegistry;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregationFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregationFactory.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregationFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregationFactory.java
index 4d0710f4915..16600f7ada9 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregationFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregationFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.elasticsearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.Aggregator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregator.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregator.java
index 27e7e86e798..6960b21ce40 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.DocValues;
import org.apache.lucene.index.LeafReaderContext;
@@ -56,7 +56,7 @@ import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.MultiBucketCollector;
import org.elasticsearch.search.aggregations.MultiBucketConsumerService;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
import org.opensearch.search.internal.SearchContext;
import org.opensearch.search.searchafter.SearchAfterBuilder;
import org.opensearch.search.sort.SortAndFormats;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeKey.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeKey.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeKey.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeKey.java
index 18de10aaa2d..2358bf2e461 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeKey.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeKey.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesCollectorQueue.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesCollectorQueue.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesCollectorQueue.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesCollectorQueue.java
index 1f1cf3a8b63..52cc89f05ce 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesCollectorQueue.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesCollectorQueue.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.CollectionTerminatedException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesSourceBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesSourceBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesSourceBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesSourceBuilder.java
index afbb44e4fd1..7841d98ef20 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesSourceBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesSourceBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.opensearch.Version;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesSourceConfig.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesSourceConfig.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesSourceConfig.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesSourceConfig.java
index f4a7ccb74b6..d3f63fd4850 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesSourceConfig.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesSourceConfig.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.IndexReader;
import org.elasticsearch.common.Nullable;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesSourceParserHelper.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesSourceParserHelper.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesSourceParserHelper.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesSourceParserHelper.java
index 2e5dd584c97..164383a4322 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/CompositeValuesSourceParserHelper.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesSourceParserHelper.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.opensearch.Version;
import org.elasticsearch.common.ParseField;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/DateHistogramValuesSourceBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/DateHistogramValuesSourceBuilder.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/DateHistogramValuesSourceBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/DateHistogramValuesSourceBuilder.java
index f1138d97952..a1753274099 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/DateHistogramValuesSourceBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/DateHistogramValuesSourceBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.IndexReader;
import org.opensearch.Version;
@@ -34,11 +34,11 @@ import org.elasticsearch.index.mapper.MappedFieldType;
import org.elasticsearch.index.query.QueryShardContext;
import org.opensearch.script.Script;
import org.opensearch.search.DocValueFormat;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateIntervalConsumer;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateIntervalWrapper;
-import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramInterval;
+import org.opensearch.search.aggregations.bucket.histogram.DateIntervalConsumer;
+import org.opensearch.search.aggregations.bucket.histogram.DateIntervalWrapper;
+import org.opensearch.search.aggregations.bucket.histogram.Histogram;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/DoubleValuesSource.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/DoubleValuesSource.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/DoubleValuesSource.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/DoubleValuesSource.java
index 426f4a15d5b..876fa47e870 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/DoubleValuesSource.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/DoubleValuesSource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.LeafReaderContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilder.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilder.java
index 867f3c10d8d..4ca08c15266 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.IndexReader;
import org.opensearch.Version;
@@ -33,9 +33,9 @@ import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.index.mapper.MappedFieldType;
import org.elasticsearch.index.query.QueryShardContext;
import org.opensearch.search.DocValueFormat;
-import org.elasticsearch.search.aggregations.bucket.geogrid.CellIdSource;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils;
+import org.opensearch.search.aggregations.bucket.geogrid.CellIdSource;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/GeoTileValuesSource.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/GeoTileValuesSource.java
similarity index 94%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/GeoTileValuesSource.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/GeoTileValuesSource.java
index d317505667f..162540f05ff 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/GeoTileValuesSource.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/GeoTileValuesSource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.SortedNumericDocValues;
@@ -25,7 +25,7 @@ import org.elasticsearch.common.CheckedFunction;
import org.elasticsearch.common.util.BigArrays;
import org.elasticsearch.index.mapper.MappedFieldType;
import org.opensearch.search.DocValueFormat;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils;
import java.io.IOException;
import java.util.function.LongUnaryOperator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/GlobalOrdinalValuesSource.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/GlobalOrdinalValuesSource.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/GlobalOrdinalValuesSource.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/GlobalOrdinalValuesSource.java
index 10553e5d8d5..2b8fab262d1 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/GlobalOrdinalValuesSource.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/GlobalOrdinalValuesSource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.LeafReaderContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/HistogramValuesSource.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/HistogramValuesSource.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/HistogramValuesSource.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/HistogramValuesSource.java
index 150e7261d12..4e3c31829d6 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/HistogramValuesSource.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/HistogramValuesSource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.SortedNumericDocValues;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/HistogramValuesSourceBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/HistogramValuesSourceBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/HistogramValuesSourceBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/HistogramValuesSourceBuilder.java
index 7e37c75247d..4ca07a17f03 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/HistogramValuesSourceBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/HistogramValuesSourceBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.IndexReader;
import org.opensearch.common.io.stream.StreamInput;
@@ -28,7 +28,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.index.mapper.MappedFieldType;
import org.elasticsearch.index.query.QueryShardContext;
-import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
+import org.opensearch.search.aggregations.bucket.histogram.Histogram;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/InternalComposite.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/InternalComposite.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/InternalComposite.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/InternalComposite.java
index cb7fe0c102e..058bf74bbf2 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/InternalComposite.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/InternalComposite.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.util.BytesRef;
import org.opensearch.Version;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/LongValuesSource.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/LongValuesSource.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/LongValuesSource.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/LongValuesSource.java
index 10e71243346..8110fd0d690 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/LongValuesSource.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/LongValuesSource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.document.IntPoint;
import org.apache.lucene.document.LongPoint;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/ParsedComposite.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/ParsedComposite.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/ParsedComposite.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/ParsedComposite.java
index 6dc42c7405d..c94ddd78fba 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/ParsedComposite.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/ParsedComposite.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.elasticsearch.common.ParseField;
import org.elasticsearch.common.xcontent.ObjectParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/PointsSortedDocsProducer.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/PointsSortedDocsProducer.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/PointsSortedDocsProducer.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/PointsSortedDocsProducer.java
index d600e0d887c..689aba4ff28 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/PointsSortedDocsProducer.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/PointsSortedDocsProducer.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.PointValues;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/RoundingValuesSource.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/RoundingValuesSource.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/RoundingValuesSource.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/RoundingValuesSource.java
index 362c5f7c338..e5db3881660 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/RoundingValuesSource.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/RoundingValuesSource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.SortedNumericDocValues;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/SingleDimensionValuesSource.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/SingleDimensionValuesSource.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/SingleDimensionValuesSource.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/SingleDimensionValuesSource.java
index 9d1c65798f4..9a4139c8604 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/SingleDimensionValuesSource.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/SingleDimensionValuesSource.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.LeafReaderContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/SortedDocsProducer.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/SortedDocsProducer.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/SortedDocsProducer.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/SortedDocsProducer.java
index 01e2c0a3ae5..33411969454 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/SortedDocsProducer.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/SortedDocsProducer.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.DocIdSet;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/TermsSortedDocsProducer.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/TermsSortedDocsProducer.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/TermsSortedDocsProducer.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/TermsSortedDocsProducer.java
index 2c0c6188f5c..5a592a4ef37 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/TermsSortedDocsProducer.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/TermsSortedDocsProducer.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.PostingsEnum;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/TermsValuesSourceBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/TermsValuesSourceBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/TermsValuesSourceBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/composite/TermsValuesSourceBuilder.java
index 05af96e3edd..c9b8cb9956d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/composite/TermsValuesSourceBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/TermsValuesSourceBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.composite;
+package org.opensearch.search.aggregations.bucket.composite;
import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.index.IndexReader;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/Filter.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/Filter.java
similarity index 87%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/Filter.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/Filter.java
index 5003aa1e3db..f49435b3ce5 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/Filter.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/Filter.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregation;
/**
* A {@code filter} aggregation. Defines a single bucket that holds all documents that match a specific filter.
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FilterAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FilterAggregationBuilder.java
index 8b9425f819c..f3921379d0a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FilterAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FilterAggregator.java
similarity index 94%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FilterAggregator.java
index 04b8151a13f..932735f62b3 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FilterAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.Weight;
@@ -28,8 +28,8 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregator;
import org.opensearch.search.internal.SearchContext;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FilterAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FilterAggregatorFactory.java
index 6eeba728d42..0bd228286de 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FilterAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.Query;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/Filters.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/Filters.java
similarity index 90%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/Filters.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/Filters.java
index dfeb36dba74..ffa3801fda8 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/Filters.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/Filters.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.util.List;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FiltersAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FiltersAggregationBuilder.java
index 6cb43682118..f580db91d63 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FiltersAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
import org.elasticsearch.common.ParseField;
import org.opensearch.common.ParsingException;
@@ -33,7 +33,7 @@ import org.elasticsearch.search.aggregations.AbstractAggregationBuilder;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorFactories.Builder;
import org.elasticsearch.search.aggregations.AggregatorFactory;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregator.KeyedFilter;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregator.KeyedFilter;
import java.io.IOException;
import java.util.ArrayList;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FiltersAggregator.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FiltersAggregator.java
index a5900ce17eb..8e7eebc98df 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FiltersAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.Weight;
@@ -37,7 +37,7 @@ import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
import org.opensearch.search.internal.SearchContext;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FiltersAggregatorFactory.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FiltersAggregatorFactory.java
index 2c05738d49e..7b06755c379 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/FiltersAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.Query;
@@ -29,7 +29,7 @@ import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.AggregatorFactory;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregator.KeyedFilter;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregator.KeyedFilter;
import org.opensearch.search.internal.SearchContext;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/InternalFilter.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/InternalFilter.java
similarity index 92%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/InternalFilter.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/InternalFilter.java
index efd2c3b80d4..955d4747431 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/InternalFilter.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/InternalFilter.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.InternalSingleBucketAggregation;
import java.io.IOException;
import java.util.Map;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/InternalFilters.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/InternalFilters.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/InternalFilters.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/InternalFilters.java
index bbb27766ee4..8c649765748 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/InternalFilters.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/InternalFilters.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/ParsedFilter.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/ParsedFilter.java
similarity index 89%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/ParsedFilter.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/ParsedFilter.java
index 5f5cf104498..3ccf257ceda 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/ParsedFilter.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/ParsedFilter.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
import org.elasticsearch.common.xcontent.XContentParser;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/ParsedFilters.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/ParsedFilters.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/ParsedFilters.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/filter/ParsedFilters.java
index 996440b61ff..271deb0072c 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/ParsedFilters.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/filter/ParsedFilters.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.filter;
+package org.opensearch.search.aggregations.bucket.filter;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentBuilder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/BoundedCellValues.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/BoundedCellValues.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/BoundedCellValues.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/BoundedCellValues.java
index bf5c0d44b30..f9008f1ca56 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/BoundedCellValues.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/BoundedCellValues.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.geo.GeoBoundingBox;
import org.elasticsearch.index.fielddata.MultiGeoPointValues;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/BucketPriorityQueue.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/BucketPriorityQueue.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/BucketPriorityQueue.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/BucketPriorityQueue.java
index 9a2cd7ab880..0539404320b 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/BucketPriorityQueue.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/BucketPriorityQueue.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.apache.lucene.util.PriorityQueue;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/CellIdSource.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/CellIdSource.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/CellIdSource.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/CellIdSource.java
index 4e13545f478..31028640a3f 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/CellIdSource.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/CellIdSource.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.SortedNumericDocValues;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/CellValues.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/CellValues.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/CellValues.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/CellValues.java
index 8c7aec91afb..4035f4bf8c2 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/CellValues.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/CellValues.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.index.fielddata.AbstractSortingNumericDocValues;
import org.opensearch.index.fielddata.MultiGeoPointValues;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGrid.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGrid.java
similarity index 90%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGrid.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGrid.java
index e320836eabf..4403bba0c1b 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGrid.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGrid.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.util.List;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGridAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGridAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGridAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGridAggregationBuilder.java
index eb751b6681f..0a574eb8b5a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGridAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGridAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.OpenSearchException;
import org.opensearch.Version;
@@ -32,7 +32,7 @@ import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.AggregatorFactories.Builder;
import org.elasticsearch.search.aggregations.AggregatorFactory;
-import org.elasticsearch.search.aggregations.bucket.BucketUtils;
+import org.opensearch.search.aggregations.bucket.BucketUtils;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder;
import org.opensearch.search.aggregations.support.ValuesSourceAggregatorFactory;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGridAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGridAggregator.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGridAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGridAggregator.java
index 494e151e5c4..e12dee5d51a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoGridAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGridAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.SortedNumericDocValues;
@@ -28,8 +28,8 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
-import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoHashGridAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoHashGridAggregationBuilder.java
index b995f2f2230..5c6588b3358 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoHashGridAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.geo.GeoBoundingBox;
import org.opensearch.common.geo.GeoUtils;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoHashGridAggregator.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoHashGridAggregator.java
index f147f61676b..1528522309a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoHashGridAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoHashGridAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoHashGridAggregatorFactory.java
index f052885a188..784a951ff4f 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoHashGridAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoHashGridAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.geo.GeoBoundingBox;
import org.opensearch.geometry.utils.Geohash;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridAggregationBuilder.java
index 42685004808..2d1804ea73a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.geo.GeoBoundingBox;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridAggregator.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridAggregator.java
index 9326513c0d4..17c3afaf620 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridAggregatorFactory.java
index 07ef5d899cc..bcddb872933 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.geo.GeoBoundingBox;
import org.elasticsearch.index.query.QueryShardContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileUtils.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileUtils.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileUtils.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileUtils.java
index c2c526d7c97..26978e5c943 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileUtils.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileUtils.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.apache.lucene.geo.GeoEncodingUtils;
import org.apache.lucene.util.SloppyMath;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoGrid.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoGrid.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoGrid.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoGrid.java
index 5e5b8111d8a..1a292aa9061 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoGrid.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoGrid.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoGridBucket.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoGridBucket.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoGridBucket.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoGridBucket.java
index b0d787750d2..9f19955099b 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoGridBucket.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoGridBucket.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoHashGrid.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoHashGrid.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoHashGrid.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoHashGrid.java
index 1c44df22024..3a52eb46071 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoHashGrid.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoHashGrid.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.InternalAggregations;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoHashGridBucket.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoHashGridBucket.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoHashGridBucket.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoHashGridBucket.java
index 6efceb01bdc..7b334b5ace5 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoHashGridBucket.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoHashGridBucket.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.geo.GeoPoint;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoTileGrid.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoTileGrid.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoTileGrid.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoTileGrid.java
index 3251869f6b3..2b3f48a88ba 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoTileGrid.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoTileGrid.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.InternalAggregations;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoTileGridBucket.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoTileGridBucket.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoTileGridBucket.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoTileGridBucket.java
index 7ec7b4eefab..03abf213398 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/InternalGeoTileGridBucket.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/InternalGeoTileGridBucket.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.geo.GeoPoint;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoGrid.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoGrid.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoGrid.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoGrid.java
index cd19dc84c21..7f927f8417e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoGrid.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoGrid.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.elasticsearch.common.CheckedFunction;
import org.elasticsearch.common.xcontent.ObjectParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoGridBucket.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoGridBucket.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoGridBucket.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoGridBucket.java
index 4e71119fbee..be6ad35ee5a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoGridBucket.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoGridBucket.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.search.aggregations.Aggregation;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoHashGrid.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoHashGrid.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoHashGrid.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoHashGrid.java
index 362c220fdff..a54dfa74b6c 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoHashGrid.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoHashGrid.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoHashGridBucket.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoHashGridBucket.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoHashGridBucket.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoHashGridBucket.java
index 2b790c59c91..4769b94e52e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoHashGridBucket.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoHashGridBucket.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.geo.GeoPoint;
import org.elasticsearch.common.xcontent.XContentParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoTileGrid.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoTileGrid.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoTileGrid.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoTileGrid.java
index 9e07d6af1dc..192c2057d3d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoTileGrid.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoTileGrid.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoTileGridBucket.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoTileGridBucket.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoTileGridBucket.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoTileGridBucket.java
index 5c36c767933..6f2313b7484 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/ParsedGeoTileGridBucket.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/ParsedGeoTileGridBucket.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.geo.GeoPoint;
import org.elasticsearch.common.xcontent.XContentParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/UnboundedCellValues.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/UnboundedCellValues.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/UnboundedCellValues.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/UnboundedCellValues.java
index 4de74479a90..869dcfcb12d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/geogrid/UnboundedCellValues.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/geogrid/UnboundedCellValues.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.geo.GeoBoundingBox;
import org.opensearch.index.fielddata.MultiGeoPointValues;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/Global.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/Global.java
similarity index 87%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/Global.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/global/Global.java
index 8993c10ad65..0000fe32d2b 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/Global.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/Global.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.global;
+package org.opensearch.search.aggregations.bucket.global;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregation;
/**
* A {@code global} aggregation. Defines a single bucket the holds all the documents in the search context.
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/GlobalAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/global/GlobalAggregationBuilder.java
index 7c32e9fb580..cbb856ab045 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/GlobalAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.global;
+package org.opensearch.search.aggregations.bucket.global;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/GlobalAggregator.java
similarity index 93%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/global/GlobalAggregator.java
index 057a78fe599..c5decd70f19 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/GlobalAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.global;
+package org.opensearch.search.aggregations.bucket.global;
import org.apache.lucene.index.LeafReaderContext;
import org.elasticsearch.search.aggregations.AggregatorFactories;
@@ -24,8 +24,8 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregator;
import org.opensearch.search.internal.SearchContext;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/GlobalAggregatorFactory.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/global/GlobalAggregatorFactory.java
index 116d9b460ed..a761ef45e45 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/GlobalAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/GlobalAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.global;
+package org.opensearch.search.aggregations.bucket.global;
import org.elasticsearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.AggregationExecutionException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/InternalGlobal.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/InternalGlobal.java
similarity index 92%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/InternalGlobal.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/global/InternalGlobal.java
index 01f515f2b32..32b452c0c32 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/InternalGlobal.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/InternalGlobal.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.global;
+package org.opensearch.search.aggregations.bucket.global;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.InternalSingleBucketAggregation;
import java.io.IOException;
import java.util.Map;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/ParsedGlobal.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/ParsedGlobal.java
similarity index 89%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/ParsedGlobal.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/global/ParsedGlobal.java
index 062752805b1..d5783426060 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/global/ParsedGlobal.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/global/ParsedGlobal.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.global;
+package org.opensearch.search.aggregations.bucket.global;
import org.elasticsearch.common.xcontent.XContentParser;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java
similarity index 90%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java
index 3257f1541ec..285773c7f47 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AbstractHistogramAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.util.CollectionUtil;
import org.opensearch.common.lease.Releasables;
@@ -27,9 +27,8 @@ import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.BucketOrder;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalHistogram.EmptyBucketInfo;
-import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
import org.opensearch.search.internal.SearchContext;
import java.io.IOException;
@@ -37,8 +36,8 @@ import java.util.Collections;
import java.util.Map;
import java.util.function.BiConsumer;
-import static org.elasticsearch.search.aggregations.bucket.histogram.DoubleBounds.getEffectiveMax;
-import static org.elasticsearch.search.aggregations.bucket.histogram.DoubleBounds.getEffectiveMin;
+import static org.opensearch.search.aggregations.bucket.histogram.DoubleBounds.getEffectiveMax;
+import static org.opensearch.search.aggregations.bucket.histogram.DoubleBounds.getEffectiveMin;
/**
* Base class for functionality shared between aggregators for this
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilder.java
index d4fc93b0766..163e1761a22 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.Version;
import org.elasticsearch.common.ParseField;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregator.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregator.java
index 436bf7047f3..bb1df8a1117 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.SortedNumericDocValues;
@@ -36,11 +36,11 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.DeferableBucketAggregator;
-import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector;
-import org.elasticsearch.search.aggregations.bucket.MergingBucketsDeferringCollector;
-import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder.RoundingInfo;
-import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
+import org.opensearch.search.aggregations.bucket.DeferableBucketAggregator;
+import org.opensearch.search.aggregations.bucket.DeferringBucketCollector;
+import org.opensearch.search.aggregations.bucket.MergingBucketsDeferringCollector;
+import org.opensearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder.RoundingInfo;
+import org.opensearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorFactory.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorFactory.java
index d12ebd89279..aaa7ccfa5a3 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.common.Rounding;
import org.elasticsearch.index.query.QueryShardContext;
@@ -25,7 +25,7 @@ import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.AggregatorFactory;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
-import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder.RoundingInfo;
+import org.opensearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder.RoundingInfo;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSourceAggregatorFactory;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorSupplier.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorSupplier.java
index 6d3f9b389ba..6873ac4cc45 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorSupplier.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.Nullable;
import org.opensearch.common.Rounding;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregationBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregationBuilder.java
index 66038d2f3b9..15cdc7d6c8a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.Version;
import org.opensearch.common.Rounding;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregationSupplier.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregationSupplier.java
index b284fb00260..21569fb5e19 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregationSupplier.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.Nullable;
import org.opensearch.common.Rounding;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java
index f8c2b7e88c9..d36da401c9a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.SortedNumericDocValues;
@@ -33,8 +33,8 @@ import org.elasticsearch.search.aggregations.BucketOrder;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
-import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory.java
index 2cdd73333e8..46ecfcdb6d2 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.common.Rounding;
import org.elasticsearch.common.collect.List;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramInterval.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramInterval.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramInterval.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramInterval.java
index 7d4bbdcd888..acc8a8387cf 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramInterval.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramInterval.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.common.Rounding;
import org.opensearch.common.Strings;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateIntervalConsumer.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateIntervalConsumer.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateIntervalConsumer.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateIntervalConsumer.java
index a53369e2a37..70cb8e5e58d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateIntervalConsumer.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateIntervalConsumer.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
/**
* A shared interface for aggregations that parse and use "interval" parameters.
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateIntervalWrapper.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateIntervalWrapper.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateIntervalWrapper.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateIntervalWrapper.java
index 3f7d622e4ad..8747444f836 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateIntervalWrapper.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateIntervalWrapper.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.Version;
import org.elasticsearch.common.ParseField;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregator.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregator.java
index c2bc2e558c6..01730801f56 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.ScoreMode;
@@ -36,8 +36,8 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
-import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.terms.LongKeyedBucketOrds;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DoubleBounds.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DoubleBounds.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DoubleBounds.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DoubleBounds.java
index 00a5d48e058..b31e689b357 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/DoubleBounds.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/DoubleBounds.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.ParseField;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/Histogram.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/Histogram.java
similarity index 92%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/Histogram.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/Histogram.java
index 8ae26689136..2ae23a50211 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/Histogram.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/Histogram.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.ParseField;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.util.List;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramAggregationBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramAggregationBuilder.java
index eedc3e91f56..b94f477ac3d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.Version;
import org.elasticsearch.common.ParseField;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramAggregatorFactory.java
index 8e3a91a6e4b..f11ad052071 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.collect.List;
import org.elasticsearch.index.query.QueryShardContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramAggregatorSupplier.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramAggregatorSupplier.java
index 75f2afb13dd..0d2db28f745 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramAggregatorSupplier.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramFactory.java
similarity index 92%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramFactory.java
index bafa1265fb2..1460a7f3dc1 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/HistogramFactory.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.util.List;
@@ -34,7 +34,7 @@ public interface HistogramFactory {
* must return the double value of the key. */
Number getKey(MultiBucketsAggregation.Bucket bucket);
- /** Given a key returned by {@link #getKey}, compute the lowest key that is
+ /** Given a key returned by {@link #getKey}, compute the lowest key that is
* greater than it. */
Number nextKey(Number key);
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalAutoDateHistogram.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalAutoDateHistogram.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalAutoDateHistogram.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalAutoDateHistogram.java
index 2f6b1003d63..584d9520f64 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalAutoDateHistogram.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalAutoDateHistogram.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.util.PriorityQueue;
import org.opensearch.common.Rounding;
@@ -29,9 +29,9 @@ import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.KeyComparable;
-import org.elasticsearch.search.aggregations.bucket.IteratorAndCurrent;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
-import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder.RoundingInfo;
+import org.opensearch.search.aggregations.bucket.IteratorAndCurrent;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder.RoundingInfo;
import java.io.IOException;
import java.time.Instant;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalDateHistogram.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalDateHistogram.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalDateHistogram.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalDateHistogram.java
index 318734e5d7c..ae74f99c313 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalDateHistogram.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalDateHistogram.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.util.CollectionUtil;
import org.apache.lucene.util.PriorityQueue;
@@ -32,8 +32,8 @@ import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.InternalOrder;
import org.elasticsearch.search.aggregations.KeyComparable;
-import org.elasticsearch.search.aggregations.bucket.IteratorAndCurrent;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.IteratorAndCurrent;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.io.IOException;
import java.time.Instant;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalHistogram.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalHistogram.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalHistogram.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalHistogram.java
index 919a18cbda5..7487c832da7 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalHistogram.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalHistogram.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.util.CollectionUtil;
import org.apache.lucene.util.PriorityQueue;
@@ -31,8 +31,8 @@ import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.InternalOrder;
import org.elasticsearch.search.aggregations.KeyComparable;
-import org.elasticsearch.search.aggregations.bucket.IteratorAndCurrent;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.IteratorAndCurrent;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.io.IOException;
import java.util.ArrayList;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogram.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogram.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogram.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogram.java
index 4f97b4b226d..266d5320a7f 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogram.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogram.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.util.PriorityQueue;
import org.opensearch.common.io.stream.StreamInput;
@@ -29,8 +29,8 @@ import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.KeyComparable;
-import org.elasticsearch.search.aggregations.bucket.IteratorAndCurrent;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.IteratorAndCurrent;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.io.IOException;
import java.util.ArrayList;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/LongBounds.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/LongBounds.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/LongBounds.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/LongBounds.java
index 83df9bb9b9c..069af1be6ea 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/LongBounds.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/LongBounds.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.CheckedFunction;
import org.elasticsearch.common.ParseField;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/NumericHistogramAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/NumericHistogramAggregator.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/NumericHistogramAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/NumericHistogramAggregator.java
index 0be0eaa480d..425167f343e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/NumericHistogramAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/NumericHistogramAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.ScoreMode;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedAutoDateHistogram.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedAutoDateHistogram.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedAutoDateHistogram.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedAutoDateHistogram.java
index 525591f5567..7a7153f44f7 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedAutoDateHistogram.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedAutoDateHistogram.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.ParseField;
import org.elasticsearch.common.xcontent.ObjectParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedDateHistogram.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedDateHistogram.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedDateHistogram.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedDateHistogram.java
index e212ecc6fb4..7abd7584d61 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedDateHistogram.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedDateHistogram.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentBuilder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedHistogram.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedHistogram.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedHistogram.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedHistogram.java
index 6e0caac936f..28d8d456cb6 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedHistogram.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedHistogram.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedVariableWidthHistogram.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedVariableWidthHistogram.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedVariableWidthHistogram.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedVariableWidthHistogram.java
index f76391bb8c8..c1142cd05e0 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/ParsedVariableWidthHistogram.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/ParsedVariableWidthHistogram.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentBuilder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/RangeHistogramAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/RangeHistogramAggregator.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/RangeHistogramAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/RangeHistogramAggregator.java
index a3d5bc5ad35..398ecb56148 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/RangeHistogramAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/RangeHistogramAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.util.BytesRef;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/SizedBucketAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/SizedBucketAggregator.java
similarity index 94%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/SizedBucketAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/SizedBucketAggregator.java
index aae92a7f84a..5191171aecc 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/SizedBucketAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/SizedBucketAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.common.Rounding;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/SizedBucketAggregatorBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/SizedBucketAggregatorBuilder.java
similarity index 94%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/SizedBucketAggregatorBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/SizedBucketAggregatorBuilder.java
index c0b61caeda5..dfd6ffa4dfa 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/SizedBucketAggregatorBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/SizedBucketAggregatorBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import java.util.concurrent.TimeUnit;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregationBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregationBuilder.java
index f2cfde8bd29..bcfb35731c2 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.ParseField;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregator.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregator.java
index 09bc1a83975..33de536faf5 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.ScoreMode;
@@ -37,10 +37,10 @@ import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.DeferableBucketAggregator;
-import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector;
-import org.elasticsearch.search.aggregations.bucket.MergingBucketsDeferringCollector;
-import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregator;
+import org.opensearch.search.aggregations.bucket.DeferableBucketAggregator;
+import org.opensearch.search.aggregations.bucket.DeferringBucketCollector;
+import org.opensearch.search.aggregations.bucket.MergingBucketsDeferringCollector;
+import org.opensearch.search.aggregations.bucket.nested.NestedAggregator;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorFactory.java
index d8937f12bd0..c9aaf110d89 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.Aggregator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorSupplier.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorSupplier.java
index 5c9addc3867..1ce216c6f16 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorSupplier.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.Nullable;
import org.elasticsearch.search.aggregations.Aggregator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/package-info.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/package-info.java
similarity index 93%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/package-info.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/package-info.java
index 1e3093bd368..d20afeecc4e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/package-info.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/histogram/package-info.java
@@ -20,4 +20,4 @@
/**
* Histogram module for different bucket specifications used in aggregation.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/InternalMissing.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/InternalMissing.java
similarity index 92%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/InternalMissing.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/missing/InternalMissing.java
index a4e87e3ef71..a08022be867 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/InternalMissing.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/InternalMissing.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.missing;
+package org.opensearch.search.aggregations.bucket.missing;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.InternalSingleBucketAggregation;
import java.io.IOException;
import java.util.Map;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/Missing.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/Missing.java
similarity index 87%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/Missing.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/missing/Missing.java
index 66d02b5276e..566c4a9b0c7 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/Missing.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/Missing.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.missing;
+package org.opensearch.search.aggregations.bucket.missing;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregation;
/**
* A {@code missing} aggregation. Defines a single bucket of all documents that are missing a specific field.
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregationBuilder.java
index dee2ea3f33e..e9a8bb2159c 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.missing;
+package org.opensearch.search.aggregations.bucket.missing;
import org.opensearch.Version;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregator.java
similarity index 94%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregator.java
index e46919c9678..6dc1d3bbab3 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.missing;
+package org.opensearch.search.aggregations.bucket.missing;
import org.apache.lucene.index.LeafReaderContext;
import org.elasticsearch.index.fielddata.DocValueBits;
@@ -26,8 +26,8 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregator;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregatorFactory.java
index e2ff24201bd..1656400c134 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.missing;
+package org.opensearch.search.aggregations.bucket.missing;
import org.elasticsearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.Aggregator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregatorSupplier.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregatorSupplier.java
index c3e3fdadceb..a774aa1555d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregatorSupplier.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.missing;
+package org.opensearch.search.aggregations.bucket.missing;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/ParsedMissing.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/ParsedMissing.java
similarity index 89%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/ParsedMissing.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/missing/ParsedMissing.java
index 2897372df89..9eea1557db7 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/missing/ParsedMissing.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/missing/ParsedMissing.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.missing;
+package org.opensearch.search.aggregations.bucket.missing;
import org.elasticsearch.common.xcontent.XContentParser;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/InternalNested.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/InternalNested.java
similarity index 92%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/InternalNested.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/InternalNested.java
index b6fc4661402..63848720072 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/InternalNested.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/InternalNested.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.InternalSingleBucketAggregation;
import java.io.IOException;
import java.util.Map;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/InternalReverseNested.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/InternalReverseNested.java
similarity index 92%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/InternalReverseNested.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/InternalReverseNested.java
index bcfd33b58bc..95fab63e4ed 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/InternalReverseNested.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/InternalReverseNested.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.InternalSingleBucketAggregation;
import java.io.IOException;
import java.util.Map;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/Nested.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/Nested.java
similarity index 87%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/Nested.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/Nested.java
index 7ec3b759d90..d96f2f604d4 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/Nested.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/Nested.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregation;
/**
* A {@code nested} aggregation. Defines a single bucket that holds all the nested documents of a specific path.
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregationBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregationBuilder.java
index 7a916851839..751b06bf166 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.opensearch.common.ParsingException;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregator.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregator.java
index 6ea97cf5122..7d5175c63b9 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import com.carrotsearch.hppc.LongArrayList;
@@ -41,8 +41,8 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregator;
import org.opensearch.search.internal.SearchContext;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregatorFactory.java
index 0dd5e8a3dc4..a54375c6f20 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.elasticsearch.index.mapper.ObjectMapper;
import org.elasticsearch.index.query.QueryShardContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ParsedNested.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ParsedNested.java
similarity index 89%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ParsedNested.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ParsedNested.java
index f241675678c..6afa89158c9 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ParsedNested.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ParsedNested.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.elasticsearch.common.xcontent.XContentParser;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ParsedReverseNested.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ParsedReverseNested.java
similarity index 89%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ParsedReverseNested.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ParsedReverseNested.java
index fafed73370c..24b167fb289 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ParsedReverseNested.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ParsedReverseNested.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.elasticsearch.common.xcontent.XContentParser;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNested.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNested.java
similarity index 87%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNested.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNested.java
index 8ad43125fcc..6b98b56efd5 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNested.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNested.java
@@ -17,9 +17,9 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregation;
/**
* A {@code reverse nested} aggregation. Defines a single bucket that holds all the parent documents for a specific nested path.
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregationBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregationBuilder.java
index d0dccb1af8e..aaceb45d749 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.opensearch.common.ParsingException;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregator.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregator.java
index 73422a5e812..3aad1703509 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import com.carrotsearch.hppc.LongIntHashMap;
@@ -34,8 +34,8 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregator;
import org.opensearch.search.internal.SearchContext;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregatorFactory.java
index 24e684c7d9f..a4818dfaa79 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.elasticsearch.index.mapper.ObjectMapper;
import org.elasticsearch.index.query.QueryShardContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/package-info b/server/src/main/java/org/opensearch/search/aggregations/bucket/package-info
similarity index 100%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/package-info
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/package-info
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/AbstractRangeAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/AbstractRangeAggregatorFactory.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/AbstractRangeAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/AbstractRangeAggregatorFactory.java
index 672e64a3cd2..e03789d22e5 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/AbstractRangeAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/AbstractRangeAggregatorFactory.java
@@ -17,15 +17,15 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.AggregatorFactory;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Range;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Unmapped;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregator.Range;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregator.Unmapped;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSource.Numeric;
import org.opensearch.search.aggregations.support.ValuesSourceAggregatorFactory;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/AbstractRangeBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/AbstractRangeBuilder.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/AbstractRangeBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/AbstractRangeBuilder.java
index 5bad386f1d5..133acf6260f 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/AbstractRangeBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/AbstractRangeBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.apache.lucene.util.InPlaceMergeSorter;
import org.opensearch.common.io.stream.StreamInput;
@@ -25,7 +25,7 @@ import org.opensearch.common.io.stream.StreamOutput;
import org.opensearch.common.io.stream.Writeable;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.search.aggregations.AggregatorFactories;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Range;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregator.Range;
import org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder;
import org.opensearch.search.aggregations.support.ValuesSourceType;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/BinaryRangeAggregator.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/BinaryRangeAggregator.java
index a9419f9a5b7..9904391b7ec 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/BinaryRangeAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.SortedSetDocValues;
@@ -30,7 +30,7 @@ import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/BinaryRangeAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/BinaryRangeAggregatorFactory.java
index f8e9e5517aa..4ae0289a2a0 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/BinaryRangeAggregatorFactory.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.Aggregator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/DateRangeAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/DateRangeAggregationBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/DateRangeAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/DateRangeAggregationBuilder.java
index 234f83c8619..4c44290c2ea 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/DateRangeAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/DateRangeAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.common.xcontent.ObjectParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/DateRangeAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/DateRangeAggregatorFactory.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/DateRangeAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/DateRangeAggregatorFactory.java
index 799a41fa6be..b0950bc05fb 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/DateRangeAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/DateRangeAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.AggregatorFactories;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/GeoDistanceAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/GeoDistanceAggregationBuilder.java
index feadd4be84e..a6008120e4b 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/GeoDistanceAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.elasticsearch.common.ParseField;
import org.opensearch.common.ParsingException;
@@ -48,9 +48,9 @@ import java.util.List;
import java.util.Map;
import java.util.Objects;
-import static org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Range.FROM_FIELD;
-import static org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Range.KEY_FIELD;
-import static org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Range.TO_FIELD;
+import static org.opensearch.search.aggregations.bucket.range.RangeAggregator.Range.FROM_FIELD;
+import static org.opensearch.search.aggregations.bucket.range.RangeAggregator.Range.KEY_FIELD;
+import static org.opensearch.search.aggregations.bucket.range.RangeAggregator.Range.TO_FIELD;
public class GeoDistanceAggregationBuilder extends ValuesSourceAggregationBuilder {
public static final String NAME = "geo_distance";
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/GeoDistanceAggregatorSupplier.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceAggregatorSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/GeoDistanceAggregatorSupplier.java
index dc6a57bcd7e..a7cdf09afaa 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/GeoDistanceAggregatorSupplier.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.common.geo.GeoDistance;
import org.opensearch.common.unit.DistanceUnit;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceRangeAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/GeoDistanceRangeAggregatorFactory.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceRangeAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/GeoDistanceRangeAggregatorFactory.java
index bb2b4f3430b..a826a5ec0d4 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/GeoDistanceRangeAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/GeoDistanceRangeAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.SortedNumericDocValues;
@@ -33,7 +33,7 @@ import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.AggregatorFactory;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
-import org.elasticsearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder.Range;
+import org.opensearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder.Range;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceAggregatorFactory;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalBinaryRange.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalBinaryRange.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalBinaryRange.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalBinaryRange.java
index 8cb6b01a825..90bca8e5cee 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalBinaryRange.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalBinaryRange.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.apache.lucene.util.BytesRef;
import org.opensearch.Version;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalDateRange.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalDateRange.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalDateRange.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalDateRange.java
index 9850300510c..6a6ab19da0b 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalDateRange.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalDateRange.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.search.DocValueFormat;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalGeoDistance.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalGeoDistance.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalGeoDistance.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalGeoDistance.java
index cf9361d2209..d37c63d4f5e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalGeoDistance.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalGeoDistance.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.search.DocValueFormat;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalRange.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalRange.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalRange.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalRange.java
index 696944a7d65..7dc9f9450ea 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/InternalRange.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/InternalRange.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.Version;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/IpRangeAggregationBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/IpRangeAggregationBuilder.java
index 63a0cdad6ee..887e908526e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/IpRangeAggregationBuilder.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.apache.lucene.document.InetAddressPoint;
import org.apache.lucene.util.BytesRef;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/IpRangeAggregatorSupplier.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregatorSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/IpRangeAggregatorSupplier.java
index 08cd0dd3819..e02aec45aa9 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/IpRangeAggregatorSupplier.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.Aggregator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedBinaryRange.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedBinaryRange.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedBinaryRange.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedBinaryRange.java
index 817cf54fc5a..7b4baf5623f 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedBinaryRange.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedBinaryRange.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentBuilder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedDateRange.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedDateRange.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedDateRange.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedDateRange.java
index 3028aec4af2..b0f32772ddc 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedDateRange.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedDateRange.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedGeoDistance.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedGeoDistance.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedGeoDistance.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedGeoDistance.java
index 5d4afb1e3f0..8479c893816 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedGeoDistance.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedGeoDistance.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedRange.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedRange.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedRange.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedRange.java
index b6ccd40a686..16546623a03 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/ParsedRange.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/ParsedRange.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.elasticsearch.common.CheckedFunction;
import org.elasticsearch.common.xcontent.ObjectParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/Range.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/Range.java
similarity index 93%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/Range.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/Range.java
index b16fc81cdb1..236e8cd6853 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/Range.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/Range.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.util.List;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregationBuilder.java
index fb8e8bc7771..7cd8a79cf09 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.common.xcontent.ObjectParser;
@@ -26,7 +26,7 @@ import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.AggregatorFactory;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Range;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregator.Range;
import org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import org.opensearch.search.aggregations.support.ValuesSourceRegistry;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregator.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregator.java
index 1c33ee3216f..e9e3765250c 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.ScoreMode;
@@ -40,7 +40,7 @@ import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
import org.elasticsearch.search.aggregations.NonCollectingAggregator;
-import org.elasticsearch.search.aggregations.bucket.BucketsAggregator;
+import org.opensearch.search.aggregations.bucket.BucketsAggregator;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.internal.SearchContext;
@@ -335,10 +335,10 @@ public class RangeAggregator extends BucketsAggregator {
@Override
public InternalAggregation buildEmptyAggregation() {
InternalAggregations subAggs = buildEmptySubAggregations();
- List buckets = new ArrayList<>(ranges.length);
+ List buckets = new ArrayList<>(ranges.length);
for (int i = 0; i < ranges.length; i++) {
Range range = ranges[i];
- org.elasticsearch.search.aggregations.bucket.range.Range.Bucket bucket =
+ org.opensearch.search.aggregations.bucket.range.Range.Bucket bucket =
rangeFactory.createBucket(range.key, range.from, range.to, 0, subAggs, keyed, format);
buckets.add(bucket);
}
@@ -375,7 +375,7 @@ public class RangeAggregator extends BucketsAggregator {
@Override
public InternalAggregation buildEmptyAggregation() {
InternalAggregations subAggs = buildEmptySubAggregations();
- List buckets = new ArrayList<>(ranges.length);
+ List buckets = new ArrayList<>(ranges.length);
for (RangeAggregator.Range range : ranges) {
buckets.add(factory.createBucket(range.key, range.from, range.to, 0, subAggs, keyed, format));
}
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorFactory.java
similarity index 89%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorFactory.java
index 2029316eb06..101f7df3144 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorFactory.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.AggregatorFactory;
-import org.elasticsearch.search.aggregations.bucket.range.InternalRange.Factory;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Range;
+import org.opensearch.search.aggregations.bucket.range.InternalRange.Factory;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregator.Range;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorSupplier.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorSupplier.java
index 33c28884219..68fb0ce8fda 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorSupplier.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.Aggregator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/BestDocsDeferringCollector.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/BestDocsDeferringCollector.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/BestDocsDeferringCollector.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/BestDocsDeferringCollector.java
index 2c9cf0f005b..54e314b978e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/BestDocsDeferringCollector.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/BestDocsDeferringCollector.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.CollectionTerminatedException;
@@ -36,7 +36,7 @@ import org.elasticsearch.common.util.ObjectArray;
import org.elasticsearch.search.aggregations.BucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.MultiBucketCollector;
-import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector;
+import org.opensearch.search.aggregations.bucket.DeferringBucketCollector;
import java.io.IOException;
import java.util.ArrayList;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilder.java
index 46e00807bba..f924a6f9d51 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregatorFactory.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregatorFactory.java
index d162060647c..e8a612abf28 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.elasticsearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.Aggregator;
@@ -26,7 +26,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactory;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.NonCollectingAggregator;
-import org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregator.ExecutionMode;
+import org.opensearch.search.aggregations.bucket.sampler.SamplerAggregator.ExecutionMode;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSourceAggregatorFactory;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregatorSupplier.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregatorSupplier.java
index ce51b5508fc..37e2ba138a1 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregatorSupplier.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedBytesHashSamplerAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedBytesHashSamplerAggregator.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedBytesHashSamplerAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedBytesHashSamplerAggregator.java
index 10b48d9c154..2d25497de29 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedBytesHashSamplerAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedBytesHashSamplerAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.NumericDocValues;
@@ -30,7 +30,7 @@ import org.elasticsearch.index.fielddata.AbstractNumericDocValues;
import org.elasticsearch.index.fielddata.SortedBinaryDocValues;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
-import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector;
+import org.opensearch.search.aggregations.bucket.DeferringBucketCollector;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedMapSamplerAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedMapSamplerAggregator.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedMapSamplerAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedMapSamplerAggregator.java
index 63294b79380..f2d0e9f7c8b 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedMapSamplerAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedMapSamplerAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.NumericDocValues;
@@ -32,7 +32,7 @@ import org.elasticsearch.index.fielddata.AbstractNumericDocValues;
import org.elasticsearch.index.fielddata.SortedBinaryDocValues;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
-import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector;
+import org.opensearch.search.aggregations.bucket.DeferringBucketCollector;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedNumericSamplerAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedNumericSamplerAggregator.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedNumericSamplerAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedNumericSamplerAggregator.java
index 2fc847c6be1..0e56704c6ec 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedNumericSamplerAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedNumericSamplerAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.NumericDocValues;
@@ -29,7 +29,7 @@ import org.opensearch.OpenSearchException;
import org.elasticsearch.index.fielddata.AbstractNumericDocValues;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
-import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector;
+import org.opensearch.search.aggregations.bucket.DeferringBucketCollector;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedOrdinalsSamplerAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedOrdinalsSamplerAggregator.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedOrdinalsSamplerAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedOrdinalsSamplerAggregator.java
index 8b263e78d43..36c98c68622 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedOrdinalsSamplerAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedOrdinalsSamplerAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.apache.lucene.index.DocValues;
import org.apache.lucene.index.LeafReaderContext;
@@ -30,7 +30,7 @@ import org.apache.lucene.search.TopDocsCollector;
import org.elasticsearch.index.fielddata.AbstractNumericDocValues;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
-import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector;
+import org.opensearch.search.aggregations.bucket.DeferringBucketCollector;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/InternalSampler.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/InternalSampler.java
similarity index 93%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/InternalSampler.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/InternalSampler.java
index 2d1f44d5d47..3f2d809de93 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/InternalSampler.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/InternalSampler.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.InternalSingleBucketAggregation;
import java.io.IOException;
import java.util.Map;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/ParsedSampler.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/ParsedSampler.java
similarity index 89%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/ParsedSampler.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/ParsedSampler.java
index 3d5e946bead..fd1a7035105 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/ParsedSampler.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/ParsedSampler.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.elasticsearch.common.xcontent.XContentParser;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/Sampler.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/Sampler.java
similarity index 88%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/Sampler.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/Sampler.java
index 19d3569aeed..3da4d2aa59d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/Sampler.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/Sampler.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregation;
/**
* A {@code filter} aggregation that defines a single bucket to hold a sample of
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregationBuilder.java
index 5cb70c86ecd..97d87872585 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.opensearch.common.ParsingException;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregator.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregator.java
index 818aaf62d3d..b0b7b8e356f 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.DiversifiedTopDocsCollector;
@@ -30,9 +30,9 @@ import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
-import org.elasticsearch.search.aggregations.bucket.DeferableBucketAggregator;
-import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator;
+import org.opensearch.search.aggregations.bucket.DeferableBucketAggregator;
+import org.opensearch.search.aggregations.bucket.DeferringBucketCollector;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregator;
import org.opensearch.search.aggregations.support.ValuesSourceConfig;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregatorFactory.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregatorFactory.java
index f811cb588c7..91c223aa157 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.elasticsearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.Aggregator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/UnmappedSampler.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/UnmappedSampler.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/UnmappedSampler.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/UnmappedSampler.java
index 10e393d8516..2d0825d8552 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/UnmappedSampler.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/sampler/UnmappedSampler.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.common.xcontent.XContentBuilder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractRareTermsAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/AbstractRareTermsAggregator.java
similarity index 92%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractRareTermsAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/AbstractRareTermsAggregator.java
index 55a831de096..1eaa9cbe5df 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractRareTermsAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/AbstractRareTermsAggregator.java
@@ -17,17 +17,17 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.common.util.SetBackedScalingCuckooFilter;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.BucketOrder;
-import org.elasticsearch.search.aggregations.bucket.DeferableBucketAggregator;
-import org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector;
-import org.elasticsearch.search.aggregations.bucket.MergingBucketsDeferringCollector;
-import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregator;
+import org.opensearch.search.aggregations.bucket.DeferableBucketAggregator;
+import org.opensearch.search.aggregations.bucket.DeferringBucketCollector;
+import org.opensearch.search.aggregations.bucket.MergingBucketsDeferringCollector;
+import org.opensearch.search.aggregations.bucket.nested.NestedAggregator;
import org.opensearch.search.internal.SearchContext;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractStringTermsAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/AbstractStringTermsAggregator.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractStringTermsAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/AbstractStringTermsAggregator.java
index 2df38dcf0e5..b474e218ae7 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/AbstractStringTermsAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/AbstractStringTermsAggregator.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.index.IndexReader;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.BucketOrder;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import org.opensearch.search.internal.ContextIndexSearcher;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/BucketPriorityQueue.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/BucketPriorityQueue.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/BucketPriorityQueue.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/BucketPriorityQueue.java
index a6915cc25df..d754c733e0e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/BucketPriorityQueue.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/BucketPriorityQueue.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.PriorityQueue;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/BucketSignificancePriorityQueue.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/BucketSignificancePriorityQueue.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/BucketSignificancePriorityQueue.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/BucketSignificancePriorityQueue.java
index f24944a83ff..8fb97c3735d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/BucketSignificancePriorityQueue.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/BucketSignificancePriorityQueue.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.PriorityQueue;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/BytesKeyedBucketOrds.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/BytesKeyedBucketOrds.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/BytesKeyedBucketOrds.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/BytesKeyedBucketOrds.java
index e8faa22accc..0f5108ef073 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/BytesKeyedBucketOrds.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/BytesKeyedBucketOrds.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.opensearch.common.lease.Releasable;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/DoubleTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/DoubleTerms.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/DoubleTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/DoubleTerms.java
index c7874d80102..e01eb1d7d2b 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/DoubleTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/DoubleTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java
index 409e2d814b8..3a27f259d8d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.index.DocValues;
import org.apache.lucene.index.IndexReader;
@@ -45,8 +45,8 @@ import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.InternalOrder;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificanceLookup.BackgroundFrequencyForBytes;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.SignificanceLookup.BackgroundFrequencyForBytes;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/IncludeExclude.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/IncludeExclude.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/IncludeExclude.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/IncludeExclude.java
index 9c12493e71c..fe03be55d8a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/IncludeExclude.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/IncludeExclude.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import com.carrotsearch.hppc.BitMixer;
import com.carrotsearch.hppc.LongHashSet;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalMappedRareTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalMappedRareTerms.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalMappedRareTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalMappedRareTerms.java
index 3f5e3babc29..fc7a690a85a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalMappedRareTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalMappedRareTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalMappedSignificantTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalMappedSignificantTerms.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalMappedSignificantTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalMappedSignificantTerms.java
index dfc21e8acd8..09d32e61c05 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalMappedSignificantTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalMappedSignificantTerms.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.opensearch.search.DocValueFormat;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import java.io.IOException;
import java.util.Iterator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalMappedTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalMappedTerms.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalMappedTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalMappedTerms.java
index b611983fd6b..45c7d3a0b46 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalMappedTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalMappedTerms.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalRareTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalRareTerms.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalRareTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalRareTerms.java
index b6b048b7d28..438753ce34e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalRareTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalRareTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalSignificantTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalSignificantTerms.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalSignificantTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalSignificantTerms.java
index d1d0d50d073..774b09ab5f4 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalSignificantTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalSignificantTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
@@ -26,7 +26,7 @@ import org.elasticsearch.search.aggregations.Aggregations;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import java.io.IOException;
import java.util.ArrayList;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalTerms.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalTerms.java
index 4e91bb4d115..3ce352aa505 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/InternalTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.PriorityQueue;
import org.opensearch.Version;
@@ -33,8 +33,8 @@ import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.InternalOrder;
import org.elasticsearch.search.aggregations.KeyComparable;
-import org.elasticsearch.search.aggregations.bucket.IteratorAndCurrent;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.IteratorAndCurrent;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.io.IOException;
import java.util.ArrayList;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongKeyedBucketOrds.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongKeyedBucketOrds.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongKeyedBucketOrds.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongKeyedBucketOrds.java
index b2f49003669..c827b341bd7 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongKeyedBucketOrds.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongKeyedBucketOrds.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.lease.Releasable;
import org.elasticsearch.common.util.BigArrays;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongRareTerms.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongRareTerms.java
index 2f78febc26d..f43e4d05372 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongRareTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTermsAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongRareTermsAggregator.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTermsAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongRareTermsAggregator.java
index d528bf19ef0..7144d82bf66 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTermsAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongRareTermsAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.SortedNumericDocValues;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongTerms.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongTerms.java
index a1bc6c8f6e8..d9e9eef3174 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/LongTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/LongTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/MapStringTermsAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/MapStringTermsAggregator.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/MapStringTermsAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/MapStringTermsAggregator.java
index 5a4eba92c92..72c99690a1d 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/MapStringTermsAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/MapStringTermsAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.ScoreMode;
@@ -37,8 +37,8 @@ import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.InternalOrder;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificanceLookup.BackgroundFrequencyForBytes;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.SignificanceLookup.BackgroundFrequencyForBytes;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/NumericTermsAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/NumericTermsAggregator.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/NumericTermsAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/NumericTermsAggregator.java
index 064e64728f3..3fefe2b2cfb 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/NumericTermsAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/NumericTermsAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.LeafReaderContext;
@@ -39,10 +39,10 @@ import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.InternalOrder;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude.LongFilter;
-import org.elasticsearch.search.aggregations.bucket.terms.LongKeyedBucketOrds.BucketOrdsEnum;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificanceLookup.BackgroundFrequencyForLong;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.IncludeExclude.LongFilter;
+import org.opensearch.search.aggregations.bucket.terms.LongKeyedBucketOrds.BucketOrdsEnum;
+import org.opensearch.search.aggregations.bucket.terms.SignificanceLookup.BackgroundFrequencyForLong;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.internal.ContextIndexSearcher;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedDoubleTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedDoubleTerms.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedDoubleTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedDoubleTerms.java
index 02bc3e636bb..81231a2fc73 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedDoubleTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedDoubleTerms.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentBuilder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedLongRareTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedLongRareTerms.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedLongRareTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedLongRareTerms.java
index 18bace78ecc..4bd500f9bb0 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedLongRareTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedLongRareTerms.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.common.xcontent.ObjectParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedLongTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedLongTerms.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedLongTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedLongTerms.java
index 07185abdcc0..0c72dbdb094 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedLongTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedLongTerms.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentBuilder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedRareTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedRareTerms.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedRareTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedRareTerms.java
index 47b35fe05b1..d199003ee1f 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedRareTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedRareTerms.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.CheckedBiConsumer;
import org.elasticsearch.common.CheckedFunction;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedSignificantLongTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedSignificantLongTerms.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedSignificantLongTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedSignificantLongTerms.java
index 2fe96feab0e..b6e4dbe05e3 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedSignificantLongTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedSignificantLongTerms.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.common.xcontent.ObjectParser;
import org.elasticsearch.common.xcontent.XContentBuilder;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedSignificantStringTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedSignificantStringTerms.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedSignificantStringTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedSignificantStringTerms.java
index 50da8204d4b..1ce6464aa64 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedSignificantStringTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedSignificantStringTerms.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.elasticsearch.common.xcontent.ObjectParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedSignificantTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedSignificantTerms.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedSignificantTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedSignificantTerms.java
index c7b026d45c1..1b8e1a3e0b1 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedSignificantTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedSignificantTerms.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.CheckedBiConsumer;
import org.elasticsearch.common.CheckedFunction;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedStringRareTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedStringRareTerms.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedStringRareTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedStringRareTerms.java
index 7a999bb85a0..123ea3e8583 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedStringRareTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedStringRareTerms.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import java.io.IOException;
import java.nio.CharBuffer;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedStringTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedStringTerms.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedStringTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedStringTerms.java
index 29304ec1871..8ca30ef0f7e 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedStringTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedStringTerms.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.elasticsearch.common.xcontent.ObjectParser;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedTerms.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedTerms.java
index 027d19c3931..284178bd600 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/ParsedTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/ParsedTerms.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.CheckedBiConsumer;
import org.elasticsearch.common.CheckedFunction;
@@ -34,8 +34,8 @@ import java.util.ArrayList;
import java.util.List;
import java.util.function.Supplier;
-import static org.elasticsearch.search.aggregations.bucket.terms.InternalTerms.DOC_COUNT_ERROR_UPPER_BOUND_FIELD_NAME;
-import static org.elasticsearch.search.aggregations.bucket.terms.InternalTerms.SUM_OF_OTHER_DOC_COUNTS;
+import static org.opensearch.search.aggregations.bucket.terms.InternalTerms.DOC_COUNT_ERROR_UPPER_BOUND_FIELD_NAME;
+import static org.opensearch.search.aggregations.bucket.terms.InternalTerms.SUM_OF_OTHER_DOC_COUNTS;
public abstract class ParsedTerms extends ParsedMultiBucketAggregation implements Terms {
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTerms.java
similarity index 90%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTerms.java
index 22485147832..85ebf795333 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTerms.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.util.List;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregationBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregationBuilder.java
index a24eb9077ed..0e24f1d69f6 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregationBuilder.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.Version;
import org.elasticsearch.common.ParseField;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregatorFactory.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregatorFactory.java
index d9e486500ec..9f57919115b 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.common.ParseField;
import org.opensearch.common.logging.DeprecationLogger;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregatorSupplier.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregatorSupplier.java
index 31d3e7125b1..09a8a37d5fb 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregatorSupplier.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.Aggregator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificanceLookup.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificanceLookup.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificanceLookup.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificanceLookup.java
index 3d8c0c49bca..3d7aad49407 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificanceLookup.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificanceLookup.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.PostingsEnum;
@@ -41,7 +41,7 @@ import org.opensearch.index.query.QueryBuilder;
import org.opensearch.index.query.QueryShardContext;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantLongTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantLongTerms.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantLongTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantLongTerms.java
index 3f9a1ec3ee0..e69082e1217 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantLongTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantLongTerms.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import java.io.IOException;
import java.util.List;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantStringTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantStringTerms.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantStringTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantStringTerms.java
index d55a690b423..50ebee4b006 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantStringTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantStringTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.opensearch.common.io.stream.StreamInput;
@@ -24,7 +24,7 @@ import org.opensearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import java.io.IOException;
import java.util.List;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTerms.java
similarity index 94%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTerms.java
index 88f0b6d0a5b..d3b056e693c 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTerms.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.util.List;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregationBuilder.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregationBuilder.java
index 249bbe666e3..7b864699b52 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregationBuilder.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.Version;
import org.elasticsearch.common.ParseField;
@@ -31,9 +31,9 @@ import org.elasticsearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.AggregatorFactory;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.JLHScore;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.JLHScore;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder;
import org.opensearch.search.aggregations.support.ValuesSourceAggregatorFactory;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregatorFactory.java
index 9265ac3607c..17b075ee89a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.common.ParseField;
import org.opensearch.common.logging.DeprecationLogger;
@@ -31,9 +31,9 @@ import org.elasticsearch.search.aggregations.AggregatorFactory;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.NonCollectingAggregator;
-import org.elasticsearch.search.aggregations.bucket.BucketUtils;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.BucketUtils;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceAggregatorFactory;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregatorSupplier.java
similarity index 92%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregatorSupplier.java
index 15588d724e7..d91af452ceb 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregatorSupplier.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTextAggregationBuilder.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTextAggregationBuilder.java
index 7ca66704b58..77677120930 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTextAggregationBuilder.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.common.ParseField;
import org.opensearch.common.io.stream.StreamInput;
@@ -33,8 +33,8 @@ import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregationInitializationException;
import org.elasticsearch.search.aggregations.AggregatorFactories.Builder;
import org.elasticsearch.search.aggregations.AggregatorFactory;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import java.io.IOException;
import java.util.Arrays;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTextAggregatorFactory.java
similarity index 96%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTextAggregatorFactory.java
index 06996572994..3a9e30c80aa 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/SignificantTextAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
@@ -42,11 +42,11 @@ import org.elasticsearch.search.aggregations.AggregatorFactory;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.search.aggregations.LeafBucketCollectorBase;
-import org.elasticsearch.search.aggregations.bucket.BucketUtils;
-import org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude.StringFilter;
-import org.elasticsearch.search.aggregations.bucket.terms.MapStringTermsAggregator.CollectConsumer;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.BucketUtils;
+import org.opensearch.search.aggregations.bucket.terms.IncludeExclude.StringFilter;
+import org.opensearch.search.aggregations.bucket.terms.MapStringTermsAggregator.CollectConsumer;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import org.opensearch.search.internal.SearchContext;
import org.opensearch.search.lookup.SourceLookup;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/StringRareTerms.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/StringRareTerms.java
index 0b51e284362..c86d64242c3 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/StringRareTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTermsAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/StringRareTermsAggregator.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTermsAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/StringRareTermsAggregator.java
index f1dc8a2791c..aec4e2e2b40 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTermsAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/StringRareTermsAggregator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.util.BytesRef;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/StringTerms.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/StringTerms.java
index f6e86f6bf54..95597d8ad87 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/StringTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/StringTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/Terms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/Terms.java
similarity index 93%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/Terms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/Terms.java
index f14ecae7d16..e17b1a6b331 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/Terms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/Terms.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.util.List;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregationBuilder.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregationBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregationBuilder.java
index f1e8ac2f954..c615068b6e9 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregationBuilder.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.Version;
import org.elasticsearch.common.ParseField;
@@ -34,7 +34,7 @@ import org.elasticsearch.search.aggregations.AggregatorFactory;
import org.elasticsearch.search.aggregations.BucketOrder;
import org.elasticsearch.search.aggregations.InternalOrder;
import org.elasticsearch.search.aggregations.InternalOrder.CompoundOrder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder;
import org.opensearch.search.aggregations.support.ValuesSourceAggregatorFactory;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregator.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregator.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregator.java
index 5479647fcba..29fe66cc4e0 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregator.java
@@ -18,7 +18,7 @@
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.OpenSearchException;
import org.opensearch.common.io.stream.StreamInput;
@@ -32,8 +32,8 @@ import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.BucketOrder;
import org.elasticsearch.search.aggregations.InternalOrder.Aggregation;
import org.elasticsearch.search.aggregations.InternalOrder.CompoundOrder;
-import org.elasticsearch.search.aggregations.bucket.DeferableBucketAggregator;
-import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregator;
+import org.opensearch.search.aggregations.bucket.DeferableBucketAggregator;
+import org.opensearch.search.aggregations.bucket.nested.NestedAggregator;
import org.opensearch.search.aggregations.support.AggregationPath;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorFactory.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorFactory.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorFactory.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorFactory.java
index 0f2bacccc33..23315a6516a 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorFactory.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorFactory.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.search.IndexSearcher;
import org.elasticsearch.common.ParseField;
@@ -34,9 +34,9 @@ import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalOrder;
import org.elasticsearch.search.aggregations.InternalOrder.CompoundOrder;
import org.elasticsearch.search.aggregations.NonCollectingAggregator;
-import org.elasticsearch.search.aggregations.bucket.BucketUtils;
-import org.elasticsearch.search.aggregations.bucket.terms.NumericTermsAggregator.ResultStrategy;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
+import org.opensearch.search.aggregations.bucket.BucketUtils;
+import org.opensearch.search.aggregations.bucket.terms.NumericTermsAggregator.ResultStrategy;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregator.BucketCountThresholds;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.aggregations.support.ValuesSourceAggregatorFactory;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorSupplier.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorSupplier.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorSupplier.java
index aa3dcb82422..f419e8231e8 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorSupplier.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.Aggregator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/UnmappedRareTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/UnmappedRareTerms.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/UnmappedRareTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/UnmappedRareTerms.java
index 2a35861106c..44be2d252fd 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/UnmappedRareTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/UnmappedRareTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/UnmappedSignificantTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/UnmappedSignificantTerms.java
similarity index 97%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/UnmappedSignificantTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/UnmappedSignificantTerms.java
index 4c27f2df389..238f77a3a62 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/UnmappedSignificantTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/UnmappedSignificantTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.opensearch.common.io.stream.StreamInput;
@@ -25,7 +25,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import java.io.IOException;
import java.util.Iterator;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/UnmappedTerms.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/UnmappedTerms.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/UnmappedTerms.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/UnmappedTerms.java
index ad06323bd6d..571b16d5424 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/UnmappedTerms.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/UnmappedTerms.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/ChiSquare.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/ChiSquare.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/ChiSquare.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/ChiSquare.java
index 9cb90220f94..d0e93b616e2 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/ChiSquare.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/ChiSquare.java
@@ -18,7 +18,7 @@
*/
-package org.elasticsearch.search.aggregations.bucket.terms.heuristic;
+package org.opensearch.search.aggregations.bucket.terms.heuristic;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/GND.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/GND.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/GND.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/GND.java
index 502c2d70696..5c42f6f21fe 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/GND.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/GND.java
@@ -18,7 +18,7 @@
*/
-package org.elasticsearch.search.aggregations.bucket.terms.heuristic;
+package org.opensearch.search.aggregations.bucket.terms.heuristic;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/JLHScore.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/JLHScore.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/JLHScore.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/JLHScore.java
index 125d453ae4f..c0b95ccb1bb 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/JLHScore.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/JLHScore.java
@@ -18,7 +18,7 @@
*/
-package org.elasticsearch.search.aggregations.bucket.terms.heuristic;
+package org.opensearch.search.aggregations.bucket.terms.heuristic;
import java.io.IOException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/MutualInformation.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/MutualInformation.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/MutualInformation.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/MutualInformation.java
index 45db6986ec5..2a67675f52c 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/MutualInformation.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/MutualInformation.java
@@ -18,7 +18,7 @@
*/
-package org.elasticsearch.search.aggregations.bucket.terms.heuristic;
+package org.opensearch.search.aggregations.bucket.terms.heuristic;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/NXYSignificanceHeuristic.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/NXYSignificanceHeuristic.java
similarity index 99%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/NXYSignificanceHeuristic.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/NXYSignificanceHeuristic.java
index 51c0931c2d1..222b86eddbb 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/NXYSignificanceHeuristic.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/NXYSignificanceHeuristic.java
@@ -18,7 +18,7 @@
*/
-package org.elasticsearch.search.aggregations.bucket.terms.heuristic;
+package org.opensearch.search.aggregations.bucket.terms.heuristic;
import org.elasticsearch.common.ParseField;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/PercentageScore.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/PercentageScore.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/PercentageScore.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/PercentageScore.java
index a881e9540aa..e9d4230385c 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/PercentageScore.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/PercentageScore.java
@@ -18,7 +18,7 @@
*/
-package org.elasticsearch.search.aggregations.bucket.terms.heuristic;
+package org.opensearch.search.aggregations.bucket.terms.heuristic;
import org.elasticsearch.OpenSearchParseException;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/ScriptHeuristic.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/ScriptHeuristic.java
similarity index 98%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/ScriptHeuristic.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/ScriptHeuristic.java
index 521f8730555..9eb366182ce 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/ScriptHeuristic.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/ScriptHeuristic.java
@@ -18,7 +18,7 @@
*/
-package org.elasticsearch.search.aggregations.bucket.terms.heuristic;
+package org.opensearch.search.aggregations.bucket.terms.heuristic;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristic.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristic.java
similarity index 95%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristic.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristic.java
index dceac6f0f90..c3dce8854d7 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristic.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristic.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms.heuristic;
+package org.opensearch.search.aggregations.bucket.terms.heuristic;
import org.opensearch.common.io.stream.NamedWriteable;
import org.elasticsearch.common.xcontent.ToXContentFragment;
import org.elasticsearch.index.query.QueryShardContext;
import org.elasticsearch.search.aggregations.InternalAggregation;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantTerms;
+import org.opensearch.search.aggregations.bucket.terms.SignificantTerms;
/**
* Heuristic for that {@link SignificantTerms} uses to pick out significant terms.
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristicBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristicBuilder.java
similarity index 93%
rename from server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristicBuilder.java
rename to server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristicBuilder.java
index ffe94a34a03..a82efbdf421 100644
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristicBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/terms/heuristic/SignificanceHeuristicBuilder.java
@@ -18,7 +18,7 @@
*/
-package org.elasticsearch.search.aggregations.bucket.terms.heuristic;
+package org.opensearch.search.aggregations.bucket.terms.heuristic;
import org.elasticsearch.common.xcontent.ToXContentFragment;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/metrics/GeoGridAggregatorSupplier.java b/server/src/main/java/org/opensearch/search/aggregations/metrics/GeoGridAggregatorSupplier.java
index a85c0f50d65..0c2906e322f 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/metrics/GeoGridAggregatorSupplier.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/metrics/GeoGridAggregatorSupplier.java
@@ -23,7 +23,7 @@ import org.opensearch.common.geo.GeoBoundingBox;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
import org.elasticsearch.search.aggregations.CardinalityUpperBound;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregator;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoGridAggregator;
import org.opensearch.search.aggregations.support.ValuesSource;
import org.opensearch.search.internal.SearchContext;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/pipeline/BucketHelpers.java b/server/src/main/java/org/opensearch/search/aggregations/pipeline/BucketHelpers.java
index ecdb052fa7d..eec2afd1529 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/pipeline/BucketHelpers.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/pipeline/BucketHelpers.java
@@ -29,7 +29,7 @@ import org.elasticsearch.common.xcontent.XContentLocation;
import org.elasticsearch.search.aggregations.AggregationExecutionException;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.InvalidAggregationPathException;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import org.opensearch.search.aggregations.metrics.InternalNumericMetricsAggregation;
import org.opensearch.search.aggregations.support.AggregationPath;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/pipeline/BucketSortPipelineAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/pipeline/BucketSortPipelineAggregator.java
index 1530515954f..8064b538518 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/pipeline/BucketSortPipelineAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/pipeline/BucketSortPipelineAggregator.java
@@ -24,7 +24,7 @@ import org.opensearch.common.io.stream.StreamOutput;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import org.opensearch.search.aggregations.pipeline.BucketHelpers.GapPolicy;
import org.opensearch.search.sort.FieldSortBuilder;
import org.opensearch.search.sort.SortOrder;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/pipeline/CumulativeSumPipelineAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/pipeline/CumulativeSumPipelineAggregator.java
index 96317855cfd..c4417acbaee 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/pipeline/CumulativeSumPipelineAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/pipeline/CumulativeSumPipelineAggregator.java
@@ -26,8 +26,8 @@ import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramFactory;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramFactory;
import org.opensearch.search.aggregations.pipeline.BucketHelpers.GapPolicy;
import java.io.IOException;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/pipeline/DerivativePipelineAggregationBuilder.java b/server/src/main/java/org/opensearch/search/aggregations/pipeline/DerivativePipelineAggregationBuilder.java
index 26fbe131718..d0d25c7191c 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/pipeline/DerivativePipelineAggregationBuilder.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/pipeline/DerivativePipelineAggregationBuilder.java
@@ -28,8 +28,8 @@ import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentParser;
import org.opensearch.search.DocValueFormat;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramInterval;
import org.opensearch.search.aggregations.pipeline.BucketHelpers.GapPolicy;
import java.io.IOException;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/pipeline/DerivativePipelineAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/pipeline/DerivativePipelineAggregator.java
index 04a9623a75d..715aa69f329 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/pipeline/DerivativePipelineAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/pipeline/DerivativePipelineAggregator.java
@@ -26,8 +26,8 @@ import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramFactory;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramFactory;
import org.opensearch.search.aggregations.pipeline.BucketHelpers.GapPolicy;
import java.io.IOException;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/pipeline/MovAvgPipelineAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/pipeline/MovAvgPipelineAggregator.java
index a80552e9c01..5771929f946 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/pipeline/MovAvgPipelineAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/pipeline/MovAvgPipelineAggregator.java
@@ -27,9 +27,9 @@ import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramFactory;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramFactory;
import org.opensearch.search.aggregations.pipeline.BucketHelpers.GapPolicy;
import java.io.IOException;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/pipeline/MovFnPipelineAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/pipeline/MovFnPipelineAggregator.java
index 3eacaec39f6..6b4e11c4583 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/pipeline/MovFnPipelineAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/pipeline/MovFnPipelineAggregator.java
@@ -27,8 +27,8 @@ import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramFactory;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramFactory;
import java.io.IOException;
import java.util.ArrayList;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/pipeline/SerialDiffPipelineAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/pipeline/SerialDiffPipelineAggregator.java
index 6468cec2d15..181d1669a2f 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/pipeline/SerialDiffPipelineAggregator.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/pipeline/SerialDiffPipelineAggregator.java
@@ -28,8 +28,8 @@ import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramFactory;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramFactory;
import org.opensearch.search.aggregations.pipeline.BucketHelpers.GapPolicy;
import java.io.IOException;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/support/AggregationInspectionHelper.java b/server/src/main/java/org/opensearch/search/aggregations/support/AggregationInspectionHelper.java
index c4c80a1f70c..2cfae4b57bf 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/support/AggregationInspectionHelper.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/support/AggregationInspectionHelper.java
@@ -18,26 +18,26 @@
*/
package org.opensearch.search.aggregations.support;
-import org.elasticsearch.search.aggregations.bucket.adjacency.InternalAdjacencyMatrix;
-import org.elasticsearch.search.aggregations.bucket.composite.InternalComposite;
-import org.elasticsearch.search.aggregations.bucket.filter.InternalFilter;
-import org.elasticsearch.search.aggregations.bucket.filter.InternalFilters;
-import org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoGrid;
-import org.elasticsearch.search.aggregations.bucket.global.InternalGlobal;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalVariableWidthHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalAutoDateHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalHistogram;
-import org.elasticsearch.search.aggregations.bucket.missing.InternalMissing;
-import org.elasticsearch.search.aggregations.bucket.nested.InternalNested;
-import org.elasticsearch.search.aggregations.bucket.nested.InternalReverseNested;
-import org.elasticsearch.search.aggregations.bucket.range.InternalRange;
-import org.elasticsearch.search.aggregations.bucket.sampler.InternalSampler;
-import org.elasticsearch.search.aggregations.bucket.sampler.UnmappedSampler;
-import org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.InternalTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.UnmappedSignificantTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.UnmappedTerms;
+import org.opensearch.search.aggregations.bucket.adjacency.InternalAdjacencyMatrix;
+import org.opensearch.search.aggregations.bucket.composite.InternalComposite;
+import org.opensearch.search.aggregations.bucket.filter.InternalFilter;
+import org.opensearch.search.aggregations.bucket.filter.InternalFilters;
+import org.opensearch.search.aggregations.bucket.geogrid.InternalGeoGrid;
+import org.opensearch.search.aggregations.bucket.global.InternalGlobal;
+import org.opensearch.search.aggregations.bucket.histogram.InternalVariableWidthHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.InternalAutoDateHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.InternalDateHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.InternalHistogram;
+import org.opensearch.search.aggregations.bucket.missing.InternalMissing;
+import org.opensearch.search.aggregations.bucket.nested.InternalNested;
+import org.opensearch.search.aggregations.bucket.nested.InternalReverseNested;
+import org.opensearch.search.aggregations.bucket.range.InternalRange;
+import org.opensearch.search.aggregations.bucket.sampler.InternalSampler;
+import org.opensearch.search.aggregations.bucket.sampler.UnmappedSampler;
+import org.opensearch.search.aggregations.bucket.terms.InternalSignificantTerms;
+import org.opensearch.search.aggregations.bucket.terms.InternalTerms;
+import org.opensearch.search.aggregations.bucket.terms.UnmappedSignificantTerms;
+import org.opensearch.search.aggregations.bucket.terms.UnmappedTerms;
import org.opensearch.search.aggregations.metrics.InternalAvg;
import org.opensearch.search.aggregations.metrics.InternalCardinality;
import org.opensearch.search.aggregations.metrics.InternalExtendedStats;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/support/AggregationPath.java b/server/src/main/java/org/opensearch/search/aggregations/support/AggregationPath.java
index 1665d6abe4e..3e8c4215688 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/support/AggregationPath.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/support/AggregationPath.java
@@ -24,7 +24,7 @@ import org.elasticsearch.search.aggregations.AggregationExecutionException;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.Aggregator.BucketComparator;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator;
+import org.opensearch.search.aggregations.bucket.SingleBucketAggregator;
import org.opensearch.search.aggregations.metrics.NumericMetricsAggregator;
import org.opensearch.search.profile.aggregation.ProfilingAggregator;
import org.opensearch.search.sort.SortOrder;
diff --git a/server/src/main/java/org/opensearch/search/aggregations/support/package-info.java b/server/src/main/java/org/opensearch/search/aggregations/support/package-info.java
index ce66b079837..814c301571f 100644
--- a/server/src/main/java/org/opensearch/search/aggregations/support/package-info.java
+++ b/server/src/main/java/org/opensearch/search/aggregations/support/package-info.java
@@ -32,7 +32,7 @@ package org.opensearch.search.aggregations.support;
* output). A class hierarchy defines the type of values returned by the source. The top level sub-classes define type-specific behavior,
* such as {@link org.opensearch.search.aggregations.support.ValuesSource.Numeric#isFloatingPoint()}. Second level subclasses are
* then specialized based on where they read values from, e.g. script or field cases. There are also adapter classes like
- * {@link org.elasticsearch.search.aggregations.bucket.geogrid.CellIdSource} which do run-time conversion from one type to another, often
+ * {@link org.opensearch.search.aggregations.bucket.geogrid.CellIdSource} which do run-time conversion from one type to another, often
* dependent on a user specified parameter (precision in that case).
*
*
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/AggregationsTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/AggregationsTests.java
index 46921574dae..90c8c9f147d 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/AggregationsTests.java
+++ b/server/src/test/java/org/elasticsearch/search/aggregations/AggregationsTests.java
@@ -31,32 +31,32 @@ import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.common.xcontent.XContentType;
import org.opensearch.rest.action.search.RestSearchAction;
import org.elasticsearch.search.aggregations.Aggregation.CommonFields;
-import org.elasticsearch.search.aggregations.bucket.adjacency.InternalAdjacencyMatrixTests;
-import org.elasticsearch.search.aggregations.bucket.composite.InternalCompositeTests;
-import org.elasticsearch.search.aggregations.bucket.filter.InternalFilterTests;
-import org.elasticsearch.search.aggregations.bucket.filter.InternalFiltersTests;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoHashGridTests;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileGridTests;
-import org.elasticsearch.search.aggregations.bucket.global.InternalGlobalTests;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalAutoDateHistogramTests;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogramTests;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalHistogramTests;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalVariableWidthHistogramTests;
-import org.elasticsearch.search.aggregations.bucket.missing.InternalMissingTests;
-import org.elasticsearch.search.aggregations.bucket.nested.InternalNestedTests;
-import org.elasticsearch.search.aggregations.bucket.nested.InternalReverseNestedTests;
-import org.elasticsearch.search.aggregations.bucket.range.InternalBinaryRangeTests;
-import org.elasticsearch.search.aggregations.bucket.range.InternalDateRangeTests;
-import org.elasticsearch.search.aggregations.bucket.range.InternalGeoDistanceTests;
-import org.elasticsearch.search.aggregations.bucket.range.InternalRangeTests;
-import org.elasticsearch.search.aggregations.bucket.sampler.InternalSamplerTests;
-import org.elasticsearch.search.aggregations.bucket.terms.DoubleTermsTests;
-import org.elasticsearch.search.aggregations.bucket.terms.LongRareTermsTests;
-import org.elasticsearch.search.aggregations.bucket.terms.LongTermsTests;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTermsTests;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantStringTermsTests;
-import org.elasticsearch.search.aggregations.bucket.terms.StringRareTermsTests;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTermsTests;
+import org.opensearch.search.aggregations.bucket.adjacency.InternalAdjacencyMatrixTests;
+import org.opensearch.search.aggregations.bucket.composite.InternalCompositeTests;
+import org.opensearch.search.aggregations.bucket.filter.InternalFilterTests;
+import org.opensearch.search.aggregations.bucket.filter.InternalFiltersTests;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoHashGridTests;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoTileGridTests;
+import org.opensearch.search.aggregations.bucket.global.InternalGlobalTests;
+import org.opensearch.search.aggregations.bucket.histogram.InternalAutoDateHistogramTests;
+import org.opensearch.search.aggregations.bucket.histogram.InternalDateHistogramTests;
+import org.opensearch.search.aggregations.bucket.histogram.InternalHistogramTests;
+import org.opensearch.search.aggregations.bucket.histogram.InternalVariableWidthHistogramTests;
+import org.opensearch.search.aggregations.bucket.missing.InternalMissingTests;
+import org.opensearch.search.aggregations.bucket.nested.InternalNestedTests;
+import org.opensearch.search.aggregations.bucket.nested.InternalReverseNestedTests;
+import org.opensearch.search.aggregations.bucket.range.InternalBinaryRangeTests;
+import org.opensearch.search.aggregations.bucket.range.InternalDateRangeTests;
+import org.opensearch.search.aggregations.bucket.range.InternalGeoDistanceTests;
+import org.opensearch.search.aggregations.bucket.range.InternalRangeTests;
+import org.opensearch.search.aggregations.bucket.sampler.InternalSamplerTests;
+import org.opensearch.search.aggregations.bucket.terms.DoubleTermsTests;
+import org.opensearch.search.aggregations.bucket.terms.LongRareTermsTests;
+import org.opensearch.search.aggregations.bucket.terms.LongTermsTests;
+import org.opensearch.search.aggregations.bucket.terms.SignificantLongTermsTests;
+import org.opensearch.search.aggregations.bucket.terms.SignificantStringTermsTests;
+import org.opensearch.search.aggregations.bucket.terms.StringRareTermsTests;
+import org.opensearch.search.aggregations.bucket.terms.StringTermsTests;
import org.opensearch.search.aggregations.metrics.InternalExtendedStatsTests;
import org.opensearch.search.aggregations.metrics.InternalMaxTests;
import org.opensearch.search.aggregations.metrics.InternalMedianAbsoluteDeviationTests;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/AggregatorFactoriesTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/AggregatorFactoriesTests.java
index a73811e20cc..28e92095baf 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/AggregatorFactoriesTests.java
+++ b/server/src/test/java/org/elasticsearch/search/aggregations/AggregatorFactoriesTests.java
@@ -39,7 +39,7 @@ import org.elasticsearch.index.query.TermsQueryBuilder;
import org.elasticsearch.index.query.WrapperQueryBuilder;
import org.opensearch.script.Script;
import org.opensearch.search.SearchModule;
-import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
import org.opensearch.search.aggregations.pipeline.AbstractPipelineAggregationBuilder;
import org.opensearch.search.aggregations.pipeline.BucketScriptPipelineAggregationBuilder;
import org.opensearch.search.aggregations.pipeline.PipelineAggregator;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/InternalAggregationsTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/InternalAggregationsTests.java
index 168da06d4fc..1353ba415af 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/InternalAggregationsTests.java
+++ b/server/src/test/java/org/elasticsearch/search/aggregations/InternalAggregationsTests.java
@@ -27,9 +27,9 @@ import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.common.settings.Settings;
import org.opensearch.search.DocValueFormat;
import org.opensearch.search.SearchModule;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogramTests;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTermsTests;
+import org.opensearch.search.aggregations.bucket.histogram.InternalDateHistogramTests;
+import org.opensearch.search.aggregations.bucket.terms.StringTerms;
+import org.opensearch.search.aggregations.bucket.terms.StringTermsTests;
import org.opensearch.search.aggregations.pipeline.AvgBucketPipelineAggregationBuilder;
import org.opensearch.search.aggregations.pipeline.InternalSimpleValueTests;
import org.opensearch.search.aggregations.pipeline.MaxBucketPipelineAggregationBuilder;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/InternalMultiBucketAggregationTests.java b/server/src/test/java/org/elasticsearch/search/aggregations/InternalMultiBucketAggregationTests.java
index e276abd37ed..e7ceeec9572 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/InternalMultiBucketAggregationTests.java
+++ b/server/src/test/java/org/elasticsearch/search/aggregations/InternalMultiBucketAggregationTests.java
@@ -21,9 +21,9 @@ package org.elasticsearch.search.aggregations;
import org.apache.lucene.util.BytesRef;
import org.opensearch.search.DocValueFormat;
-import org.elasticsearch.search.aggregations.bucket.terms.InternalTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.LongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
+import org.opensearch.search.aggregations.bucket.terms.InternalTerms;
+import org.opensearch.search.aggregations.bucket.terms.LongTerms;
+import org.opensearch.search.aggregations.bucket.terms.StringTerms;
import org.opensearch.search.aggregations.metrics.InternalAvg;
import org.opensearch.search.aggregations.support.AggregationPath;
import org.elasticsearch.test.ESTestCase;
diff --git a/server/src/test/java/org/elasticsearch/test/search/aggregations/bucket/SharedSignificantTermsTestMethods.java b/server/src/test/java/org/elasticsearch/test/search/aggregations/bucket/SharedSignificantTermsTestMethods.java
index 25d1d86ca3c..babe55ddd87 100644
--- a/server/src/test/java/org/elasticsearch/test/search/aggregations/bucket/SharedSignificantTermsTestMethods.java
+++ b/server/src/test/java/org/elasticsearch/test/search/aggregations/bucket/SharedSignificantTermsTestMethods.java
@@ -23,9 +23,9 @@ import org.opensearch.action.index.IndexRequestBuilder;
import org.opensearch.action.search.SearchResponse;
import org.elasticsearch.common.xcontent.XContentType;
import org.elasticsearch.search.aggregations.Aggregation;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.SignificantTerms;
+import org.opensearch.search.aggregations.bucket.terms.StringTerms;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
import org.elasticsearch.test.ESIntegTestCase;
import org.elasticsearch.test.ESTestCase;
import org.junit.Assert;
diff --git a/server/src/test/java/org/opensearch/search/DocValueFormatTests.java b/server/src/test/java/org/opensearch/search/DocValueFormatTests.java
index 3ebae6a1cef..5a6d02bf135 100644
--- a/server/src/test/java/org/opensearch/search/DocValueFormatTests.java
+++ b/server/src/test/java/org/opensearch/search/DocValueFormatTests.java
@@ -35,7 +35,7 @@ import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.List;
-import static org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils.longEncode;
+import static org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils.longEncode;
public class DocValueFormatTests extends ESTestCase {
diff --git a/server/src/test/java/org/opensearch/search/SearchModuleTests.java b/server/src/test/java/org/opensearch/search/SearchModuleTests.java
index c562ef53cc8..fb65d299da5 100644
--- a/server/src/test/java/org/opensearch/search/SearchModuleTests.java
+++ b/server/src/test/java/org/opensearch/search/SearchModuleTests.java
@@ -39,8 +39,8 @@ import org.elasticsearch.search.aggregations.AggregatorFactory;
import org.elasticsearch.search.aggregations.BaseAggregationBuilder;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.ChiSquare;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.ChiSquare;
import org.opensearch.search.aggregations.pipeline.AbstractPipelineAggregationBuilder;
import org.opensearch.search.aggregations.pipeline.DerivativePipelineAggregationBuilder;
import org.opensearch.search.aggregations.pipeline.DerivativePipelineAggregator;
diff --git a/server/src/test/java/org/opensearch/search/SearchServiceTests.java b/server/src/test/java/org/opensearch/search/SearchServiceTests.java
index 3fdc898b93b..d6be2402bc8 100644
--- a/server/src/test/java/org/opensearch/search/SearchServiceTests.java
+++ b/server/src/test/java/org/opensearch/search/SearchServiceTests.java
@@ -74,8 +74,8 @@ import org.opensearch.script.ScriptType;
import org.elasticsearch.search.aggregations.AggregationBuilders;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.MultiBucketConsumerService;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.ValueType;
import org.opensearch.search.builder.SearchSourceBuilder;
import org.opensearch.search.fetch.FetchSearchResult;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/AutoDateHistogramTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/AutoDateHistogramTests.java
similarity index 91%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/AutoDateHistogramTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/AutoDateHistogramTests.java
index eb16fc62fd4..7e781c17836 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/AutoDateHistogramTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/AutoDateHistogramTests.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
public class AutoDateHistogramTests extends BaseAggregationTestCase {
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BestBucketsDeferringCollectorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/BestBucketsDeferringCollectorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/BestBucketsDeferringCollectorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/BestBucketsDeferringCollectorTests.java
index 7c636f26d40..c643b187397 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BestBucketsDeferringCollectorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/BestBucketsDeferringCollectorTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BucketUtilsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/BucketUtilsTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/BucketUtilsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/BucketUtilsTests.java
index 756bc14a498..40b8cf24ea0 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BucketUtilsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/BucketUtilsTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.test.ESTestCase;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/BucketsAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/BucketsAggregatorTests.java
index 1b13d0c4bf8..6d17bffbcc8 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/BucketsAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.SortedNumericDocValuesField;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/DateRangeTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/DateRangeTests.java
similarity index 94%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/DateRangeTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/DateRangeTests.java
index 882ce66a24b..b5981d87f89 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/DateRangeTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/DateRangeTests.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.common.xcontent.XContentParseException;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.common.xcontent.json.JsonXContent;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.range.DateRangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Range;
+import org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregator.Range;
import java.io.IOException;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/DateScriptMocksPlugin.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/DateScriptMocksPlugin.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/DateScriptMocksPlugin.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/DateScriptMocksPlugin.java
index c453ce502d5..863b2ed9565 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/DateScriptMocksPlugin.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/DateScriptMocksPlugin.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.opensearch.script.MockScriptPlugin;
import org.opensearch.search.lookup.LeafDocLookup;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/FilterTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/FilterTests.java
similarity index 90%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/FilterTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/FilterTests.java
index 13b2c36e7ea..0bf157de709 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/FilterTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/FilterTests.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
public class FilterTests extends BaseAggregationTestCase {
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/FiltersTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/FiltersTests.java
similarity index 97%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/FiltersTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/FiltersTests.java
index 1e26327a13e..bd3d77c4e9d 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/FiltersTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/FiltersTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentFactory;
@@ -31,9 +31,9 @@ import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.index.query.QueryRewriteContext;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregator.KeyedFilter;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregator.KeyedFilter;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.ValueType;
import java.io.IOException;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoDistanceRangeTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoDistanceRangeTests.java
similarity index 95%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoDistanceRangeTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/GeoDistanceRangeTests.java
index 9575f3bf77b..8a8139f295f 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoDistanceRangeTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoDistanceRangeTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.opensearch.common.geo.GeoDistance;
import org.opensearch.common.geo.GeoPoint;
@@ -26,8 +26,8 @@ import org.elasticsearch.common.xcontent.XContentParseException;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.common.xcontent.json.JsonXContent;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder.Range;
+import org.opensearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder.Range;
import org.elasticsearch.test.geo.RandomShapeGenerator;
import java.io.IOException;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoHashGridTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoHashGridTests.java
similarity index 93%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoHashGridTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/GeoHashGridTests.java
index 1a9ee7a79e6..0ddbb9d9177 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoHashGridTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoHashGridTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.opensearch.Version;
import org.opensearch.common.geo.GeoBoundingBox;
@@ -28,8 +28,8 @@ import org.opensearch.common.io.stream.NamedWriteableAwareStreamInput;
import org.opensearch.common.io.stream.NamedWriteableRegistry;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder;
import org.elasticsearch.test.VersionUtils;
import java.util.Collections;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoTileGridTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoTileGridTests.java
similarity index 91%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoTileGridTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/GeoTileGridTests.java
index 02c8cbb7e51..e029e782359 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoTileGridTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoTileGridTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.opensearch.Version;
import org.opensearch.common.geo.GeoBoundingBox;
@@ -28,9 +28,9 @@ import org.opensearch.common.io.stream.NamedWriteableAwareStreamInput;
import org.opensearch.common.io.stream.NamedWriteableRegistry;
import org.opensearch.common.io.stream.StreamInput;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils;
import org.elasticsearch.test.VersionUtils;
import java.util.Collections;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/GlobalAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/GlobalAggregatorTests.java
similarity index 92%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/GlobalAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/GlobalAggregatorTests.java
index 5c949965d90..f76ee553967 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/GlobalAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/GlobalAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.apache.lucene.document.SortedNumericDocValuesField;
import org.apache.lucene.index.DirectoryReader;
@@ -30,9 +30,9 @@ import org.elasticsearch.common.CheckedConsumer;
import org.elasticsearch.index.mapper.MappedFieldType;
import org.elasticsearch.index.mapper.NumberFieldMapper;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregator;
-import org.elasticsearch.search.aggregations.bucket.global.InternalGlobal;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregator;
+import org.opensearch.search.aggregations.bucket.global.InternalGlobal;
import org.opensearch.search.aggregations.metrics.InternalMin;
import org.opensearch.search.aggregations.metrics.MinAggregationBuilder;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/GlobalTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/GlobalTests.java
similarity index 88%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/GlobalTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/GlobalTests.java
index 957f0f36633..07aae717a52 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/GlobalTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/GlobalTests.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
public class GlobalTests extends BaseAggregationTestCase {
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/HistogramTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/HistogramTests.java
similarity index 97%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/HistogramTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/HistogramTests.java
index c1ad70e05a9..afdfa6220c2 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/HistogramTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/HistogramTests.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
import org.elasticsearch.search.aggregations.BucketOrder;
import java.util.ArrayList;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/IpRangeTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/IpRangeTests.java
similarity index 96%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/IpRangeTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/IpRangeTests.java
index aad99a8218e..02257b4226a 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/IpRangeTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/IpRangeTests.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.opensearch.common.network.NetworkAddress;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
public class IpRangeTests extends BaseAggregationTestCase {
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollectorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/MergingBucketsDeferringCollectorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollectorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/MergingBucketsDeferringCollectorTests.java
index 7c015d3b10b..5a23588ed9a 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollectorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/MergingBucketsDeferringCollectorTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.DirectoryReader;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/MissingTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/MissingTests.java
similarity index 90%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/MissingTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/MissingTests.java
index 9f63bb6c7a3..5d24b650fa9 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/MissingTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/MissingTests.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
public class MissingTests extends BaseAggregationTestCase {
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/RangeTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/RangeTests.java
similarity index 95%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/RangeTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/RangeTests.java
index b3afa9b25a9..b3362df6f57 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/RangeTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/RangeTests.java
@@ -17,14 +17,14 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.common.xcontent.XContentParseException;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.common.xcontent.json.JsonXContent;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregator.Range;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregator.Range;
import java.io.IOException;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/RareTermsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/RareTermsTests.java
similarity index 95%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/RareTermsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/RareTermsTests.java
index bcd9b01f5ca..d4c7eeae7e8 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/RareTermsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/RareTermsTests.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.automaton.RegExp;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude;
-import org.elasticsearch.search.aggregations.bucket.terms.RareTermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.IncludeExclude;
+import org.opensearch.search.aggregations.bucket.terms.RareTermsAggregationBuilder;
import java.util.SortedSet;
import java.util.TreeSet;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/SamplerTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/SamplerTests.java
similarity index 90%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/SamplerTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/SamplerTests.java
index 5a9a28baf82..05368eda49e 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/SamplerTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/SamplerTests.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder;
public class SamplerTests extends BaseAggregationTestCase {
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/ShardSizeTestCase.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/ShardSizeTestCase.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/ShardSizeTestCase.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/ShardSizeTestCase.java
index 91af8f46cdc..12f6c3e45ef 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/ShardSizeTestCase.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/ShardSizeTestCase.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.opensearch.action.index.IndexRequestBuilder;
import org.opensearch.action.search.SearchResponse;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/SignificantTermsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/SignificantTermsTests.java
similarity index 88%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/SignificantTermsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/SignificantTermsTests.java
index 1c270131ef4..e337bb1ea7f 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/SignificantTermsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/SignificantTermsTests.java
@@ -17,22 +17,22 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.automaton.RegExp;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregatorFactory.ExecutionMode;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.ChiSquare;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.GND;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.JLHScore;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.MutualInformation;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.PercentageScore;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.ScriptHeuristic;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.IncludeExclude;
+import org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregatorFactory.ExecutionMode;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.ChiSquare;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.GND;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.JLHScore;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.MutualInformation;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.PercentageScore;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.ScriptHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import java.util.SortedSet;
import java.util.TreeSet;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/SignificantTextTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/SignificantTextTests.java
similarity index 91%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/SignificantTextTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/SignificantTextTests.java
index 161087110dd..3945801e3cf 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/SignificantTextTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/SignificantTextTests.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantTextAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.IncludeExclude;
+import org.opensearch.search.aggregations.bucket.terms.SignificantTextAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import java.util.Arrays;
@@ -40,7 +40,7 @@ public class SignificantTextTests extends BaseAggregationTestCase {
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridParserTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridParserTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridParserTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridParserTests.java
index bdf5fd4926d..161891f6f0f 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridParserTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridParserTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.common.xcontent.XContentParseException;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridTests.java
similarity index 96%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridTests.java
index 87f3715c2eb..192677ce343 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileGridTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileGridTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.elasticsearch.search.aggregations.InternalAggregations;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileUtilsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileUtilsTests.java
similarity index 95%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileUtilsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileUtilsTests.java
index 88276084e7e..40130c6c058 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/geogrid/GeoTileUtilsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoTileUtilsTests.java
@@ -17,18 +17,18 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.geogrid;
+package org.opensearch.search.aggregations.bucket.geogrid;
import org.opensearch.common.geo.GeoPoint;
import org.opensearch.geometry.Rectangle;
import org.elasticsearch.test.ESTestCase;
-import static org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils.MAX_ZOOM;
-import static org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils.checkPrecisionRange;
-import static org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils.hashToGeoPoint;
-import static org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils.keyToGeoPoint;
-import static org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils.longEncode;
-import static org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileUtils.stringEncode;
+import static org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils.MAX_ZOOM;
+import static org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils.checkPrecisionRange;
+import static org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils.hashToGeoPoint;
+import static org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils.keyToGeoPoint;
+import static org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils.longEncode;
+import static org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils.stringEncode;
import static org.hamcrest.Matchers.anyOf;
import static org.hamcrest.Matchers.closeTo;
import static org.hamcrest.Matchers.containsString;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/global/InternalGlobalTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/global/InternalGlobalTests.java
similarity index 91%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/global/InternalGlobalTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/global/InternalGlobalTests.java
index ce584e4b148..7932a186859 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/global/InternalGlobalTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/global/InternalGlobalTests.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.global;
+package org.opensearch.search.aggregations.bucket.global;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalSingleBucketAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.util.List;
import java.util.Map;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilderTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilderTests.java
similarity index 97%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilderTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilderTests.java
index 095a335a7dc..00e6890dbb2 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilderTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregationBuilderTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.test.ESTestCase;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorTests.java
index 79b216756aa..1306d5a2b2d 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.LongPoint;
@@ -45,8 +45,8 @@ import org.elasticsearch.search.aggregations.Aggregation;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregationBuilders;
import org.elasticsearch.search.aggregations.MultiBucketConsumerService;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.StringTerms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.metrics.InternalMax;
import org.opensearch.search.aggregations.metrics.InternalStats;
import org.opensearch.search.aggregations.metrics.MaxAggregationBuilder;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTestCase.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTestCase.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTestCase.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTestCase.java
index 363d063ef55..a3b446ddd2d 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTestCase.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTestCase.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.document.SortedNumericDocValuesField;
import org.apache.lucene.document.SortedSetDocValuesField;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTests.java
index 9a02c9dde9a..c960a1f93ab 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.LongPoint;
@@ -34,8 +34,8 @@ import org.opensearch.common.time.DateFormatters;
import org.elasticsearch.index.mapper.DateFieldMapper;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.BucketOrder;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.StringTerms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.AggregationInspectionHelper;
import java.io.IOException;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramTests.java
index faefcd3e3a6..c29cd81f7c6 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateHistogramTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
import org.elasticsearch.search.aggregations.BucketOrder;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateIntervalWrapperTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateIntervalWrapperTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateIntervalWrapperTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateIntervalWrapperTests.java
index f3af74c0d40..9af04ef3161 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateIntervalWrapperTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateIntervalWrapperTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.common.io.stream.BytesStreamOutput;
import org.opensearch.common.io.stream.StreamInput;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregatorTests.java
index 25f37dc90d5..ce3fa0a1e7d 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DateRangeHistogramAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.document.BinaryDocValuesField;
import org.apache.lucene.document.Document;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DoubleBoundsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DoubleBoundsTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DoubleBoundsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DoubleBoundsTests.java
index d216e70bab2..3b97d3691e4 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/DoubleBoundsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/DoubleBoundsTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.common.bytes.BytesReference;
import org.opensearch.common.io.stream.BytesStreamOutput;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalAutoDateHistogramTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalAutoDateHistogramTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalAutoDateHistogramTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalAutoDateHistogramTests.java
index 38e153db117..7296cd38958 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalAutoDateHistogramTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalAutoDateHistogramTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.common.Rounding;
import org.opensearch.common.time.DateFormatter;
@@ -26,8 +26,8 @@ import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder.RoundingInfo;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalAutoDateHistogram.BucketInfo;
+import org.opensearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder.RoundingInfo;
+import org.opensearch.search.aggregations.bucket.histogram.InternalAutoDateHistogram.BucketInfo;
import org.elasticsearch.test.InternalMultiBucketAggregationTestCase;
import java.time.Instant;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalDateHistogramTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalDateHistogramTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalDateHistogramTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalDateHistogramTests.java
index e5c85b1cdd4..0189d8af036 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalDateHistogramTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalDateHistogramTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.common.Rounding;
import org.elasticsearch.common.unit.TimeValue;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalHistogramTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalHistogramTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalHistogramTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalHistogramTests.java
index c21d9bc6416..45a09f0f5f8 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalHistogramTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalHistogramTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.util.TestUtil;
import org.opensearch.search.DocValueFormat;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogramTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogramTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogramTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogramTests.java
index d171547a27a..2fcd60aca2b 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogramTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogramTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.util.TestUtil;
import org.opensearch.common.breaker.CircuitBreaker;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/LongBoundsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/LongBoundsTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/LongBoundsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/LongBoundsTests.java
index d4ffcdb527f..e2c3618579d 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/LongBoundsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/LongBoundsTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.opensearch.Version;
import org.opensearch.cluster.metadata.IndexMetadata;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/NumericHistogramAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/NumericHistogramAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/NumericHistogramAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/NumericHistogramAggregatorTests.java
index b82ded5cbea..d51dbab3af6 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/NumericHistogramAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/NumericHistogramAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.SortedNumericDocValuesField;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/RangeHistogramAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/RangeHistogramAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/RangeHistogramAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/RangeHistogramAggregatorTests.java
index 40de1e60f70..83f9df9b21e 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/RangeHistogramAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/RangeHistogramAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.document.BinaryDocValuesField;
import org.apache.lucene.document.Document;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorTests.java
index 7f7685034c9..dead57806a1 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/VariableWidthHistogramAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.histogram;
+package org.opensearch.search.aggregations.bucket.histogram;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.SortedNumericDocValuesField;
@@ -39,8 +39,8 @@ import org.elasticsearch.index.mapper.NumberFieldMapper;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregationBuilders;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
-import org.elasticsearch.search.aggregations.bucket.terms.LongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.LongTerms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.metrics.InternalStats;
import org.opensearch.search.aggregations.metrics.StatsAggregationBuilder;
import org.opensearch.search.aggregations.support.AggregationInspectionHelper;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/missing/InternalMissingTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/missing/InternalMissingTests.java
similarity index 91%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/missing/InternalMissingTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/missing/InternalMissingTests.java
index 49e8ceb99c5..2210993bacb 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/missing/InternalMissingTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/missing/InternalMissingTests.java
@@ -17,11 +17,11 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.missing;
+package org.opensearch.search.aggregations.bucket.missing;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalSingleBucketAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.util.List;
import java.util.Map;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregatorTests.java
index 2608d0a337d..17b1d5e74ce 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/missing/MissingAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/missing/MissingAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.missing;
+package org.opensearch.search.aggregations.bucket.missing;
import org.apache.lucene.document.BinaryDocValuesField;
import org.apache.lucene.document.SortedNumericDocValuesField;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/InternalNestedTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/InternalNestedTests.java
similarity index 93%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/InternalNestedTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/nested/InternalNestedTests.java
index 1c0c2d12eb8..56174eff3cb 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/InternalNestedTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/InternalNestedTests.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalSingleBucketAggregationTestCase;
import org.elasticsearch.search.aggregations.ParsedAggregation;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.io.IOException;
import java.util.List;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/InternalReverseNestedTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/InternalReverseNestedTests.java
similarity index 93%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/InternalReverseNestedTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/nested/InternalReverseNestedTests.java
index e0b392919bb..dd994e42756 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/InternalReverseNestedTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/InternalReverseNestedTests.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalSingleBucketAggregationTestCase;
import org.elasticsearch.search.aggregations.ParsedAggregation;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.io.IOException;
import java.util.List;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregatorTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregatorTests.java
index e16f62f5276..106f0929206 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/NestedAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/NestedAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
@@ -60,13 +60,13 @@ import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
import org.elasticsearch.search.aggregations.BucketOrder;
import org.elasticsearch.search.aggregations.InternalAggregation;
-import org.elasticsearch.search.aggregations.bucket.filter.Filter;
-import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.InternalTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.LongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.Filter;
+import org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.InternalTerms;
+import org.opensearch.search.aggregations.bucket.terms.LongTerms;
+import org.opensearch.search.aggregations.bucket.terms.StringTerms;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.metrics.InternalMax;
import org.opensearch.search.aggregations.metrics.InternalSum;
import org.opensearch.search.aggregations.metrics.Max;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/NestedTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/NestedTests.java
similarity index 94%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/NestedTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/nested/NestedTests.java
index ff2563fc4cc..da7a9739a00 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/NestedTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/NestedTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregatorTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregatorTests.java
index 21d9cdc4c57..13db04c4389 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
@@ -36,8 +36,8 @@ import org.elasticsearch.index.mapper.Uid;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
import org.elasticsearch.search.aggregations.InternalAggregation;
-import org.elasticsearch.search.aggregations.bucket.terms.LongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.LongTerms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.metrics.InternalMax;
import org.opensearch.search.aggregations.metrics.MaxAggregationBuilder;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedTests.java
similarity index 95%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedTests.java
index 76423a70059..2bcb3d2f4fe 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/nested/ReverseNestedTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/nested/ReverseNestedTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.nested;
+package org.opensearch.search.aggregations.bucket.nested;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/BinaryRangeAggregatorTests.java
similarity index 96%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/range/BinaryRangeAggregatorTests.java
index 6ed2c1a3a8c..51cd54f66f8 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/BinaryRangeAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/BinaryRangeAggregatorTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import java.io.IOException;
import java.util.Arrays;
@@ -28,8 +28,8 @@ import org.apache.lucene.util.TestUtil;
import org.elasticsearch.index.fielddata.AbstractSortedSetDocValues;
import org.elasticsearch.index.fielddata.SortedBinaryDocValues;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
-import org.elasticsearch.search.aggregations.bucket.range.BinaryRangeAggregator.SortedBinaryRangeLeafCollector;
-import org.elasticsearch.search.aggregations.bucket.range.BinaryRangeAggregator.SortedSetRangeLeafCollector;
+import org.opensearch.search.aggregations.bucket.range.BinaryRangeAggregator.SortedBinaryRangeLeafCollector;
+import org.opensearch.search.aggregations.bucket.range.BinaryRangeAggregator.SortedSetRangeLeafCollector;
import org.elasticsearch.test.ESTestCase;
import com.carrotsearch.hppc.LongHashSet;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/DateRangeAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/DateRangeAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/DateRangeAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/range/DateRangeAggregatorTests.java
index 8db09f45ea1..4bf344e8801 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/DateRangeAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/DateRangeAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.apache.lucene.document.NumericDocValuesField;
import org.apache.lucene.document.SortedNumericDocValuesField;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalBinaryRangeTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalBinaryRangeTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalBinaryRangeTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalBinaryRangeTests.java
index 298027470fa..701322e722f 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalBinaryRangeTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalBinaryRangeTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.apache.lucene.util.BytesRef;
import org.elasticsearch.common.collect.Tuple;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalDateRangeTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalDateRangeTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalDateRangeTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalDateRangeTests.java
index 1faca1601e5..7b9b0cb8f9c 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalDateRangeTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalDateRangeTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.elasticsearch.common.collect.Tuple;
import org.opensearch.search.DocValueFormat;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalGeoDistanceTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalGeoDistanceTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalGeoDistanceTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalGeoDistanceTests.java
index 13bc3772426..521c3081142 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalGeoDistanceTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalGeoDistanceTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.elasticsearch.common.collect.Tuple;
import org.elasticsearch.search.aggregations.InternalAggregations;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalRangeTestCase.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalRangeTestCase.java
similarity index 96%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalRangeTestCase.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalRangeTestCase.java
index 379503f3e4c..f8f78733bde 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalRangeTestCase.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalRangeTestCase.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import org.elasticsearch.test.InternalMultiBucketAggregationTestCase;
import java.util.List;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalRangeTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalRangeTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalRangeTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalRangeTests.java
index 24f3a43c6d2..52212131b18 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/InternalRangeTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/InternalRangeTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.elasticsearch.common.collect.Tuple;
import org.opensearch.search.DocValueFormat;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/IpRangeAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/range/IpRangeAggregatorTests.java
index c14261c6005..91f5aa19553 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/IpRangeAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/IpRangeAggregatorTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.InetAddressPoint;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregationBuilderTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/RangeAggregationBuilderTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregationBuilderTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/range/RangeAggregationBuilderTests.java
index 5523f0ffbde..d73b56d3161 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregationBuilderTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/RangeAggregationBuilderTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.opensearch.common.io.stream.Writeable.Reader;
import org.elasticsearch.common.xcontent.XContentParser;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorTests.java
index 1b472e3e375..550b3382820 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/range/RangeAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.range;
+package org.opensearch.search.aggregations.bucket.range;
import org.apache.lucene.document.NumericDocValuesField;
import org.apache.lucene.document.SortedNumericDocValuesField;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/BestDocsDeferringCollectorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/BestDocsDeferringCollectorTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/BestDocsDeferringCollectorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/BestDocsDeferringCollectorTests.java
index 76ab7ee53ac..8fef145a7ae 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/BestDocsDeferringCollectorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/BestDocsDeferringCollectorTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilderTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilderTests.java
similarity index 91%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilderTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilderTests.java
index 6aa6485d98e..0c9a9744a03 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilderTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedAggregationBuilderTests.java
@@ -17,10 +17,10 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregator.ExecutionMode;
+import org.opensearch.search.aggregations.bucket.sampler.SamplerAggregator.ExecutionMode;
public class DiversifiedAggregationBuilderTests extends BaseAggregationTestCase {
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedSamplerTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedSamplerTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedSamplerTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedSamplerTests.java
index 961eec24352..23f6c906570 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/DiversifiedSamplerTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/DiversifiedSamplerTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.DoubleDocValuesField;
@@ -40,8 +40,8 @@ import org.elasticsearch.index.mapper.KeywordFieldMapper;
import org.elasticsearch.index.mapper.MappedFieldType;
import org.elasticsearch.index.mapper.NumberFieldMapper;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import java.io.IOException;
import java.util.ArrayList;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/InternalSamplerTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/InternalSamplerTests.java
similarity index 92%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/InternalSamplerTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/InternalSamplerTests.java
index 525fb573499..477795dcd0f 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/InternalSamplerTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/InternalSamplerTests.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.InternalSingleBucketAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import java.util.List;
import java.util.Map;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregatorTests.java
similarity index 96%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregatorTests.java
index 84840528e38..c0c709dce93 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/sampler/SamplerAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/sampler/SamplerAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.sampler;
+package org.opensearch.search.aggregations.bucket.sampler;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
@@ -39,9 +39,9 @@ import org.elasticsearch.index.query.MatchAllQueryBuilder;
import org.elasticsearch.index.query.MatchNoneQueryBuilder;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.InternalFilters;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.InternalFilters;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.metrics.Min;
import org.opensearch.search.aggregations.metrics.MinAggregationBuilder;
import org.opensearch.search.aggregations.support.AggregationInspectionHelper;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/BinaryTermsAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/BinaryTermsAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/BinaryTermsAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/BinaryTermsAggregatorTests.java
index ea4e8927f71..4b9965bfdff 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/BinaryTermsAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/BinaryTermsAggregatorTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.DirectoryReader;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/BytesKeyedBucketOrdsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/BytesKeyedBucketOrdsTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/BytesKeyedBucketOrdsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/BytesKeyedBucketOrdsTests.java
index 0bff33b3b96..f70995bc9f3 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/BytesKeyedBucketOrdsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/BytesKeyedBucketOrdsTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.elasticsearch.common.settings.Settings;
@@ -181,7 +181,7 @@ public class BytesKeyedBucketOrdsTests extends ESTestCase {
@Override
public String toString() {
- return owningBucketOrd + "/" + value;
+ return owningBucketOrd + "/" + value;
}
@Override
@@ -190,7 +190,7 @@ public class BytesKeyedBucketOrdsTests extends ESTestCase {
return false;
}
OwningBucketOrdAndValue other = (OwningBucketOrdAndValue) obj;
- return owningBucketOrd == other.owningBucketOrd && value == other.value;
+ return owningBucketOrd == other.owningBucketOrd && value == other.value;
}
@Override
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/DoubleTermsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/DoubleTermsTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/DoubleTermsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/DoubleTermsTests.java
index 80fdb200663..47ecd5b4de9 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/DoubleTermsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/DoubleTermsTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.BucketOrder;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/InternalRareTermsTestCase.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/InternalRareTermsTestCase.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/InternalRareTermsTestCase.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/InternalRareTermsTestCase.java
index 67427976d0f..5022dbda584 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/InternalRareTermsTestCase.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/InternalRareTermsTestCase.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.test.InternalMultiBucketAggregationTestCase;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/InternalSignificantTermsTestCase.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/InternalSignificantTermsTestCase.java
similarity index 93%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/InternalSignificantTermsTestCase.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/InternalSignificantTermsTestCase.java
index 420dc5218dd..a3517c19cb3 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/InternalSignificantTermsTestCase.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/InternalSignificantTermsTestCase.java
@@ -17,15 +17,15 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.ChiSquare;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.GND;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.JLHScore;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.MutualInformation;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.ChiSquare;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.GND;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.JLHScore;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.MutualInformation;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import org.elasticsearch.test.InternalMultiBucketAggregationTestCase;
import java.util.Arrays;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/InternalTermsTestCase.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/InternalTermsTestCase.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/InternalTermsTestCase.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/InternalTermsTestCase.java
index b3e96a5769c..c8eed048e2a 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/InternalTermsTestCase.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/InternalTermsTestCase.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.test.InternalMultiBucketAggregationTestCase;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/KeywordTermsAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/KeywordTermsAggregatorTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/KeywordTermsAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/KeywordTermsAggregatorTests.java
index 1c4328947af..fb83dc44acb 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/KeywordTermsAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/KeywordTermsAggregatorTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.SortedSetDocValuesField;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/LongKeyedBucketOrdsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/LongKeyedBucketOrdsTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/LongKeyedBucketOrdsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/LongKeyedBucketOrdsTests.java
index c1367a27c81..9aca60959d9 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/LongKeyedBucketOrdsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/LongKeyedBucketOrdsTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.util.MockBigArrays;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTermsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/LongRareTermsTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTermsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/LongRareTermsTests.java
index 8a3fdc661f1..80318b3c107 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/LongRareTermsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/LongRareTermsTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.common.Randomness;
import org.elasticsearch.common.util.SetBackedScalingCuckooFilter;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/LongTermsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/LongTermsTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/LongTermsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/LongTermsTests.java
index 8573b927281..a90ecbecd81 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/LongTermsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/LongTermsTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.BucketOrder;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/NumericTermsAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/NumericTermsAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/NumericTermsAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/NumericTermsAggregatorTests.java
index 091c410bd79..3838db1a919 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/NumericTermsAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/NumericTermsAggregatorTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.LongPoint;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregatorTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregatorTests.java
index 347ba3bfd19..5b562959911 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/RareTermsAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/RareTermsAggregatorTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.document.BinaryDocValuesField;
import org.apache.lucene.document.Document;
@@ -62,11 +62,11 @@ import org.elasticsearch.search.aggregations.AggregatorTestCase;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.MultiBucketConsumerService;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.InternalGlobal;
-import org.elasticsearch.search.aggregations.bucket.nested.InternalNested;
-import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.InternalGlobal;
+import org.opensearch.search.aggregations.bucket.nested.InternalNested;
+import org.opensearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
import org.opensearch.search.aggregations.metrics.InternalTopHits;
import org.opensearch.search.aggregations.metrics.Max;
import org.opensearch.search.aggregations.metrics.MaxAggregationBuilder;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificanceHeuristicTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificanceHeuristicTests.java
similarity index 97%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificanceHeuristicTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificanceHeuristicTests.java
index e055ade0090..8ee611c1834 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificanceHeuristicTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificanceHeuristicTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.opensearch.Version;
@@ -37,12 +37,12 @@ import org.opensearch.search.DocValueFormat;
import org.opensearch.search.SearchModule;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregations;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.ChiSquare;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.GND;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.JLHScore;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.MutualInformation;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.PercentageScore;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.ChiSquare;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.GND;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.JLHScore;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.MutualInformation;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.PercentageScore;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import org.opensearch.search.aggregations.pipeline.PipelineAggregator;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.InternalAggregationTestCase;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantLongTermsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantLongTermsTests.java
similarity index 97%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantLongTermsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantLongTermsTests.java
index 67f4df9a10f..9beeafce77c 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantLongTermsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantLongTermsTests.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import java.util.ArrayList;
import java.util.HashMap;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantStringTermsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantStringTermsTests.java
similarity index 97%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantStringTermsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantStringTermsTests.java
index f51f1824e46..a336712de70 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantStringTermsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantStringTermsTests.java
@@ -17,13 +17,13 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.opensearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.InternalAggregations;
import org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
+import org.opensearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic;
import java.util.ArrayList;
import java.util.HashMap;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregatorTests.java
index 5c3dc44e3d0..d7535f262a1 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTermsAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantTermsAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.BinaryDocValuesField;
@@ -52,7 +52,7 @@ import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantTermsAggregatorFactory.ExecutionMode;
+import org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregatorFactory.ExecutionMode;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSourceType;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantTextAggregatorTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantTextAggregatorTests.java
index 78cbaca8d49..fd12068d347 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/SignificantTextAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/SignificantTextAggregatorTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
@@ -43,8 +43,8 @@ import org.elasticsearch.index.mapper.TextFieldMapper;
import org.elasticsearch.index.mapper.TextFieldMapper.TextFieldType;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
-import org.elasticsearch.search.aggregations.bucket.sampler.InternalSampler;
-import org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.sampler.InternalSampler;
+import org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder;
import org.opensearch.search.aggregations.support.AggregationInspectionHelper;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSourceType;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTermsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/StringRareTermsTests.java
similarity index 98%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTermsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/StringRareTermsTests.java
index 349953a511f..68e0aaeafc9 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/StringRareTermsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/StringRareTermsTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.opensearch.common.Randomness;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/StringTermsTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/StringTermsTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/StringTermsTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/StringTermsTests.java
index 07028abe039..2ef949a9cd3 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/StringTermsTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/StringTermsTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.util.BytesRef;
import org.opensearch.search.DocValueFormat;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorFactoryTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorFactoryTests.java
similarity index 97%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorFactoryTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorFactoryTests.java
index af394c08a7c..9ae7f6bd3ab 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorFactoryTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorFactoryTests.java
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorFactories;
diff --git a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorTests.java
similarity index 99%
rename from server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorTests.java
rename to server/src/test/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorTests.java
index 3eb0a3c66cd..f8f4bf8c1f3 100644
--- a/server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorTests.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket.terms;
+package org.opensearch.search.aggregations.bucket.terms;
import org.apache.lucene.document.BinaryDocValuesField;
import org.apache.lucene.document.Document;
@@ -78,14 +78,14 @@ import org.elasticsearch.search.aggregations.BucketOrder;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.MultiBucketConsumerService;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
-import org.elasticsearch.search.aggregations.bucket.filter.Filter;
-import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.InternalFilter;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.InternalGlobal;
-import org.elasticsearch.search.aggregations.bucket.nested.InternalNested;
-import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.filter.Filter;
+import org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.InternalFilter;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.InternalGlobal;
+import org.opensearch.search.aggregations.bucket.nested.InternalNested;
+import org.opensearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
import org.opensearch.search.aggregations.metrics.InternalTopHits;
import org.opensearch.search.aggregations.metrics.TopHitsAggregationBuilder;
import org.opensearch.search.aggregations.pipeline.BucketScriptPipelineAggregationBuilder;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/metrics/AdjacencyMatrixTests.java b/server/src/test/java/org/opensearch/search/aggregations/metrics/AdjacencyMatrixTests.java
index 636e6ed03c0..fd386f24597 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/metrics/AdjacencyMatrixTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/metrics/AdjacencyMatrixTests.java
@@ -23,7 +23,7 @@ import org.elasticsearch.index.query.MatchNoneQueryBuilder;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.aggregations.BaseAggregationTestCase;
-import org.elasticsearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregationBuilder;
import java.util.HashMap;
import java.util.Map;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/metrics/AvgAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/metrics/AvgAggregatorTests.java
index 8d908081903..f8a1d5141ab 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/metrics/AvgAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/metrics/AvgAggregatorTests.java
@@ -47,10 +47,10 @@ import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregationBuilders;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
import org.elasticsearch.search.aggregations.BucketOrder;
-import org.elasticsearch.search.aggregations.bucket.filter.Filter;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregator;
+import org.opensearch.search.aggregations.bucket.filter.Filter;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregator;
import org.opensearch.search.aggregations.support.AggregationInspectionHelper;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValueType;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/metrics/MaxAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/metrics/MaxAggregatorTests.java
index 20f246b457f..6491d3a4132 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/metrics/MaxAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/metrics/MaxAggregatorTests.java
@@ -64,12 +64,12 @@ import org.elasticsearch.search.aggregations.BucketCollector;
import org.elasticsearch.search.aggregations.BucketOrder;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.MultiBucketCollector;
-import org.elasticsearch.search.aggregations.bucket.filter.Filter;
-import org.elasticsearch.search.aggregations.bucket.global.Global;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregator;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregator;
+import org.opensearch.search.aggregations.bucket.filter.Filter;
+import org.opensearch.search.aggregations.bucket.global.Global;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregator;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregator;
import org.opensearch.search.aggregations.support.AggregationInspectionHelper;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValueType;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/metrics/MinAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/metrics/MinAggregatorTests.java
index 5f8e9fd5e00..17320c35414 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/metrics/MinAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/metrics/MinAggregatorTests.java
@@ -66,16 +66,16 @@ import org.opensearch.script.ScriptType;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
import org.elasticsearch.search.aggregations.BucketOrder;
-import org.elasticsearch.search.aggregations.bucket.filter.Filter;
-import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.InternalGlobal;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalHistogram;
-import org.elasticsearch.search.aggregations.bucket.terms.InternalTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.LongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.Filter;
+import org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.InternalGlobal;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.InternalHistogram;
+import org.opensearch.search.aggregations.bucket.terms.InternalTerms;
+import org.opensearch.search.aggregations.bucket.terms.LongTerms;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.AggregationInspectionHelper;
import org.opensearch.search.aggregations.support.CoreValuesSourceType;
import org.opensearch.search.aggregations.support.ValuesSourceType;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/metrics/ScriptedMetricAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/metrics/ScriptedMetricAggregatorTests.java
index 150161989aa..e182561b13b 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/metrics/ScriptedMetricAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/metrics/ScriptedMetricAggregatorTests.java
@@ -51,8 +51,8 @@ import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.Aggregator;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
import org.elasticsearch.search.aggregations.MultiBucketConsumerService.MultiBucketConsumer;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.StringTerms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.internal.SearchContext;
import org.junit.Before;
import org.junit.BeforeClass;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/metrics/TopHitsAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/metrics/TopHitsAggregatorTests.java
index a19a1e37119..49ac98fc6c9 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/metrics/TopHitsAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/metrics/TopHitsAggregatorTests.java
@@ -51,7 +51,7 @@ import org.elasticsearch.search.aggregations.Aggregation;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregationBuilders;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
import org.opensearch.search.aggregations.support.AggregationInspectionHelper;
import org.opensearch.search.sort.SortOrder;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/AvgBucketAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/AvgBucketAggregatorTests.java
index 08a42990fda..2eb815d9904 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/AvgBucketAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/AvgBucketAggregatorTests.java
@@ -36,9 +36,9 @@ import org.elasticsearch.search.aggregations.Aggregation;
import org.elasticsearch.search.aggregations.Aggregations;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
import org.elasticsearch.search.aggregations.InternalAggregation;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramInterval;
+import org.opensearch.search.aggregations.bucket.histogram.InternalDateHistogram;
import org.opensearch.search.aggregations.metrics.AvgAggregationBuilder;
import org.opensearch.search.aggregations.metrics.InternalAvg;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/AvgBucketTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/AvgBucketTests.java
index 1bd846cf65e..2f7bf84101b 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/AvgBucketTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/AvgBucketTests.java
@@ -20,8 +20,8 @@
package org.opensearch.search.aggregations.pipeline;
import org.elasticsearch.search.aggregations.AggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.ValueType;
import java.util.HashSet;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/BucketHelpersTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/BucketHelpersTests.java
index 27ebf4fdc71..acbb6c759b8 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/BucketHelpersTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/BucketHelpersTests.java
@@ -24,7 +24,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.search.aggregations.AggregationExecutionException;
import org.elasticsearch.search.aggregations.Aggregations;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import org.opensearch.search.aggregations.metrics.InternalTDigestPercentiles;
import org.elasticsearch.test.ESTestCase;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/BucketScriptAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/BucketScriptAggregatorTests.java
index e14f184cfc6..478b7756072 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/BucketScriptAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/BucketScriptAggregatorTests.java
@@ -43,9 +43,9 @@ import org.opensearch.script.ScriptModule;
import org.opensearch.script.ScriptService;
import org.opensearch.script.ScriptType;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.InternalFilters;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.InternalFilters;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.metrics.AvgAggregationBuilder;
import org.opensearch.search.aggregations.support.ValueType;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/CumulativeSumAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/CumulativeSumAggregatorTests.java
index 33ef2b87b72..3bbf41d7f5e 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/CumulativeSumAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/CumulativeSumAggregatorTests.java
@@ -38,10 +38,10 @@ import org.elasticsearch.index.mapper.NumberFieldMapper;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
import org.elasticsearch.search.aggregations.InternalAggregation;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval;
-import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramInterval;
+import org.opensearch.search.aggregations.bucket.histogram.Histogram;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
import org.opensearch.search.aggregations.metrics.AvgAggregationBuilder;
import org.opensearch.search.aggregations.metrics.InternalAvg;
import org.opensearch.search.aggregations.metrics.Sum;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/DerivativeAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/DerivativeAggregatorTests.java
index cb14be82f32..b121c095f34 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/DerivativeAggregatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/DerivativeAggregatorTests.java
@@ -39,9 +39,9 @@ import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.Histogram;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
import org.opensearch.search.aggregations.metrics.AvgAggregationBuilder;
import org.opensearch.search.aggregations.metrics.Stats;
import org.opensearch.search.aggregations.metrics.StatsAggregationBuilder;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/ExtendedStatsBucketTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/ExtendedStatsBucketTests.java
index 2743b3ff343..d4b68480b86 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/ExtendedStatsBucketTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/ExtendedStatsBucketTests.java
@@ -22,8 +22,8 @@ package org.opensearch.search.aggregations.pipeline;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentFactory;
import org.elasticsearch.search.aggregations.AggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.ValueType;
import java.util.HashSet;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/MaxBucketTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/MaxBucketTests.java
index ec9e8dafc51..a2fe0fee15d 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/MaxBucketTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/MaxBucketTests.java
@@ -20,8 +20,8 @@
package org.opensearch.search.aggregations.pipeline;
import org.elasticsearch.search.aggregations.AggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.ValueType;
import java.util.HashSet;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/MinBucketTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/MinBucketTests.java
index 546933bc452..d3fcbba43e0 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/MinBucketTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/MinBucketTests.java
@@ -20,8 +20,8 @@
package org.opensearch.search.aggregations.pipeline;
import org.elasticsearch.search.aggregations.AggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.ValueType;
import java.util.HashSet;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/MovFnAggrgatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/MovFnAggrgatorTests.java
index d6b7e9ee8a3..7939e0923d0 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/MovFnAggrgatorTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/MovFnAggrgatorTests.java
@@ -42,10 +42,10 @@ import org.opensearch.script.ScriptModule;
import org.opensearch.script.ScriptService;
import org.opensearch.script.ScriptType;
import org.elasticsearch.search.aggregations.AggregatorTestCase;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval;
-import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.InternalDateHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramInterval;
+import org.opensearch.search.aggregations.bucket.histogram.Histogram;
+import org.opensearch.search.aggregations.bucket.histogram.InternalDateHistogram;
import org.opensearch.search.aggregations.metrics.AvgAggregationBuilder;
import java.io.IOException;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/PercentilesBucketTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/PercentilesBucketTests.java
index f0e040b8282..afcf12bca95 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/PercentilesBucketTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/PercentilesBucketTests.java
@@ -22,8 +22,8 @@ package org.opensearch.search.aggregations.pipeline;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentFactory;
import org.elasticsearch.search.aggregations.AggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.ValueType;
import java.util.HashSet;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/PipelineAggregationHelperTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/PipelineAggregationHelperTests.java
index 2991bb69f8d..22e4eefdc21 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/PipelineAggregationHelperTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/PipelineAggregationHelperTests.java
@@ -21,9 +21,9 @@ package org.opensearch.search.aggregations.pipeline;
import org.elasticsearch.search.aggregations.AggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
import org.opensearch.search.aggregations.metrics.AvgAggregationBuilder;
import org.opensearch.search.aggregations.metrics.MaxAggregationBuilder;
import org.opensearch.search.aggregations.metrics.MinAggregationBuilder;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/StatsBucketTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/StatsBucketTests.java
index cbd6188dff7..0856d25dd33 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/StatsBucketTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/StatsBucketTests.java
@@ -20,8 +20,8 @@
package org.opensearch.search.aggregations.pipeline;
import org.elasticsearch.search.aggregations.AggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.ValueType;
import java.util.HashSet;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/SumBucketTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/SumBucketTests.java
index 887988240c5..a9ab0b9f8ce 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/SumBucketTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/SumBucketTests.java
@@ -20,8 +20,8 @@
package org.opensearch.search.aggregations.pipeline;
import org.elasticsearch.search.aggregations.AggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
import org.opensearch.search.aggregations.support.ValueType;
import java.util.HashSet;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/support/IncludeExcludeTests.java b/server/src/test/java/org/opensearch/search/aggregations/support/IncludeExcludeTests.java
index fa93c75adcb..b7e8b6b4557 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/support/IncludeExcludeTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/support/IncludeExcludeTests.java
@@ -31,8 +31,8 @@ import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.common.xcontent.XContentType;
import org.elasticsearch.index.fielddata.AbstractSortedSetDocValues;
import org.opensearch.search.DocValueFormat;
-import org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude;
-import org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude.OrdinalsFilter;
+import org.opensearch.search.aggregations.bucket.terms.IncludeExclude;
+import org.opensearch.search.aggregations.bucket.terms.IncludeExclude.OrdinalsFilter;
import org.elasticsearch.test.ESTestCase;
import java.io.IOException;
diff --git a/server/src/test/java/org/opensearch/search/aggregations/support/ValuesSourceRegistryTests.java b/server/src/test/java/org/opensearch/search/aggregations/support/ValuesSourceRegistryTests.java
index 975357976c9..e702c12d8d3 100644
--- a/server/src/test/java/org/opensearch/search/aggregations/support/ValuesSourceRegistryTests.java
+++ b/server/src/test/java/org/opensearch/search/aggregations/support/ValuesSourceRegistryTests.java
@@ -21,7 +21,7 @@ package org.opensearch.search.aggregations.support;
import org.elasticsearch.index.query.QueryShardContext;
import org.opensearch.script.AggregationScript;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregatorSupplier;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregatorSupplier;
import org.elasticsearch.test.ESTestCase;
import org.mockito.Mockito;
diff --git a/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationBuilder.java b/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationBuilder.java
index 03f094612f5..6063c7a8f33 100644
--- a/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationBuilder.java
+++ b/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationBuilder.java
@@ -27,7 +27,7 @@ import org.elasticsearch.common.xcontent.ConstructingObjectParser;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.index.query.QueryShardContext;
-import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
import org.opensearch.search.internal.SearchContext;
import java.io.IOException;
diff --git a/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationPlugin.java b/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationPlugin.java
index 387e305c3c3..128f797307c 100644
--- a/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationPlugin.java
+++ b/test/external-modules/delayed-aggs/src/main/java/org/elasticsearch/search/aggregations/DelayedShardAggregationPlugin.java
@@ -23,7 +23,7 @@ import java.util.List;
import org.elasticsearch.plugins.Plugin;
import org.elasticsearch.plugins.SearchPlugin;
-import org.elasticsearch.search.aggregations.bucket.filter.InternalFilter;
+import org.opensearch.search.aggregations.bucket.filter.InternalFilter;
import static java.util.Collections.singletonList;
diff --git a/test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java b/test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java
index eb4f9070b9b..dd73f81b65e 100644
--- a/test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java
+++ b/test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java
@@ -106,7 +106,7 @@ import org.opensearch.script.ScriptService;
import org.opensearch.search.SearchModule;
import org.elasticsearch.search.aggregations.AggregatorFactories.Builder;
import org.elasticsearch.search.aggregations.MultiBucketConsumerService.MultiBucketConsumer;
-import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
import org.opensearch.search.aggregations.metrics.MetricsAggregator;
import org.opensearch.search.aggregations.pipeline.PipelineAggregator;
import org.opensearch.search.aggregations.pipeline.PipelineAggregator.PipelineTree;
diff --git a/test/framework/src/main/java/org/elasticsearch/search/aggregations/InternalSingleBucketAggregationTestCase.java b/test/framework/src/main/java/org/elasticsearch/search/aggregations/InternalSingleBucketAggregationTestCase.java
index 08e77d7c897..78c89f5e74e 100644
--- a/test/framework/src/main/java/org/elasticsearch/search/aggregations/InternalSingleBucketAggregationTestCase.java
+++ b/test/framework/src/main/java/org/elasticsearch/search/aggregations/InternalSingleBucketAggregationTestCase.java
@@ -23,8 +23,8 @@ import org.opensearch.common.bytes.BytesReference;
import org.elasticsearch.common.xcontent.ToXContent;
import org.elasticsearch.common.xcontent.XContentType;
import org.opensearch.rest.action.search.RestSearchAction;
-import org.elasticsearch.search.aggregations.bucket.InternalSingleBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.InternalSingleBucketAggregation;
+import org.opensearch.search.aggregations.bucket.ParsedSingleBucketAggregation;
import org.opensearch.search.aggregations.metrics.InternalMax;
import org.opensearch.search.aggregations.metrics.InternalMin;
import org.elasticsearch.test.InternalAggregationTestCase;
diff --git a/test/framework/src/main/java/org/elasticsearch/test/InternalAggregationTestCase.java b/test/framework/src/main/java/org/elasticsearch/test/InternalAggregationTestCase.java
index 3adeec1c765..28efd3e3bbc 100644
--- a/test/framework/src/main/java/org/elasticsearch/test/InternalAggregationTestCase.java
+++ b/test/framework/src/main/java/org/elasticsearch/test/InternalAggregationTestCase.java
@@ -47,58 +47,58 @@ import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext;
import org.elasticsearch.search.aggregations.MultiBucketConsumerService;
import org.elasticsearch.search.aggregations.MultiBucketConsumerService.MultiBucketConsumer;
import org.elasticsearch.search.aggregations.ParsedAggregation;
-import org.elasticsearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.adjacency.ParsedAdjacencyMatrix;
-import org.elasticsearch.search.aggregations.bucket.composite.CompositeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.composite.ParsedComposite;
-import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.filter.ParsedFilter;
-import org.elasticsearch.search.aggregations.bucket.filter.ParsedFilters;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.geogrid.ParsedGeoHashGrid;
-import org.elasticsearch.search.aggregations.bucket.geogrid.ParsedGeoTileGrid;
-import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.global.ParsedGlobal;
-import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.histogram.ParsedAutoDateHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.ParsedDateHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.ParsedHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.ParsedVariableWidthHistogram;
-import org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.missing.ParsedMissing;
-import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.nested.ParsedNested;
-import org.elasticsearch.search.aggregations.bucket.nested.ParsedReverseNested;
-import org.elasticsearch.search.aggregations.bucket.nested.ReverseNestedAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.DateRangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.range.ParsedBinaryRange;
-import org.elasticsearch.search.aggregations.bucket.range.ParsedDateRange;
-import org.elasticsearch.search.aggregations.bucket.range.ParsedGeoDistance;
-import org.elasticsearch.search.aggregations.bucket.range.ParsedRange;
-import org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder;
-import org.elasticsearch.search.aggregations.bucket.sampler.InternalSampler;
-import org.elasticsearch.search.aggregations.bucket.sampler.ParsedSampler;
-import org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.LongRareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.LongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedDoubleTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedLongRareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedLongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedSignificantLongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedSignificantStringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedStringRareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.ParsedStringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.SignificantStringTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.StringRareTerms;
-import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
+import org.opensearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.adjacency.ParsedAdjacencyMatrix;
+import org.opensearch.search.aggregations.bucket.composite.CompositeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.composite.ParsedComposite;
+import org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.filter.ParsedFilter;
+import org.opensearch.search.aggregations.bucket.filter.ParsedFilters;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.geogrid.ParsedGeoHashGrid;
+import org.opensearch.search.aggregations.bucket.geogrid.ParsedGeoTileGrid;
+import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.global.ParsedGlobal;
+import org.opensearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.histogram.ParsedAutoDateHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.ParsedDateHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.ParsedHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.ParsedVariableWidthHistogram;
+import org.opensearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.missing.ParsedMissing;
+import org.opensearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.nested.ParsedNested;
+import org.opensearch.search.aggregations.bucket.nested.ParsedReverseNested;
+import org.opensearch.search.aggregations.bucket.nested.ReverseNestedAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.range.ParsedBinaryRange;
+import org.opensearch.search.aggregations.bucket.range.ParsedDateRange;
+import org.opensearch.search.aggregations.bucket.range.ParsedGeoDistance;
+import org.opensearch.search.aggregations.bucket.range.ParsedRange;
+import org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder;
+import org.opensearch.search.aggregations.bucket.sampler.InternalSampler;
+import org.opensearch.search.aggregations.bucket.sampler.ParsedSampler;
+import org.opensearch.search.aggregations.bucket.terms.DoubleTerms;
+import org.opensearch.search.aggregations.bucket.terms.LongRareTerms;
+import org.opensearch.search.aggregations.bucket.terms.LongTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedDoubleTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedLongRareTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedLongTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedSignificantLongTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedSignificantStringTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedStringRareTerms;
+import org.opensearch.search.aggregations.bucket.terms.ParsedStringTerms;
+import org.opensearch.search.aggregations.bucket.terms.SignificantLongTerms;
+import org.opensearch.search.aggregations.bucket.terms.SignificantStringTerms;
+import org.opensearch.search.aggregations.bucket.terms.StringRareTerms;
+import org.opensearch.search.aggregations.bucket.terms.StringTerms;
import org.opensearch.search.aggregations.metrics.AvgAggregationBuilder;
import org.opensearch.search.aggregations.metrics.CardinalityAggregationBuilder;
import org.opensearch.search.aggregations.metrics.ExtendedStatsAggregationBuilder;
diff --git a/test/framework/src/main/java/org/elasticsearch/test/InternalMultiBucketAggregationTestCase.java b/test/framework/src/main/java/org/elasticsearch/test/InternalMultiBucketAggregationTestCase.java
index 1b784c6191d..55c88da0e73 100644
--- a/test/framework/src/main/java/org/elasticsearch/test/InternalMultiBucketAggregationTestCase.java
+++ b/test/framework/src/main/java/org/elasticsearch/test/InternalMultiBucketAggregationTestCase.java
@@ -27,7 +27,7 @@ import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation;
import org.elasticsearch.search.aggregations.MultiBucketConsumerService;
import org.elasticsearch.search.aggregations.ParsedAggregation;
import org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation;
-import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
+import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
import java.io.IOException;
import java.util.ArrayList;
diff --git a/test/framework/src/main/java/org/elasticsearch/search/aggregations/bucket/AbstractTermsTestCase.java b/test/framework/src/main/java/org/opensearch/search/aggregations/bucket/AbstractTermsTestCase.java
similarity index 94%
rename from test/framework/src/main/java/org/elasticsearch/search/aggregations/bucket/AbstractTermsTestCase.java
rename to test/framework/src/main/java/org/opensearch/search/aggregations/bucket/AbstractTermsTestCase.java
index 65ecd012bfe..822dc5d2aee 100644
--- a/test/framework/src/main/java/org/elasticsearch/search/aggregations/bucket/AbstractTermsTestCase.java
+++ b/test/framework/src/main/java/org/opensearch/search/aggregations/bucket/AbstractTermsTestCase.java
@@ -17,12 +17,12 @@
* under the License.
*/
-package org.elasticsearch.search.aggregations.bucket;
+package org.opensearch.search.aggregations.bucket;
import org.opensearch.action.search.SearchResponse;
import org.elasticsearch.search.aggregations.Aggregator.SubAggCollectionMode;
-import org.elasticsearch.search.aggregations.bucket.terms.Terms;
-import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregatorFactory.ExecutionMode;
+import org.opensearch.search.aggregations.bucket.terms.Terms;
+import org.opensearch.search.aggregations.bucket.terms.TermsAggregatorFactory.ExecutionMode;
import org.elasticsearch.test.ESIntegTestCase;
import static org.elasticsearch.search.aggregations.AggregationBuilders.terms;