com.groupbyinc.flux.common.apache.lucene.search.uhighlight.PhraseHelper.class Maven / Gradle / Ivy
???? 4? Gcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper java/lang/Object PhraseHelper.java Scom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper$CachedSpans CachedSpans ccom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper$SingleFieldFilterLeafReader SingleFieldFilterLeafReader Rcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper$MultiSpans
MultiSpans ]com/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper$FieldFilteringTermSet FieldFilteringTermSet Icom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper$2 Icom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper$1 Icom/groupbyinc/flux/common/apache/lucene/search/spans/SpanWeight$Postings @com/groupbyinc/flux/common/apache/lucene/search/spans/SpanWeight Postings %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup NONE ILcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper; SPANS_COMPARATOR Ljava/util/Comparator; VLjava/util/Comparator<-Lcom/groupbyinc/flux/common/apache/lucene/search/spans/Spans;>; fieldName Ljava/lang/String; positionInsensitiveTerms Ljava/util/Set; FLjava/util/Set; spanQueries RLjava/util/Set; willRewrite Z fieldMatcher Ljava/util/function/Predicate; 2Ljava/util/function/Predicate; ?(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Function;Ljava/util/function/Function;Z)V ()V 1 3
4 % & 6 . / 8 ?(Lcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper;Lcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper$1;)V 1 :
; ' ( = java/util/HashSet ?
@ 4 * ( B ?(Lcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper;Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Ljava/util/function/Function;Ljava/util/function/Predicate;Z[ZLjava/util/function/Function;)V 1 D
E , - G this query 7Lcom/groupbyinc/flux/common/apache/lucene/search/Query; field rewriteQueryPred sLjava/util/function/Function; Ljava/util/function/Function; preExtractRewriteFunction ?Ljava/util/function/Function;>; ignoreQueriesNeedingRewrite mustRewriteHolder [Z getSpanQueries ()Ljava/util/Set; hasPositionSensitivity ()Z
java/util/Set Y isEmpty [ X Z \ getTermToSpans M(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader;I)Ljava/util/Map; java/io/IOException ` java/util/Collections b emptyMap ()Ljava/util/Map; d e
c f P(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader;Ljava/lang/String;)V 1 h
i java/util/HashMap k
l 4 iterator ()Ljava/util/Iterator; n o Z p 9com/groupbyinc/flux/common/apache/lucene/index/LeafReader r
java/util/Map t java/util/Iterator v hasNext x X w y next ()Ljava/lang/Object; { | w } ?com/groupbyinc/flux/common/apache/lucene/search/spans/SpanQuery
getContext D()Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext; ? ?
s ? ?(Lcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanQuery;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;ILjava/util/Map;)V ^ ?
? spanQuery ALcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanQuery;
leafReader ;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader; doc I filteredReader result ?Ljava/util/Map; Ljava/util/Map; =com/groupbyinc/flux/common/apache/lucene/search/IndexSearcher ? @com/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext ? reader =()Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader; ? ?
? ? ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;)V 1 ?
? ?
setQueryCache ?(Lcom/groupbyinc/flux/common/apache/lucene/search/QueryCache;)V ? ?
? ? rewrite p(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; ? ?
? ? createWeight s(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;ZF)Lcom/groupbyinc/flux/common/apache/lucene/search/Weight; ? ?
? ? 6com/groupbyinc/flux/common/apache/lucene/search/Weight ? extractTerms (Ljava/util/Set;)V ? ?
? ? createNormalizedWeight r(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Z)Lcom/groupbyinc/flux/common/apache/lucene/search/Weight; ? ?
? ? POSITIONS KLcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanWeight$Postings; ? ? ? getSpans ?(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;Lcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanWeight$Postings;)Lcom/groupbyinc/flux/common/apache/lucene/search/spans/Spans; ? ?
? java/util/TreeSet ? ;com/groupbyinc/flux/common/apache/lucene/search/spans/Spans ? asTwoPhaseIterator D()Lcom/groupbyinc/flux/common/apache/lucene/search/TwoPhaseIterator; ? ?
? ? @com/groupbyinc/flux/common/apache/lucene/search/TwoPhaseIterator ?
approximation D()Lcom/groupbyinc/flux/common/apache/lucene/search/DocIdSetIterator; ? ?
? ? @com/groupbyinc/flux/common/apache/lucene/search/DocIdSetIterator ? advance (I)I ? ?
? ? matches ? X
? ?
? ? @(Lcom/groupbyinc/flux/common/apache/lucene/search/spans/Spans;)V 1 ?
?
? p 3com/groupbyinc/flux/common/apache/lucene/index/Term ? contains (Ljava/lang/Object;)Z ? ? Z ? X(Lcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper$CachedSpans;)V 1 ?
? bytes :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; ? ?
? ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ? u ? addSpans ? ?
?
4 put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? u ?
multiSpans TLcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper$MultiSpans; cachedSpans ULcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper$CachedSpans;
existingSpans =Lcom/groupbyinc/flux/common/apache/lucene/search/spans/Spans; queryTerm 5Lcom/groupbyinc/flux/common/apache/lucene/index/Term;
readerContext BLcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext; searcher ?Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher; termSet JLjava/util/TreeSet; Ljava/util/TreeSet;
spanWeight BLcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanWeight; spans twoPhaseIterator BLcom/groupbyinc/flux/common/apache/lucene/search/TwoPhaseIterator; cachedSpansSource expandTermsIfRewrite Z([Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Ljava/util/Map;)Ljava/util/List; , X
java/util/LinkedHashSet size ()I u
(I)V 1
addAll ,(Ljava/util/Collection;[Ljava/lang/Object;)Z
c keySet V u (Ljava/util/Collection;)Z Z Z
6com/groupbyinc/flux/common/apache/lucene/util/BytesRef toArray (([Ljava/lang/Object;)[Ljava/lang/Object; Z! java/util/Arrays# asList %([Ljava/lang/Object;)Ljava/util/List;%&
$' java/util/Comparator) naturalOrder ()Ljava/util/Comparator;+,*- java/util/List/ sort (Ljava/util/Comparator;)V1203 sourceTerms JLjava/util/List; Ljava/util/List;
allTermSet ILjava/util/Set; terms 9[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; strictPhrasesTermToSpans filterPostings ?(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Lcom/groupbyinc/flux/common/apache/lucene/index/PostingsEnum;Lcom/groupbyinc/flux/common/apache/lucene/search/spans/Spans;)Lcom/groupbyinc/flux/common/apache/lucene/index/PostingsEnum; W X
? M(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V 1A
?B ;com/groupbyinc/flux/common/apache/lucene/index/PostingsEnumD docIDF
EG
?G java/lang/IllegalStateExceptionJ 4Spans & Postings doc ID misaligned or not positionedL (Ljava/lang/String;)V 1N
KO;(Lcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper;Lcom/groupbyinc/flux/common/apache/lucene/index/PostingsEnum;Lcom/groupbyinc/flux/common/apache/lucene/index/PostingsEnum;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Lcom/groupbyinc/flux/common/apache/lucene/search/spans/Spans;)V 1Q
R term 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; postingsEnum =Lcom/groupbyinc/flux/common/apache/lucene/index/PostingsEnum; lambda$static$3 }(Lcom/groupbyinc/flux/common/apache/lucene/search/spans/Spans;Lcom/groupbyinc/flux/common/apache/lucene/search/spans/Spans;)I java/lang/IntegerZ compare (II)I\]
[^???
startPositiona
?b endPositiond
?e o1 o2 cmp lambda$static$2 O(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)Ljava/util/Collection; lambda$static$1 V(Lcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanQuery;)Ljava/lang/Boolean; lambda$static$0 (Ljava/lang/String;)Z s
access$100 Z(Lcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper;)Ljava/util/Set; x0
access$200
access$300 i(Lcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper;)Ljava/util/function/Predicate;
access$400 ](Lcom/groupbyinc/flux/common/apache/lucene/search/uhighlight/PhraseHelper;)Ljava/lang/String;
access$500 " # z Acom/groupbyinc/flux/common/apache/lucene/search/MatchAllDocsQuery}
~ 4 _ignored_? "java/lang/invoke/LambdaMetafactory? 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;??
??? ?no
??o test ()Ljava/util/function/Predicate;?? ? ?lm
??m apply ()Ljava/util/function/Function;?? ?jk
??k ? 1 2
? ! ? '(Ljava/lang/Object;Ljava/lang/Object;)I?XY
??Y\, ? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable?(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Function;Ljava/util/function/Function;>;Z)V T()Ljava/util/Set;
StackMapTable
Exceptions ?(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader;I)Ljava/util/Map;
(Lcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanQuery;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;ILjava/util/Map;)V([Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Ljava/util/Map;)Ljava/util/List; BootstrapMethods
SourceFile InnerClasses ! ! " # ? $ % &