com.groupbyinc.flux.search.aggregations.metrics.tophits.TopHitsAggregator.class Maven / Gradle / Ivy
???? 4L Icom/groupbyinc/flux/search/aggregations/metrics/tophits/TopHitsAggregator Acom/groupbyinc/flux/search/aggregations/metrics/MetricsAggregator TopHitsAggregator.java acom/groupbyinc/flux/search/aggregations/metrics/tophits/TopHitsAggregator$TopDocsAndLeafCollector TopDocsAndLeafCollector Kcom/groupbyinc/flux/search/aggregations/metrics/tophits/TopHitsAggregator$1 =com/groupbyinc/flux/common/util/LongObjectPagedHashMap$Cursor 6com/groupbyinc/flux/common/util/LongObjectPagedHashMap
Cursor
fetchPhase -Lcom/groupbyinc/flux/search/fetch/FetchPhase; subSearchContext 6Lcom/groupbyinc/flux/search/internal/SubSearchContext; topDocsCollectors 8Lcom/groupbyinc/flux/common/util/LongObjectPagedHashMap; ?Lcom/groupbyinc/flux/common/util/LongObjectPagedHashMap; ?(Lcom/groupbyinc/flux/search/fetch/FetchPhase;Lcom/groupbyinc/flux/search/internal/SubSearchContext;Ljava/lang/String;Lcom/groupbyinc/flux/search/internal/SearchContext;Lcom/groupbyinc/flux/search/aggregations/Aggregator;Ljava/util/List;Ljava/util/Map;)V java/io/IOException ?(Ljava/lang/String;Lcom/groupbyinc/flux/search/internal/SearchContext;Lcom/groupbyinc/flux/search/aggregations/Aggregator;Ljava/util/List;Ljava/util/Map;)V
1com/groupbyinc/flux/search/internal/SearchContext bigArrays -()Lcom/groupbyinc/flux/common/util/BigArrays; " #
! $ /(JLcom/groupbyinc/flux/common/util/BigArrays;)V &
' ) + this KLcom/groupbyinc/flux/search/aggregations/metrics/tophits/TopHitsAggregator; name Ljava/lang/String; context 3Lcom/groupbyinc/flux/search/internal/SearchContext; parent 4Lcom/groupbyinc/flux/search/aggregations/Aggregator; pipelineAggregators WLjava/util/List; Ljava/util/List; metaData 5Ljava/util/Map; Ljava/util/Map; needsScores ()Z 4com/groupbyinc/flux/search/internal/SubSearchContext = sort 2()Lcom/groupbyinc/flux/search/sort/SortAndFormats; ? @
> A .com/groupbyinc/flux/search/sort/SortAndFormats C 6Lcom/groupbyinc/flux/common/apache/lucene/search/Sort; ? E D F 4com/groupbyinc/flux/common/apache/lucene/search/Sort H ; <
I J trackScores L <
> M 0Lcom/groupbyinc/flux/search/sort/SortAndFormats; getLeafCollector ?(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;Lcom/groupbyinc/flux/search/aggregations/LeafBucketCollector;)Lcom/groupbyinc/flux/search/aggregations/LeafBucketCollector; iterator ()Ljava/util/Iterator; R S
T java/util/Iterator V hasNext X < W Y next ()Ljava/lang/Object; [ \ W ] value Ljava/lang/Object; _ ` a topLevelCollector BLcom/groupbyinc/flux/common/apache/lucene/search/TopDocsCollector; c d e @com/groupbyinc/flux/common/apache/lucene/search/TopDocsCollector g ?(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/LeafCollector; P i
h j
leafCollector ?Lcom/groupbyinc/flux/common/apache/lucene/search/LeafCollector; l m n ?(Lcom/groupbyinc/flux/search/aggregations/metrics/tophits/TopHitsAggregator;Lcom/groupbyinc/flux/search/aggregations/LeafBucketCollector;Ljava/lang/Object;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;)V p
q cursor ?Lcom/groupbyinc/flux/common/util/LongObjectPagedHashMap$Cursor; ?Lcom/groupbyinc/flux/common/util/LongObjectPagedHashMap$Cursor; ctx BLcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext; sub =Lcom/groupbyinc/flux/search/aggregations/LeafBucketCollector; buildAggregation @(J)Lcom/groupbyinc/flux/search/aggregations/InternalAggregation; get (J)Ljava/lang/Object; | }
~ buildEmptyAggregation K()Lcom/groupbyinc/flux/search/aggregations/metrics/tophits/InternalTopHits; ? ?
? topDocs ;()Lcom/groupbyinc/flux/common/apache/lucene/search/TopDocs; ? ?
h ? 5()Lcom/groupbyinc/flux/search/internal/SearchContext; 1 ?
? rescore ()Ljava/util/List; ? ?
! ? java/util/List ? ? T 7com/groupbyinc/flux/common/apache/lucene/search/TopDocs ? 7com/groupbyinc/flux/search/rescore/RescoreSearchContext ? rescorer /()Lcom/groupbyinc/flux/search/rescore/Rescorer; ? ?
? ? 1 2 ? +com/groupbyinc/flux/search/rescore/Rescorer ? ?(Lcom/groupbyinc/flux/common/apache/lucene/search/TopDocs;Lcom/groupbyinc/flux/search/internal/SearchContext;Lcom/groupbyinc/flux/search/rescore/RescoreSearchContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/TopDocs; ? ? ? ? *com/groupbyinc/flux/ElasticsearchException ? Rescore TopHits Failed ? java/lang/Object ? =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ?
? ? queryResult 6()Lcom/groupbyinc/flux/search/query/QuerySearchResult; ? ?
> ? 2com/groupbyinc/flux/search/query/QuerySearchResult ? formats ,[Lcom/groupbyinc/flux/search/DocValueFormat; ? ? D ? ? h(Lcom/groupbyinc/flux/common/apache/lucene/search/TopDocs;[Lcom/groupbyinc/flux/search/DocValueFormat;)V ? ?
? ? scoreDocs ;[Lcom/groupbyinc/flux/common/apache/lucene/search/ScoreDoc; ? ? ? ? [I ? 8com/groupbyinc/flux/common/apache/lucene/search/ScoreDoc ? doc I ? ? ? ? docIdsToLoad 9([III)Lcom/groupbyinc/flux/search/internal/SearchContext; ? ?
> ? +com/groupbyinc/flux/search/fetch/FetchPhase ? execute 6(Lcom/groupbyinc/flux/search/internal/SearchContext;)V ? ?
? ? fetchResult 6()Lcom/groupbyinc/flux/search/fetch/FetchSearchResult; ? ?
> ? 2com/groupbyinc/flux/search/fetch/FetchSearchResult ?
? ? hits )()Lcom/groupbyinc/flux/search/SearchHits; ? ?
? ? %com/groupbyinc/flux/search/SearchHits ? getHits )()[Lcom/groupbyinc/flux/search/SearchHit; ? ?
? ? '[Lcom/groupbyinc/flux/search/SearchHit; ? shardTarget 0()Lcom/groupbyinc/flux/search/SearchShardTarget; ? ?
> ? $com/groupbyinc/flux/search/SearchHit ? shard 1(Lcom/groupbyinc/flux/search/SearchShardTarget;)V ? ?
? ? score F ? ? ? ? (F)V ? ?
? ? 8com/groupbyinc/flux/common/apache/lucene/search/FieldDoc ? fields [Ljava/lang/Object; ? ? ? ?
sortValues B([Ljava/lang/Object;[Lcom/groupbyinc/flux/search/DocValueFormat;)V ? ?
? ? Gcom/groupbyinc/flux/search/aggregations/metrics/tophits/InternalTopHits ? / 0 ? from ()I
> size
> 5 ?
()Ljava/util/Map; 8
?(Ljava/lang/String;IILcom/groupbyinc/flux/common/apache/lucene/search/TopDocs;Lcom/groupbyinc/flux/search/SearchHits;Ljava/util/List;Ljava/util/Map;)V
?
topHits ILcom/groupbyinc/flux/search/aggregations/metrics/tophits/InternalTopHits; e Ljava/io/IOException; 9Lcom/groupbyinc/flux/search/rescore/RescoreSearchContext; i fieldDoc :Lcom/groupbyinc/flux/common/apache/lucene/search/FieldDoc; scoreDoc :Lcom/groupbyinc/flux/common/apache/lucene/search/ScoreDoc; searchHitFields &Lcom/groupbyinc/flux/search/SearchHit; 9Lcom/groupbyinc/flux/common/apache/lucene/search/TopDocs; 4Lcom/groupbyinc/flux/search/fetch/FetchSearchResult; internalHits owningBucketOrdinal J topDocsCollector cLcom/groupbyinc/flux/search/aggregations/metrics/tophits/TopHitsAggregator$TopDocsAndLeafCollector;