com.groupbyinc.flux.index.query.BoostingQueryBuilder.class Maven / Gradle / Ivy
???? 42 4com/groupbyinc/flux/index/query/BoostingQueryBuilder nLcom/groupbyinc/flux/index/query/AbstractQueryBuilder; 4com/groupbyinc/flux/index/query/AbstractQueryBuilder BoostingQueryBuilder.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token NAME Ljava/lang/String; boosting POSITIVE_FIELD 'Lcom/groupbyinc/flux/common/ParseField; NEGATIVE_FIELD NEGATIVE_BOOST_FIELD
positiveQuery .Lcom/groupbyinc/flux/index/query/QueryBuilder;
negativeQuery
negativeBoost F _(Lcom/groupbyinc/flux/index/query/QueryBuilder;Lcom/groupbyinc/flux/index/query/QueryBuilder;)V ()V
!?? $ "java/lang/IllegalArgumentException & 'inner clause [positive] cannot be null. ( (Ljava/lang/String;)V *
' + ,com/groupbyinc/flux/index/query/QueryBuilder - 'inner clause [negative] cannot be null. / 1 3 this 6Lcom/groupbyinc/flux/index/query/BoostingQueryBuilder; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException 8 7
: 0com/groupbyinc/flux/common/io/stream/StreamInput < readNamedWriteable H(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/io/stream/NamedWriteable; > ?
= @ readFloat ()F B C
= D in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; doWriteTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput J writeNamedWriteable 8(Lcom/groupbyinc/flux/common/io/stream/NamedWriteable;)V L M
K N
writeFloat (F)V P Q
K R out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; 0()Lcom/groupbyinc/flux/index/query/QueryBuilder; 9(F)Lcom/groupbyinc/flux/index/query/BoostingQueryBuilder; 8query requires negativeBoost to be set to positive value X
doXContent o(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V 3com/groupbyinc/flux/common/xcontent/XContentBuilder \ startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ^ _
] ` b %com/groupbyinc/flux/common/ParseField d getPreferredName ()Ljava/lang/String; f g
e h field j _
] k
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; m n . o q s J(Ljava/lang/String;F)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; j u
] v printBoostAndQueryName 8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V x y
z endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; | }
] ~ builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent l(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/BoostingQueryBuilder; java/lang/String ? nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ?
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ?
?
FIELD_NAME ? ?
? currentName ? g ? START_OBJECT ? ?
? match (Ljava/lang/String;)Z ? ?
e ? parseInnerQueryBuilder d(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/QueryBuilder; ? ?
? +com/groupbyinc/flux/common/ParsingException ? getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation; ? ? ? java/lang/StringBuilder ?
? ! #[boosting] query does not support [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ? g
? ? java/lang/Object ? ^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V ?
? ? isValue ()Z ? ?
?
floatValue ? C ?
NAME_FIELD ? ? text ? g ? BOOST_FIELD ? ? 5[boosting] query requires 'positive' query to be set' ? 5[boosting] query requires 'negative' query to be set' ? L[boosting] query requires 'negative_boost' to be set to be a positive value' ?
? W
? boost 9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder; ? ?
? queryName J(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder; ? ?
? parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; positiveQueryFound Z negativeQueryFound currentFieldName token
boostingQuery getWriteableName doToQuery l(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; toQuery ? ? . ? >com/groupbyinc/flux/common/apache/lucene/queries/BoostingQuery ? r(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Lcom/groupbyinc/flux/common/apache/lucene/search/Query;F)V ?
? ? context 3Lcom/groupbyinc/flux/index/query/QueryShardContext; positive 7Lcom/groupbyinc/flux/common/apache/lucene/search/Query; negative
doHashCode ()I java/lang/Float ? valueOf (F)Ljava/lang/Float; ? ?
? ? java/util/Objects ? hash ([Ljava/lang/Object;)I ? ?
? doEquals 9(Lcom/groupbyinc/flux/index/query/BoostingQueryBuilder;)Z equals '(Ljava/lang/Object;Ljava/lang/Object;)Z
? other doRewrite e(Lcom/groupbyinc/flux/index/query/QueryRewriteContext;)Lcom/groupbyinc/flux/index/query/QueryBuilder; rewrite
. newQueryBuilder queryRewriteContext 5Lcom/groupbyinc/flux/index/query/QueryRewriteContext; extractInnerHitBuilders (Ljava/util/Map;)V 6com/groupbyinc/flux/index/query/InnerHitContextBuilder extractInnerHits @(Lcom/groupbyinc/flux/index/query/QueryBuilder;Ljava/util/Map;)V
innerHits [Ljava/util/Map; Ljava/util/Map; 9(Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;)Z
? ((Ljava/lang/String;[Ljava/lang/String;)V !
e" ? negative_boost%
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions LocalVariableTypeTable Signature ^(Ljava/util/Map;)V
SourceFile InnerClasses ! ' ( ? 1*? "*#? %+?
? 'Y)? ,?,?
? 'Y0? ,?*+? 2*,? 4? ) 1 5 6 1 1 * &