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 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 # Icom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext % ;com/groupbyinc/flux/search/aggregations/InternalAggregation '
ReduceContext 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; bigArrays +Lcom/groupbyinc/flux/common/util/BigArrays;
scriptService *Lcom/groupbyinc/flux/script/ScriptService; $assertionsDisabled Z ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/util/BigArrays;Lcom/groupbyinc/flux/script/ScriptService;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V F H
I @ A K B C M 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 U newNoNullKeysMap D()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectObjectHashMap; W X
V Y java/util/Collection [ iterator ()Ljava/util/Iterator; ] ^ \ _ @com/groupbyinc/flux/common/carrotsearch/hppc/ObjectObjectHashMap a java/util/Iterator c hasNext ()Z e f d g next ()Ljava/lang/Object; i j d k .com/groupbyinc/flux/search/dfs/DfsSearchResult m terms 8()[Lcom/groupbyinc/flux/common/apache/lucene/index/Term; o p
n q termStatistics C()[Lcom/groupbyinc/flux/common/apache/lucene/search/TermStatistics; s t
n u D E w java/lang/AssertionError y ()V F {
z | 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; ? ?
b ? >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 F ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ?
b ? fieldStatistics ? X
n ? containsKey ? ?
b ? keys [Ljava/lang/Object; ? ? b ? values ? ? b ? ? java/lang/String ? Dcom/groupbyinc/flux/common/apache/lucene/search/CollectionStatistics ? maxDoc ? ?
? ? docCount ? ?
? ? sumTotalTermFreq ? ?
? ?
sumDocFreq ? ?
? ? (Ljava/lang/String;JJJJ)V F ?
? ? ()I ? ?
n ? ,com/groupbyinc/flux/search/dfs/AggregatedDfs ? ?(Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectObjectHashMap;Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectObjectHashMap;J)V F ?
? ? 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 ? f \ ? EMPTY GLcom/groupbyinc/flux/action/search/SearchPhaseController$SortedTopDocs; ? ? ? java/util/ArrayList ?
? | java/util/HashMap ?
? |
java/util/Map ? ,com/groupbyinc/flux/search/SearchPhaseResult queryResult 6()Lcom/groupbyinc/flux/search/query/QuerySearchResult;
2com/groupbyinc/flux/search/query/QuerySearchResult hasConsumedTopDocs f
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
? \ hasSuggestHits! f
" suggest .()Lcom/groupbyinc/flux/search/suggest/Suggest;$%
& filter #(Ljava/lang/Class;)Ljava/util/List;()
* java/util/List,- _
(I)V0
1 getName ()Ljava/lang/String;34
5 "java/lang/invoke/LambdaMetafactory7 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;9:
8;< ? lambda$sortDocs$0 $(Ljava/lang/String;)Ljava/util/List;?@
AB@ apply ()Ljava/util/function/Function;EF G computeIfAbsent C(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;IJ ?K- ? ? mergeTopDocs S(Ljava/util/Collection;II)Lcom/groupbyinc/flux/common/apache/lucene/search/TopDocs;OP
Q > ? S ? sizeV ? ?W F0
?Y ()Ljava/util/Collection; ?[ ?\ reduceTo V(Ljava/util/List;)Lcom/groupbyinc/flux/search/suggest/completion/CompletionSuggestion;^_
`
getOptions ()Ljava/util/List;bc
d-W 8com/groupbyinc/flux/common/apache/lucene/search/ScoreDocg java/lang/Systemi arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)Vkl
jm (Ljava/util/List;)V Fo
p getDoc <()Lcom/groupbyinc/flux/common/apache/lucene/search/ScoreDoc;rs
t