com.groupbyinc.flux.index.query.ScriptQueryBuilder.class Maven / Gradle / Ivy
???? 4 2com/groupbyinc/flux/index/query/ScriptQueryBuilder lLcom/groupbyinc/flux/index/query/AbstractQueryBuilder; 4com/groupbyinc/flux/index/query/AbstractQueryBuilder ScriptQueryBuilder.java >com/groupbyinc/flux/index/query/ScriptQueryBuilder$ScriptQuery ScriptQuery 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 /com/groupbyinc/flux/script/SearchScript$Factory 'com/groupbyinc/flux/script/SearchScript Factory 3com/groupbyinc/flux/script/SearchScript$LeafFactory LeafFactory NAME Ljava/lang/String; script PARAMS_FIELD 'Lcom/groupbyinc/flux/common/ParseField; #Lcom/groupbyinc/flux/script/Script; &(Lcom/groupbyinc/flux/script/Script;)V ()V # %
& "java/lang/IllegalArgumentException ( script cannot be null * (Ljava/lang/String;)V # ,
) - !com/groupbyinc/flux/script/Script / " 1 this 4Lcom/groupbyinc/flux/index/query/ScriptQueryBuilder; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException 6 # 5
8
0 8 in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; doWriteTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V writeTo ? >
0 @ out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; %()Lcom/groupbyinc/flux/script/Script; getWriteableName ()Ljava/lang/String;
doXContent o(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V 3com/groupbyinc/flux/common/xcontent/XContentBuilder I startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; K L
J M SCRIPT_PARSE_FIELD O ! 0 P %com/groupbyinc/flux/common/ParseField R getPreferredName T F
S U field y(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/ToXContent;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; W X
J Y printBoostAndQueryName 8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V [ \
] endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; _ `
J a builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
builderParams 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent j(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/ScriptQueryBuilder; java/lang/String i nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; k l m
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; o p q
FIELD_NAME s p t currentName v F w START_OBJECT y p z match (Ljava/lang/String;)Z | }
S ~ parse Y(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/script/Script; ? ?
0 ? +com/groupbyinc/flux/common/ParsingException ? getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation; ? ? ? java/lang/StringBuilder ?
? & ![script] query does not support [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ? F
? ? java/lang/Object ? ^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V # ?
? ? isValue ()Z ? ?
?
NAME_FIELD ? ! ? text ? F ? BOOST_FIELD ? ! ?
floatValue ()F ? ? ? .script must be provided with a [script] filter ? # $
? 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; F token currentFieldName doToQuery l(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; 1com/groupbyinc/flux/index/query/QueryShardContext ? getScriptService ,()Lcom/groupbyinc/flux/script/ScriptService; ? ?
? ? CONTEXT *Lcom/groupbyinc/flux/script/ScriptContext; ? ? ? (com/groupbyinc/flux/script/ScriptService ? compile a(Lcom/groupbyinc/flux/script/Script;Lcom/groupbyinc/flux/script/ScriptContext;)Ljava/lang/Object; ? ?
? ? getParams ()Ljava/util/Map; ? ?
0 ? lookup 2()Lcom/groupbyinc/flux/search/lookup/SearchLookup; ? ?
? ?
newFactory v(Ljava/util/Map;Lcom/groupbyinc/flux/search/lookup/SearchLookup;)Lcom/groupbyinc/flux/script/SearchScript$LeafFactory; ? ? ? [(Lcom/groupbyinc/flux/script/Script;Lcom/groupbyinc/flux/script/SearchScript$LeafFactory;)V # ?
? context 3Lcom/groupbyinc/flux/index/query/QueryShardContext; factory 1Lcom/groupbyinc/flux/script/SearchScript$Factory; searchScript 5Lcom/groupbyinc/flux/script/SearchScript$LeafFactory;
doHashCode ()I java/util/Objects ? hash ([Ljava/lang/Object;)I ? ?
? ? doEquals 7(Lcom/groupbyinc/flux/index/query/ScriptQueryBuilder;)Z equals '(Ljava/lang/Object;Ljava/lang/Object;)Z ? ?
? ? other 9(Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;)Z ? ?
? params ? ((Ljava/lang/String;[Ljava/lang/String;)V # ?
S ? ! ?
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions Signature
SourceFile InnerClasses ! ! " # $ q *? '+?
? )Y+? .?*+? 2? 3 4 " 2 3 4 6 7 ? 0 # 5 N *+? 9*? 0Y+? :? 2? 3 4 ; <