com.groupbyinc.flux.common.apache.lucene.search.PhraseQuery.class Maven / Gradle / Ivy
???? 4 ;com/groupbyinc/flux/common/apache/lucene/search/PhraseQuery 5com/groupbyinc/flux/common/apache/lucene/search/Query PhraseQuery.java =com/groupbyinc/flux/common/apache/lucene/search/PhraseQuery$1 Hcom/groupbyinc/flux/common/apache/lucene/search/PhraseQuery$PhraseWeight PhraseWeight Kcom/groupbyinc/flux/common/apache/lucene/search/PhraseQuery$PostingsAndFreq PostingsAndFreq Ccom/groupbyinc/flux/common/apache/lucene/search/PhraseQuery$Builder Builder slop I field Ljava/lang/String; terms 6[Lcom/groupbyinc/flux/common/apache/lucene/index/Term; positions [I TERM_POSNS_SEEK_OPS_PER_DOC ? TERM_OPS_PER_POS $assertionsDisabled Z <(I[Lcom/groupbyinc/flux/common/apache/lucene/index/Term;[I)V ()V !
" "java/lang/IllegalArgumentException $ $Must have as many terms as positions & (Ljava/lang/String;)V (
% ) java/lang/StringBuilder -
. " Slop must be >= 0, got 0 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 2 3
. 4 (I)Ljava/lang/StringBuilder; 2 6
. 7 toString ()Ljava/lang/String; 9 :
. ; 3com/groupbyinc/flux/common/apache/lucene/index/Term = :
> ? java/lang/String A equals (Ljava/lang/Object;)Z C D
B E $All terms should have the same field G Positions must be >= 0, got I 'Positions should not go backwards, got K before M O Q S U i position this =Lcom/groupbyinc/flux/common/apache/lucene/search/PhraseQuery; incrementalPositions (I)[I length toTerms ](Ljava/lang/String;[Ljava/lang/String;)[Lcom/groupbyinc/flux/common/apache/lucene/index/Term; '(Ljava/lang/String;Ljava/lang/String;)V `
> a termStrings [Ljava/lang/String; ?(Ljava/lang/String;[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)[Lcom/groupbyinc/flux/common/apache/lucene/index/Term; M(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V f
> g termBytes 9[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; )(ILjava/lang/String;[Ljava/lang/String;)V ^ _
l [ \
n
p ((Ljava/lang/String;[Ljava/lang/String;)V k
s O(ILjava/lang/String;[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V ^ e
v N(Ljava/lang/String;[Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V u
y getSlop ()I getTerms 8()[Lcom/groupbyinc/flux/common/apache/lucene/index/Term; getPositions ()[I rewrite u(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; java/io/IOException ? @com/groupbyinc/flux/common/apache/lucene/search/MatchNoDocsQuery ? empty PhraseQuery ?
? ) 9com/groupbyinc/flux/common/apache/lucene/search/TermQuery ? 8(Lcom/groupbyinc/flux/common/apache/lucene/index/Term;)V ?
? ? ? ?
? newPositions reader