com.groupbyinc.flux.action.search.SearchPhaseController.class Maven / Gradle / Ivy
???? 4? 7com/groupbyinc/flux/action/search/SearchPhaseController 6com/groupbyinc/flux/common/component/AbstractComponent SearchPhaseController.java Ecom/groupbyinc/flux/action/search/SearchPhaseController$SortedTopDocs
SortedTopDocs Dcom/groupbyinc/flux/action/search/SearchPhaseController$TopDocsStats TopDocsStats Pcom/groupbyinc/flux/action/search/SearchPhaseController$QueryPhaseResultConsumer QueryPhaseResultConsumer Icom/groupbyinc/flux/action/search/SearchPhaseController$ReducedQueryPhase ReducedQueryPhase 9com/groupbyinc/flux/action/search/SearchPhaseController$1 Icom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext ;com/groupbyinc/flux/search/aggregations/InternalAggregation
ReduceContext Hcom/groupbyinc/flux/search/suggest/completion/CompletionSuggestion$Entry Bcom/groupbyinc/flux/search/suggest/completion/CompletionSuggestion Entry Ocom/groupbyinc/flux/search/suggest/completion/CompletionSuggestion$Entry$Option Option 5com/groupbyinc/flux/search/suggest/Suggest$Suggestion ! *com/groupbyinc/flux/search/suggest/Suggest #
Suggestion ;com/groupbyinc/flux/search/suggest/Suggest$Suggestion$Entry & Bcom/groupbyinc/flux/search/suggest/Suggest$Suggestion$Entry$Option ( Lcom/groupbyinc/flux/action/search/InitialSearchPhase$ArraySearchPhaseResults * 4com/groupbyinc/flux/action/search/InitialSearchPhase , ArraySearchPhaseResults >com/groupbyinc/flux/common/apache/lucene/search/SortField$Type / 9com/groupbyinc/flux/common/apache/lucene/search/SortField 1 Type Ccom/groupbyinc/flux/search/aggregations/AggregatorFactories$Builder 4 ;com/groupbyinc/flux/search/aggregations/AggregatorFactories 6 Builder %java/lang/invoke/MethodHandles$Lookup 9 java/lang/invoke/MethodHandles ; Lookup
EMPTY_DOCS ;[Lcom/groupbyinc/flux/common/apache/lucene/search/ScoreDoc; reduceContextFunction Ljava/util/function/Function; }Ljava/util/function/Function; $assertionsDisabled Z N(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/function/Function;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V E G
H @ A J this 9Lcom/groupbyinc/flux/action/search/SearchPhaseController; settings .Lcom/groupbyinc/flux/common/settings/Settings; aggregateDfs F(Ljava/util/Collection;)Lcom/groupbyinc/flux/search/dfs/AggregatedDfs; +com/groupbyinc/flux/common/collect/HppcMaps R newNoNullKeysMap D()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectObjectHashMap; T U
S V java/util/Collection X iterator ()Ljava/util/Iterator; Z [ Y \ @com/groupbyinc/flux/common/carrotsearch/hppc/ObjectObjectHashMap ^ java/util/Iterator ` hasNext ()Z b c a d next ()Ljava/lang/Object; f g a h .com/groupbyinc/flux/search/dfs/DfsSearchResult j terms 8()[Lcom/groupbyinc/flux/common/apache/lucene/index/Term; l m
k n termStatistics C()[Lcom/groupbyinc/flux/common/apache/lucene/search/TermStatistics; p q
k r C D t java/lang/AssertionError v ()V E x
w y 6[Lcom/groupbyinc/flux/common/apache/lucene/index/Term; { A[Lcom/groupbyinc/flux/common/apache/lucene/search/TermStatistics; } get &(Ljava/lang/Object;)Ljava/lang/Object; ?
_ ? >com/groupbyinc/flux/common/apache/lucene/search/TermStatistics ? 3com/groupbyinc/flux/common/apache/lucene/index/Term ? bytes :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; ? ?
? ? term ? ?
? ? 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef ? equals (Ljava/lang/Object;)Z ? ?
? ? docFreq ()J ? ?
? ?
totalTermFreq ? ?
? ? optionalSum (JJ)J ? ?
? =(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;JJ)V E ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ?
_ ? fieldStatistics ? U
k ? containsKey ? ?
_ ? keys [Ljava/lang/Object; ? ? _ ? values ? ? _ ? ? java/lang/String ? Dcom/groupbyinc/flux/common/apache/lucene/search/CollectionStatistics ? maxDoc ? ?
? ? docCount ? ?
? ? sumTotalTermFreq ? ?
? ?
sumDocFreq ? ?
? ? (Ljava/lang/String;JJJJ)V E ?
? ? ()I ? ?
k ? ,com/groupbyinc/flux/search/dfs/AggregatedDfs ? ?(Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectObjectHashMap;Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectObjectHashMap;J)V E ?
? ? existing @Lcom/groupbyinc/flux/common/apache/lucene/search/TermStatistics; i I merged FLcom/groupbyinc/flux/common/apache/lucene/search/CollectionStatistics; key Ljava/lang/String; value stats lEntry 0Lcom/groupbyinc/flux/search/dfs/DfsSearchResult; results HLjava/util/Collection; Ljava/util/Collection; ?Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectObjectHashMap; BLcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectObjectHashMap; ?Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectObjectHashMap; aggMaxDoc J java/lang/Math ? min ? ?
? ????????? left right sortDocs ?(ZLjava/util/Collection;Ljava/util/Collection;Lcom/groupbyinc/flux/action/search/SearchPhaseController$TopDocsStats;II)Lcom/groupbyinc/flux/action/search/SearchPhaseController$SortedTopDocs; isEmpty ? c Y ? EMPTY GLcom/groupbyinc/flux/action/search/SearchPhaseController$SortedTopDocs; ? ? ? java/util/ArrayList ?
? y java/util/HashMap ?
? y
java/util/Map ? ,com/groupbyinc/flux/search/SearchPhaseResult ? queryResult 6()Lcom/groupbyinc/flux/search/query/QuerySearchResult; ?
? 2com/groupbyinc/flux/search/query/QuerySearchResult hasConsumedTopDocs c
consumeTopDocs ;()Lcom/groupbyinc/flux/common/apache/lucene/search/TopDocs;
7com/groupbyinc/flux/common/apache/lucene/search/TopDocs add <(Lcom/groupbyinc/flux/common/apache/lucene/search/TopDocs;)V
scoreDocs ?
getShardIndex ?
setShardIndex =(Lcom/groupbyinc/flux/common/apache/lucene/search/TopDocs;I)V
? Y hasSuggestHits c
suggest .()Lcom/groupbyinc/flux/search/suggest/Suggest;!"
# filter #(Ljava/lang/Class;)Ljava/util/List;%&
$' java/util/List)* \
? (I)V-
. getName ()Ljava/lang/String;01
2 "java/lang/invoke/LambdaMetafactory4 metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;67
589 ? lambda$sortDocs$0 $(Ljava/lang/String;)Ljava/util/List;<=
>?= apply ()Ljava/util/function/Function;BC D computeIfAbsent C(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;FG ?H* ? ? mergeTopDocs S(Ljava/util/Collection;II)Lcom/groupbyinc/flux/common/apache/lucene/search/TopDocs;LM
N > ? P ? sizeS ? ?T E-
?V ()Ljava/util/Collection; ?X ?Y reduceTo V(Ljava/util/List;)Lcom/groupbyinc/flux/search/suggest/completion/CompletionSuggestion;[\
]
getOptions ()Ljava/util/List;_`
a*T 8com/groupbyinc/flux/common/apache/lucene/search/ScoreDocd java/lang/Systemf arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)Vhi
gj (Ljava/util/List;)V El
$m getDoc <()Lcom/groupbyinc/flux/common/apache/lucene/search/ScoreDoc;op
q