com.groupbyinc.flux.index.query.NestedQueryBuilder.class Maven / Gradle / Ivy
???? 4H 2com/groupbyinc/flux/index/query/NestedQueryBuilder lLcom/groupbyinc/flux/index/query/AbstractQueryBuilder; 4com/groupbyinc/flux/index/query/AbstractQueryBuilder NestedQueryBuilder.java Kcom/groupbyinc/flux/index/query/NestedQueryBuilder$NestedInnerHitSubContext NestedInnerHitSubContext Ocom/groupbyinc/flux/index/query/NestedQueryBuilder$NestedInnerHitContextBuilder
NestedInnerHitContextBuilder 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 5com/groupbyinc/flux/common/io/stream/Writeable$Reader .com/groupbyinc/flux/common/io/stream/Writeable Reader 4com/groupbyinc/flux/index/mapper/ObjectMapper$Nested -com/groupbyinc/flux/index/mapper/ObjectMapper Nested %java/lang/invoke/MethodHandles$Lookup ! java/lang/invoke/MethodHandles # Lookup NAME Ljava/lang/String; nested ( DEFAULT_IGNORE_UNMAPPED Z SCORE_MODE_FIELD 'Lcom/groupbyinc/flux/common/ParseField;
PATH_FIELD QUERY_FIELD INNER_HITS_FIELD IGNORE_UNMAPPED_FIELD path scoreMode @Lcom/groupbyinc/flux/common/apache/lucene/search/join/ScoreMode; query .Lcom/groupbyinc/flux/index/query/QueryBuilder; innerHitBuilder 1Lcom/groupbyinc/flux/index/query/InnerHitBuilder; ignoreUnmapped ?(Ljava/lang/String;Lcom/groupbyinc/flux/index/query/QueryBuilder;Lcom/groupbyinc/flux/common/apache/lucene/search/join/ScoreMode;)V ?(Ljava/lang/String;Lcom/groupbyinc/flux/index/query/QueryBuilder;Lcom/groupbyinc/flux/common/apache/lucene/search/join/ScoreMode;Lcom/groupbyinc/flux/index/query/InnerHitBuilder;)V ; =
> this 4Lcom/groupbyinc/flux/index/query/NestedQueryBuilder; ()V ; B
C : + E [nested] requires 'path' field G requireValue 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; I J
K java/lang/String M 3 ' O [nested] requires 'query' field Q ,com/groupbyinc/flux/index/query/QueryBuilder S 6 7 U $[nested] requires 'score_mode' field W >com/groupbyinc/flux/common/apache/lucene/search/join/ScoreMode Y 4 5 [ 8 9 ] 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ` ; _
b 0com/groupbyinc/flux/common/io/stream/StreamInput d
readString ()Ljava/lang/String; f g
e h values C()[Lcom/groupbyinc/flux/common/apache/lucene/search/join/ScoreMode; j k
Z l readVInt ()I n o
e p readNamedWriteable H(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/io/stream/NamedWriteable; r s
e t "java/lang/invoke/LambdaMetafactory v metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; x y
w z { F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object; } /com/groupbyinc/flux/index/query/InnerHitBuilder
? b ? e(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/index/query/InnerHitBuilder; ? read 9()Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader; ? ? ? readOptionalWriteable i(Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;)Lcom/groupbyinc/flux/common/io/stream/Writeable; ? ?
e ? readBoolean ()Z ? ?
e ? 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 ? writeString (Ljava/lang/String;)V ? ?
? ? ordinal ? o
Z ? writeVInt (I)V ? ?
? ? writeNamedWriteable 8(Lcom/groupbyinc/flux/common/io/stream/NamedWriteable;)V ? ?
? ?
getVersion ()Lcom/groupbyinc/flux/Version; ? ?
? ? com/groupbyinc/flux/Version ? V_5_5_0 Lcom/groupbyinc/flux/Version; ? ? ? ? before (Lcom/groupbyinc/flux/Version;)Z ? ?
? ? writeBoolean (Z)V ? ?
? ? writeToNestedBWC v(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;Lcom/groupbyinc/flux/index/query/QueryBuilder;Ljava/lang/String;)V ? ?
? ? writeOptionalWriteable 3(Lcom/groupbyinc/flux/common/io/stream/Writeable;)V ? ?
? ? hasInnerHit out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; 0()Lcom/groupbyinc/flux/index/query/QueryBuilder; innerHit 3()Lcom/groupbyinc/flux/index/query/InnerHitBuilder; g(Lcom/groupbyinc/flux/index/query/InnerHitBuilder;)Lcom/groupbyinc/flux/index/query/NestedQueryBuilder; B()Lcom/groupbyinc/flux/common/apache/lucene/search/join/ScoreMode; 7(Z)Lcom/groupbyinc/flux/index/query/NestedQueryBuilder;
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; ? ?
? ? 0 . ? %com/groupbyinc/flux/common/ParseField ? getPreferredName ? g
? ? field ? ?
? ?
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ? T ? / . ? [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? 2 . ? J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? - . ? scoreModeAsString T(Lcom/groupbyinc/flux/common/apache/lucene/search/join/ScoreMode;)Ljava/lang/String; ? ?
? printBoostAndQueryName 8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V ? ?
? 1 . ? ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/ToXContent;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent j(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/NestedQueryBuilder; Avg 5 Z 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
? parseInnerQueryBuilder d(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/QueryBuilder;
g(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/InnerHitBuilder;
? +com/groupbyinc/flux/common/ParsingException! getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation;#$ % java/lang/StringBuilder'
( C ![nested] query does not support [* append -(Ljava/lang/String;)Ljava/lang/StringBuilder;,-
(. ]0 toString2 g
(3 java/lang/Object5 ^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V ;7
"8 isValue: ?
; text= g > BOOST_FIELD@ . A
floatValue ()FCD E booleanValueG ? H parseScoreMode T(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/search/join/ScoreMode;JK
L
NAME_FIELDN . O : ?
Q queryName J(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;ST
U boost 9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;WX
Y parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; F currentFieldName token queryBuilder nonea equals (Ljava/lang/Object;)Zcd
Ne Noneg 5 Zh minj Minl 5 Zm maxo Maxq 5 Zr avgt sumv Totalx 5 Zy "java/lang/IllegalArgumentException{ No score mode for child query [} ] found ; ?
|? scoreModeString name? g
Z? java/util/Locale? ROOT Ljava/util/Locale;?? ?? toLowerCase &(Ljava/util/Locale;)Ljava/lang/String;??
N? getWriteableName doEquals 7(Lcom/groupbyinc/flux/index/query/NestedQueryBuilder;)Z java/util/Objects? '(Ljava/lang/Object;Ljava/lang/Object;)Zc?
?? java/lang/Boolean? valueOf (Z)Ljava/lang/Boolean;??
?? that
doHashCode hash ([Ljava/lang/Object;)I??
?? doToQuery l(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; 1com/groupbyinc/flux/index/query/QueryShardContext? getObjectMapper C(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/ObjectMapper;??
?? @com/groupbyinc/flux/common/apache/lucene/search/MatchNoDocsQuery?
? C java/lang/IllegalStateException? 2[nested] failed to find nested object under path [?
?? 8()Lcom/groupbyinc/flux/index/mapper/ObjectMapper$Nested; (?
? isNested? ?
? #[nested] nested object under path [? ] is not of nested type? nestedScope 7()Lcom/groupbyinc/flux/index/query/support/NestedScope;??
?? 3com/groupbyinc/flux/index/query/support/NestedScope? 1()Lcom/groupbyinc/flux/index/mapper/ObjectMapper;??
?? 0com/groupbyinc/flux/common/lucene/search/Queries? newNonNestedFilter 9()Lcom/groupbyinc/flux/common/apache/lucene/search/Query;??
?? bitsetFilter ~(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)Lcom/groupbyinc/flux/common/apache/lucene/search/join/BitSetProducer;??
?? nestedTypeFilter??
? Ccom/groupbyinc/flux/common/apache/lucene/search/join/BitSetProducer? nextLevel `(Lcom/groupbyinc/flux/index/mapper/ObjectMapper;)Lcom/groupbyinc/flux/index/mapper/ObjectMapper;??
?? toQuery?? T?
previousLevel??
?? java/lang/Throwable? 5com/groupbyinc/flux/common/apache/lucene/search/Query? -com/groupbyinc/flux/index/search/NestedHelper? getMapperService 2()Lcom/groupbyinc/flux/index/mapper/MapperService;??
?? 3(Lcom/groupbyinc/flux/index/mapper/MapperService;)V ;?
?? mightMatchNonNestedDocs L(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Ljava/lang/String;)Z??
?? filtered ?(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)Lcom/groupbyinc/flux/common/apache/lucene/search/BooleanQuery;??
?? 9com/groupbyinc/flux/index/search/ESToParentBlockJoinQuery? fullPath? g
? ?(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Lcom/groupbyinc/flux/common/apache/lucene/search/join/BitSetProducer;Lcom/groupbyinc/flux/common/apache/lucene/search/join/ScoreMode;Ljava/lang/String;)V ;?
?? parentFilter ELcom/groupbyinc/flux/common/apache/lucene/search/join/BitSetProducer;
innerQuery 7Lcom/groupbyinc/flux/common/apache/lucene/search/Query; context 3Lcom/groupbyinc/flux/index/query/QueryShardContext; nestedObjectMapper /Lcom/groupbyinc/flux/index/mapper/ObjectMapper; objectMapper doRewrite e(Lcom/groupbyinc/flux/index/query/QueryRewriteContext;)Lcom/groupbyinc/flux/index/query/QueryBuilder; rewrite T
nestedQuery queryRewriteContext 5Lcom/groupbyinc/flux/index/query/QueryRewriteContext; rewrittenQuery extractInnerHitBuilders (Ljava/util/Map;)V java/util/HashMap
C 6com/groupbyinc/flux/index/query/InnerHitContextBuilder extractInnerHits @(Lcom/groupbyinc/flux/index/query/QueryBuilder;Ljava/util/Map;)V
?(Ljava/lang/String;Lcom/groupbyinc/flux/index/query/QueryBuilder;Lcom/groupbyinc/flux/index/query/InnerHitBuilder;Ljava/util/Map;)V ;
getName g
?
java/util/Map! put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;#$"% children [Ljava/util/Map; Ljava/util/Map; innerHitContextBuilder 8Lcom/groupbyinc/flux/index/query/InnerHitContextBuilder; innerHits 9(Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;)Z??
.
score_mode1 ((Ljava/lang/String;[Ljava/lang/String;)V ;3
?4 3 6
inner_hits8 ignore_unmapped:
ConstantValue Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable LocalVariableTypeTable Signature ^(Ljava/util/Map;)V BootstrapMethods
SourceFile InnerClasses ! &