com.groupbyinc.flux.search.suggest.SuggestPhase.class Maven / Gradle / Ivy
???? 4 ? /com/groupbyinc/flux/search/suggest/SuggestPhase 6com/groupbyinc/flux/common/component/AbstractComponent &com/groupbyinc/flux/search/SearchPhase SuggestPhase.java Lcom/groupbyinc/flux/search/suggest/SuggestionSearchContext$SuggestionContext :com/groupbyinc/flux/search/suggest/SuggestionSearchContext
SuggestionContext 5com/groupbyinc/flux/search/suggest/Suggest$Suggestion
*com/groupbyinc/flux/search/suggest/Suggest
Suggestion java/util/Map$Entry
java/util/Map Entry ;com/groupbyinc/flux/search/suggest/Suggest$Suggestion$Entry Bcom/groupbyinc/flux/search/suggest/Suggest$Suggestion$Entry$Option Option $assertionsDisabled Z 1(Lcom/groupbyinc/flux/common/settings/Settings;)V
this 1Lcom/groupbyinc/flux/search/suggest/SuggestPhase; settings .Lcom/groupbyinc/flux/common/settings/Settings;
preProcess 6(Lcom/groupbyinc/flux/search/internal/SearchContext;)V context 3Lcom/groupbyinc/flux/search/internal/SearchContext; execute java/io/IOException + 1com/groupbyinc/flux/search/internal/SearchContext - suggest >()Lcom/groupbyinc/flux/search/suggest/SuggestionSearchContext; / 0
. 1 =com/groupbyinc/flux/common/apache/lucene/util/CharsRefBuilder 3 ()V 5
4 6 java/util/ArrayList 8 suggestions ()Ljava/util/Map; : ;
< size ()I > ? @ (I)V B
9 C entrySet ()Ljava/util/Set; E F G
java/util/Set I iterator ()Ljava/util/Iterator; K L J M java/util/List O java/util/Iterator Q hasNext ()Z S T R U next ()Ljava/lang/Object; W X R Y getValue [ X \ getSuggester 0()Lcom/groupbyinc/flux/search/suggest/Suggester; ^ _
` getKey b X c java/lang/String e searcher <()Lcom/groupbyinc/flux/search/internal/ContextIndexSearcher; g h
. i ,com/groupbyinc/flux/search/suggest/Suggester k(Ljava/lang/String;Lcom/groupbyinc/flux/search/suggest/SuggestionSearchContext$SuggestionContext;Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher;Lcom/groupbyinc/flux/common/apache/lucene/util/CharsRefBuilder;)Lcom/groupbyinc/flux/search/suggest/Suggest$Suggestion; * m
l n p name Ljava/lang/String; r s t equals (Ljava/lang/Object;)Z v w
f x java/lang/AssertionError z
{ 6 add } w P ~ queryResult 6()Lcom/groupbyinc/flux/search/query/QuerySearchResult; ? ?
. ? (Ljava/util/List;)V ?
? 2com/groupbyinc/flux/search/query/QuerySearchResult ? /(Lcom/groupbyinc/flux/search/suggest/Suggest;)V / ?
? ? *com/groupbyinc/flux/ElasticsearchException ? "I/O exception during suggest phase ? java/lang/Object ? =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ?
? ?
suggestion NLcom/groupbyinc/flux/search/suggest/SuggestionSearchContext$SuggestionContext; suggester ~Lcom/groupbyinc/flux/search/suggest/Suggester; .Lcom/groupbyinc/flux/search/suggest/Suggester; result ?Lcom/groupbyinc/flux/search/suggest/Suggest$Suggestion<+Lcom/groupbyinc/flux/search/suggest/Suggest$Suggestion$Entry<+Lcom/groupbyinc/flux/search/suggest/Suggest$Suggestion$Entry$Option;>;>; 7Lcom/groupbyinc/flux/search/suggest/Suggest$Suggestion; entry wLjava/util/Map$Entry; Ljava/util/Map$Entry; spare ?Lcom/groupbyinc/flux/common/apache/lucene/util/CharsRefBuilder; ?Ljava/util/List;>;>; Ljava/util/List; e Ljava/io/IOException;