com.groupbyinc.flux.percolator.PercolatorHighlightSubFetchPhase.class Maven / Gradle / Ivy
???? 4E ?com/groupbyinc/flux/percolator/PercolatorHighlightSubFetchPhase java/lang/Object .com/groupbyinc/flux/search/fetch/FetchSubPhase %PercolatorHighlightSubFetchPhase.java 8com/groupbyinc/flux/percolator/PercolateQuery$QueryStore -com/groupbyinc/flux/percolator/PercolateQuery
QueryStore 9com/groupbyinc/flux/search/fetch/FetchSubPhase$HitContext
HitContext highlightPhase DLcom/groupbyinc/flux/search/fetch/subphase/highlight/HighlightPhase; @(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Map;)V ()V
Bcom/groupbyinc/flux/search/fetch/subphase/highlight/HighlightPhase
this ALcom/groupbyinc/flux/percolator/PercolatorHighlightSubFetchPhase; settings .Lcom/groupbyinc/flux/common/settings/Settings; highlighters dLjava/util/Map; Ljava/util/Map; hitsExecutionNeeded 6(Lcom/groupbyinc/flux/search/internal/SearchContext;)Z 1com/groupbyinc/flux/search/internal/SearchContext & highlight N()Lcom/groupbyinc/flux/search/fetch/subphase/highlight/SearchContextHighlight; ( )
' * query 9()Lcom/groupbyinc/flux/common/apache/lucene/search/Query; , -
' . locatePercolatorQuery h(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)Lcom/groupbyinc/flux/percolator/PercolateQuery; 0 1
2 context 3Lcom/groupbyinc/flux/search/internal/SearchContext; hitsExecute ](Lcom/groupbyinc/flux/search/internal/SearchContext;[Lcom/groupbyinc/flux/search/SearchHit;)V java/io/IOException 8 $ %
: java/lang/IllegalStateException < couldn't locate percolator query > (Ljava/lang/String;)V @
= A searcher <()Lcom/groupbyinc/flux/search/internal/ContextIndexSearcher; C D
' E 8com/groupbyinc/flux/search/internal/ContextIndexSearcher G getIndexReader >()Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader; I J
H K :com/groupbyinc/flux/common/apache/lucene/index/IndexReader M leaves ()Ljava/util/List; O P
N Q getPercolatorIndexSearcher A()Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher; S T
U
getQueryStore <()Lcom/groupbyinc/flux/percolator/PercolateQuery$QueryStore; W X
Y =com/groupbyinc/flux/common/apache/lucene/search/IndexSearcher [
\ K java/util/List ^ get (I)Ljava/lang/Object; ` a _ b @com/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext d
getDocumentSource 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; g h
i createSubSearchContext ?(Lcom/groupbyinc/flux/search/internal/SearchContext;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/search/internal/SubSearchContext; k l
m '[Lcom/groupbyinc/flux/search/SearchHit; o 4com/groupbyinc/flux/search/internal/SubSearchContext q $com/groupbyinc/flux/search/SearchHit s docId ()I u v
t w 9com/groupbyinc/flux/common/apache/lucene/index/ReaderUtil y subIndex (ILjava/util/List;)I { |
z } docBase I ? e ?
getQueries p(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;)Lcom/groupbyinc/flux/common/CheckedFunction; ? ? ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? *com/groupbyinc/flux/common/CheckedFunction ? apply &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? 5com/groupbyinc/flux/common/apache/lucene/search/Query ? java/lang/RuntimeException ? (Ljava/lang/Throwable;)V ?
? ? +com/groupbyinc/flux/index/query/ParsedQuery ? :(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)V ?
? ? parsedQuery b(Lcom/groupbyinc/flux/index/query/ParsedQuery;)Lcom/groupbyinc/flux/search/internal/SearchContext; ? ?
r ? unknown ? $com/groupbyinc/flux/common/text/Text ? getType ()Ljava/lang/String; ? ?
t ?
? A java/util/Collections ? emptyMap ()Ljava/util/Map; ? ?
? ? K(ILjava/lang/String;Lcom/groupbyinc/flux/common/text/Text;Ljava/util/Map;)V ?
t ? reset ?(Lcom/groupbyinc/flux/search/SearchHit;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;ILcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher;)V ? ?
? cache ? ?
?
java/util/Map ? clear ? ? ?
hitExecute q(Lcom/groupbyinc/flux/search/internal/SearchContext;Lcom/groupbyinc/flux/search/fetch/FetchSubPhase$HitContext;)V ? ?
? getHighlightFields ? ?
t ? hit (()Lcom/groupbyinc/flux/search/SearchHit; ? ?
? putAll (Ljava/util/Map;)V ? ? ? ? ctx BLcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext; segmentDocId 7Lcom/groupbyinc/flux/common/apache/lucene/search/Query; e Ljava/io/IOException; &Lcom/groupbyinc/flux/search/SearchHit; hits percolateQuery /Lcom/groupbyinc/flux/percolator/PercolateQuery; ctxs TLjava/util/List; Ljava/util/List; percolatorIndexSearcher ?Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher;
queryStore :Lcom/groupbyinc/flux/percolator/PercolateQuery$QueryStore; percolatorLeafReaderContext
hitContext ;Lcom/groupbyinc/flux/search/fetch/FetchSubPhase$HitContext; subSearchContext 6Lcom/groupbyinc/flux/search/internal/SubSearchContext;