com.groupbyinc.flux.percolator.PercolatorHighlightSubFetchPhase.class Maven / Gradle / Ivy
???? 4? ?com/groupbyinc/flux/percolator/PercolatorHighlightSubFetchPhase java/lang/Object .com/groupbyinc/flux/search/fetch/FetchSubPhase %PercolatorHighlightSubFetchPhase.java java/util/Map$Entry
java/util/Map
Entry 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; 1 2
, 3 locatePercolatorQuery I(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)Ljava/util/List; 5 6
7 java/util/List 9 isEmpty ()Z ; < : = context 3Lcom/groupbyinc/flux/search/internal/SearchContext; hitsExecute ](Lcom/groupbyinc/flux/search/internal/SearchContext;[Lcom/groupbyinc/flux/search/SearchHit;)V java/io/IOException C ) *
E java/lang/IllegalStateException G couldn't locate percolator query I (Ljava/lang/String;)V K
H L size ()I N O : P iterator ()Ljava/util/Iterator; R S : T java/util/Iterator V hasNext X < W Y next ()Ljava/lang/Object; [ \ W ] _percolator_document_slot _ java/lang/StringBuilder a
b _percolator_document_slot_ d append -(Ljava/lang/String;)Ljava/lang/StringBuilder; f g
b h getName ()Ljava/lang/String; j k
l toString n k
b o java/lang/String q searcher <()Lcom/groupbyinc/flux/search/internal/ContextIndexSearcher; s t
, u 8com/groupbyinc/flux/search/internal/ContextIndexSearcher w getIndexReader >()Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader; y z
x { :com/groupbyinc/flux/common/apache/lucene/index/IndexReader } leaves ()Ljava/util/List; ?
~ ? getPercolatorIndexSearcher A()Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher; ? ?
?
getQueryStore <()Lcom/groupbyinc/flux/percolator/PercolateQuery$QueryStore; ? ?
? =com/groupbyinc/flux/common/apache/lucene/search/IndexSearcher ?
? { get (I)Ljava/lang/Object; ? ? : ? @com/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext ?
'[Lcom/groupbyinc/flux/search/SearchHit; ? $com/groupbyinc/flux/search/SearchHit ? docId ? O
? ? 9com/groupbyinc/flux/common/apache/lucene/index/ReaderUtil ? subIndex (ILjava/util/List;)I ? ?
? ? docBase I ? ? ? ?
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 ? field G(Ljava/lang/String;)Lcom/groupbyinc/flux/common/document/DocumentField; ? ?
? ? 1com/groupbyinc/flux/common/document/DocumentField ? getValues ? ?
? ? intValue ? O
? ? getDocuments ? ?
? /com/groupbyinc/flux/common/bytes/BytesReference ? createSubSearchContext ?(Lcom/groupbyinc/flux/search/internal/SearchContext;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;Lcom/groupbyinc/flux/common/bytes/BytesReference;I)Lcom/groupbyinc/flux/search/internal/SubSearchContext; ? ?
? +com/groupbyinc/flux/index/query/ParsedQuery ? :(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)V ?
? ? 4com/groupbyinc/flux/search/internal/SubSearchContext ? parsedQuery b(Lcom/groupbyinc/flux/index/query/ParsedQuery;)Lcom/groupbyinc/flux/search/internal/SearchContext; ? ?
? ? unknown ? $com/groupbyinc/flux/common/text/Text ? getType ? k
? ?
? L java/util/Collections ? emptyMap ()Ljava/util/Map; ? ?
? ? K(ILjava/lang/String;Lcom/groupbyinc/flux/common/text/Text;Ljava/util/Map;)V ?
? ? reset ?(Lcom/groupbyinc/flux/search/SearchHit;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;ILcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher;)V ? ?
? cache ? ?
? clear ? ?
hitExecute q(Lcom/groupbyinc/flux/search/internal/SearchContext;Lcom/groupbyinc/flux/search/fetch/FetchSubPhase$HitContext;)V ? ?
? hit (()Lcom/groupbyinc/flux/search/SearchHit; ? ?
? getHighlightFields ? ?
? ? entrySet ()Ljava/util/Set; ? ?
java/util/Set T getKey \ _ Bcom/groupbyinc/flux/search/fetch/subphase/highlight/HighlightField
getValue \
fragments )()[Lcom/groupbyinc/flux/common/text/Text;
<(Ljava/lang/String;[Lcom/groupbyinc/flux/common/text/Text;)V
put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; (I)Ljava/lang/StringBuilder; f
b hlFieldName Ljava/lang/String; entry mLjava/util/Map$Entry; Ljava/util/Map$Entry; slot document 1Lcom/groupbyinc/flux/common/bytes/BytesReference; subSearchContext 6Lcom/groupbyinc/flux/search/internal/SubSearchContext; matchedSlot Ljava/lang/Object; 3Lcom/groupbyinc/flux/common/document/DocumentField; ctx BLcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext; segmentDocId 7Lcom/groupbyinc/flux/common/apache/lucene/search/Query; &Lcom/groupbyinc/flux/search/SearchHit; fieldName 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; percolateQuery /Lcom/groupbyinc/flux/percolator/PercolateQuery; hits percolateQueries ALjava/util/List; singlePercolateQuery Z
singletonList $(Ljava/lang/Object;)Ljava/util/List;AB
?C