
com.groupbyinc.flux.common.lucene.search.MultiPhrasePrefixQuery.class Maven / Gradle / Ivy
???? 3^ ?com/groupbyinc/flux/common/lucene/search/MultiPhrasePrefixQuery 5com/groupbyinc/flux/common/apache/lucene/search/Query MultiPhrasePrefixQuery.java Ccom/groupbyinc/flux/common/apache/lucene/index/TermsEnum$SeekStatus 8com/groupbyinc/flux/common/apache/lucene/index/TermsEnum
SeekStatus field Ljava/lang/String;
termArrays Ljava/util/ArrayList; MLjava/util/ArrayList<[Lcom/groupbyinc/flux/common/apache/lucene/index/Term;>; positions *Ljava/util/ArrayList;
maxExpansions I slop ()V
java/util/ArrayList
??? ! # this ALcom/groupbyinc/flux/common/lucene/search/MultiPhrasePrefixQuery; setSlop (I)V s setMaxExpansions getSlop ()I add 8(Lcom/groupbyinc/flux/common/apache/lucene/index/Term;)V 3com/groupbyinc/flux/common/apache/lucene/index/Term / 9([Lcom/groupbyinc/flux/common/apache/lucene/index/Term;)V - 1
2 term 5Lcom/groupbyinc/flux/common/apache/lucene/index/Term; size 6 ,
7 get (I)Ljava/lang/Object; 9 :
; java/lang/Integer = intValue ? ,
> @ :([Lcom/groupbyinc/flux/common/apache/lucene/index/Term;I)V - B
C terms 6[Lcom/groupbyinc/flux/common/apache/lucene/index/Term; position ()Ljava/lang/String; H
0 I K "java/lang/IllegalArgumentException M java/lang/StringBuilder O
P ,All phrase terms must be in the same field ( R append -(Ljava/lang/String;)Ljava/lang/StringBuilder; T U
P V ): X -(Ljava/lang/Object;)Ljava/lang/StringBuilder; T Z
P [ toString ] H
P ^ (Ljava/lang/String;)V `
N a (Ljava/lang/Object;)Z - c
d valueOf (I)Ljava/lang/Integer; f g
> h i getPositions ()[I [I m result rewrite u(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; java/io/IOException r getBoost ()F t u
v p q
x isEmpty ()Z z {
| @com/groupbyinc/flux/common/apache/lucene/search/MatchNoDocsQuery ~
@com/groupbyinc/flux/common/apache/lucene/search/MultiPhraseQuery ?
? ' (
? ? F
? C :com/groupbyinc/flux/common/carrotsearch/hppc/ObjectHashSet ?
? :com/groupbyinc/flux/common/apache/lucene/index/IndexReader ? getPrefixTerms ?(Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectHashSet;Lcom/groupbyinc/flux/common/apache/lucene/index/Term;Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;)V ? ?
?
? 7
? | 0com/groupbyinc/flux/common/lucene/search/Queries ? newMatchNoDocsQuery 9()Lcom/groupbyinc/flux/common/apache/lucene/search/Query; ? ?
? ? toArray &(Ljava/lang/Class;)[Ljava/lang/Object; ? ?
? ? setBoost (F)V ? ?
? ?
? x reader