com.groupbyinc.flux.common.apache.lucene.search.spans.SpanNearQuery.class Maven / Gradle / Ivy
???? 4 ? Ccom/groupbyinc/flux/common/apache/lucene/search/spans/SpanNearQuery ?com/groupbyinc/flux/common/apache/lucene/search/spans/SpanQuery java/lang/Cloneable SpanNearQuery.java Lcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanNearQuery$GapSpans GapSpans Pcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanNearQuery$SpanGapQuery SpanGapQuery Rcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanNearQuery$SpanNearWeight SpanNearWeight Kcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanNearQuery$Builder Builder clauses Ljava/util/List; SLjava/util/List; slop I inOrder Z field Ljava/lang/String; newOrderedNearQuery a(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanNearQuery$Builder; (Ljava/lang/String;Z)V
! newUnorderedNearQuery G([Lcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanQuery;IZ)V ()V %
& java/util/ArrayList ( (I)V *
) + - B[Lcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanQuery; / 1 getField ()Ljava/lang/String; 3 4
5 java/lang/String 7 equals (Ljava/lang/Object;)Z 9 :
8 ; "java/lang/IllegalArgumentException = Clauses must have same field. ? (Ljava/lang/String;)V A
> B java/util/List D add F : E G I K clause ALcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanQuery; this ELcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanNearQuery; clausesIn
getClauses D()[Lcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanQuery; size ()I T U E V toArray (([Ljava/lang/Object;)[Ljava/lang/Object; X Y E Z getSlop isInOrder ()Z toString &(Ljava/lang/String;)Ljava/lang/String; java/lang/StringBuilder a
b &
spanNear([ d append -(Ljava/lang/String;)Ljava/lang/StringBuilder; f g
b h iterator ()Ljava/util/Iterator; j k E l java/util/Iterator n hasNext p ^ o q next ()Ljava/lang/Object; s t o u _ `
w , y ], { (I)Ljava/lang/StringBuilder; f }
b ~ (Z)Ljava/lang/StringBuilder; f ?
b ? ) ? _ 4
b ? buffer Ljava/lang/StringBuilder; i WLjava/util/Iterator; Ljava/util/Iterator; createWeight ?(Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher;ZF)Lcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanWeight; java/io/IOException ?
) & ? ?
? getTermContexts '(Ljava/util/Collection;)Ljava/util/Map; ? ?
? =com/groupbyinc/flux/common/apache/lucene/search/IndexSearcher ?
java/util/Map ? ?(Lcom/groupbyinc/flux/common/apache/lucene/search/spans/SpanNearQuery;Ljava/util/List;Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher;Ljava/util/Map;F)V ?
? q searcher ?Lcom/groupbyinc/flux/common/apache/lucene/search/IndexSearcher; needsScores boost F
subWeights TLjava/util/List; rewrite u(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; $java/lang/CloneNotSupportedException ? get (I)Ljava/lang/Object; ? ? E ? ? ?
? :com/groupbyinc/flux/common/apache/lucene/index/IndexReader ? java/lang/Object ? clone ? t
? ? java/lang/AssertionError ? (Ljava/lang/Object;)V ?
? ? c query rewritten e &Ljava/lang/CloneNotSupportedException; reader