com.groupbyinc.flux.search.suggest.completion.CompletionSuggester.class Maven / Gradle / Ivy
???? 4% Acom/groupbyinc/flux/search/suggest/completion/CompletionSuggester {Lcom/groupbyinc/flux/search/suggest/Suggester; ,com/groupbyinc/flux/search/suggest/Suggester CompletionSuggester.java Wcom/groupbyinc/flux/search/suggest/completion/CompletionSuggester$TopDocumentsCollector TopDocumentsCollector 5com/groupbyinc/flux/search/suggest/Suggest$Suggestion
*com/groupbyinc/flux/search/suggest/Suggest
Suggestion 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 bcom/groupbyinc/flux/search/suggest/completion/CompletionSuggester$TopDocumentsCollector$SuggestDoc
SuggestDoc _com/groupbyinc/flux/common/apache/lucene/search/suggest/document/TopSuggestDocs$SuggestScoreDoc Ocom/groupbyinc/flux/common/apache/lucene/search/suggest/document/TopSuggestDocs SuggestScoreDoc Jcom/groupbyinc/flux/index/mapper/CompletionFieldMapper$CompletionFieldType 6com/groupbyinc/flux/index/mapper/CompletionFieldMapper ! CompletionFieldType ;com/groupbyinc/flux/search/suggest/Suggest$Suggestion$Entry $ Bcom/groupbyinc/flux/search/suggest/Suggest$Suggestion$Entry$Option & Lcom/groupbyinc/flux/search/suggest/SuggestionSearchContext$SuggestionContext ( :com/groupbyinc/flux/search/suggest/SuggestionSearchContext * SuggestionContext INSTANCE CLcom/groupbyinc/flux/search/suggest/completion/CompletionSuggester; ()V / 0
1 this innerExecute(Ljava/lang/String;Lcom/groupbyinc/flux/search/suggest/completion/CompletionSuggestionContext;Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher;Lcom/groupbyinc/flux/common/apache/lucene/util/CharsRefBuilder;)Lcom/groupbyinc/flux/search/suggest/Suggest$Suggestion; java/io/IOException 6 Icom/groupbyinc/flux/search/suggest/completion/CompletionSuggestionContext 8 getFieldType N()Lcom/groupbyinc/flux/index/mapper/CompletionFieldMapper$CompletionFieldType; : ;
9 < getSize ()I > ?
9 @ (Ljava/lang/String;I)V / B
C getText :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; E F
9 G =com/groupbyinc/flux/common/apache/lucene/util/CharsRefBuilder I
copyUTF8Bytes ;(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V K L
J M $com/groupbyinc/flux/common/text/Text O toString ()Ljava/lang/String; Q R
J S (Ljava/lang/String;)V / U
P V length X ?
J Y +(Lcom/groupbyinc/flux/common/text/Text;II)V / [
\ addTerm @(Lcom/groupbyinc/flux/search/suggest/Suggest$Suggestion$Entry;)V ^ _
` (I)V / b
c toQuery T()Lcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/CompletionQuery; e f
9 g suggest ?(Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher;Lcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/CompletionQuery;Lcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/TopSuggestDocsCollector;)V i j
k Xcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/TopSuggestDocsCollector m get S()Lcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/TopSuggestDocs; o p
n q scoreLookupDocs d()[Lcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/TopSuggestDocs$SuggestScoreDoc; s t
u java/lang/String w =com/groupbyinc/flux/common/apache/lucene/search/IndexSearcher y b[Lcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/TopSuggestDocs$SuggestScoreDoc; { java/util/Collections } emptyMap ()Ljava/util/Map; ?
~ ? hasContextMappings ()Z ? ?
? getContexts ()Ljava/util/List; ? ?
? java/util/List ? isEmpty ? ? ? ? getContextMappings I()Lcom/groupbyinc/flux/search/suggest/completion/context/ContextMappings; ? ?
? Ecom/groupbyinc/flux/search/suggest/completion/context/ContextMappings ? getNamedContexts !(Ljava/util/List;)Ljava/util/Map; ? ?
? ?
java/util/Map ? doc I ? ? ? key Ljava/lang/CharSequence; ? ? ? java/lang/CharSequence ? ? S score F ? ? ? :(ILcom/groupbyinc/flux/common/text/Text;FLjava/util/Map;)V / ?
? addOption G(Lcom/groupbyinc/flux/search/suggest/Suggest$Suggestion$Entry$Option;)V ? ?
? option QLcom/groupbyinc/flux/search/suggest/completion/CompletionSuggestion$Entry$Option;
suggestDoc dLcom/groupbyinc/flux/search/suggest/completion/CompletionSuggester$TopDocumentsCollector$SuggestDoc; contexts LLjava/util/Map;>; Ljava/util/Map; suggestScoreDoc aLcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/TopSuggestDocs$SuggestScoreDoc; fieldType LLcom/groupbyinc/flux/index/mapper/CompletionFieldMapper$CompletionFieldType; completionSuggestion DLcom/groupbyinc/flux/search/suggest/completion/CompletionSuggestion; completionSuggestEntry JLcom/groupbyinc/flux/search/suggest/completion/CompletionSuggestion$Entry; collector ZLcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/TopSuggestDocsCollector; numResult name Ljava/lang/String; suggestionContext KLcom/groupbyinc/flux/search/suggest/completion/CompletionSuggestionContext; searcher ?Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher; spare ?Lcom/groupbyinc/flux/common/apache/lucene/util/CharsRefBuilder; Mcom/groupbyinc/flux/common/apache/lucene/search/CollectionTerminatedException ? getIndexReader >()Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader; ? ?
z ? Pcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/CompletionQuery ? rewrite u(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; ? ?
? ? needsScores ? ?
n ? createWeight {(Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher;ZF)Lcom/groupbyinc/flux/common/apache/lucene/search/Weight; ? ?
? ? :com/groupbyinc/flux/common/apache/lucene/index/IndexReader ? leaves ? ?
? ? iterator ()Ljava/util/Iterator; ? ? ? ? 6com/groupbyinc/flux/common/apache/lucene/search/Weight ? java/util/Iterator ? hasNext ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? @com/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext ?
bulkScorer ?(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/BulkScorer; ? ?
? ? getLeafCollector ?(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/LeafCollector; ? ?
n ? reader =()Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader; ? ?
? ? 9com/groupbyinc/flux/common/apache/lucene/index/LeafReader getLiveDocs 6()Lcom/groupbyinc/flux/common/apache/lucene/util/Bits;
:com/groupbyinc/flux/common/apache/lucene/search/BulkScorer v(Lcom/groupbyinc/flux/common/apache/lucene/search/LeafCollector;Lcom/groupbyinc/flux/common/apache/lucene/util/Bits;)V ?
scorer