All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.index.query.DisMaxQueryBuilder.class Maven / Gradle / Ivy

????4Q2com/groupbyinc/flux/index/query/DisMaxQueryBuilderlLcom/groupbyinc/flux/index/query/AbstractQueryBuilder;4com/groupbyinc/flux/index/query/AbstractQueryBuilderDisMaxQueryBuilder.java5com/groupbyinc/flux/common/xcontent/ToXContent$Params.com/groupbyinc/flux/common/xcontent/ToXContent	Params8com/groupbyinc/flux/common/xcontent/XContentParser$Token2com/groupbyinc/flux/common/xcontent/XContentParserTokenNAMELjava/lang/String;dis_maxDEFAULT_TIE_BREAKERFTIE_BREAKER_FIELD'Lcom/groupbyinc/flux/common/ParseField;
QUERIES_FIELDqueriesLjava/util/List;@Ljava/util/List;
tieBreaker()V 
!java/util/ArrayList#
$!	&	(this4Lcom/groupbyinc/flux/index/query/DisMaxQueryBuilder;5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Vjava/io/IOException-,
/readQueriesD(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/util/List;12
3java/util/List5addAll(Ljava/util/Collection;)Z78690com/groupbyinc/flux/common/io/stream/StreamInput;	readFloat()F=>
<?in2Lcom/groupbyinc/flux/common/io/stream/StreamInput;	doWriteTo6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)VwriteQueriesF(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;Ljava/util/List;)VEF
G1com/groupbyinc/flux/common/io/stream/StreamOutputI
writeFloat(F)VKL
JMout3Lcom/groupbyinc/flux/common/io/stream/StreamOutput;addd(Lcom/groupbyinc/flux/index/query/QueryBuilder;)Lcom/groupbyinc/flux/index/query/DisMaxQueryBuilder;"java/lang/IllegalArgumentExceptionS(inner dismax query clause cannot be nullU(Ljava/lang/String;)VW
TX(Ljava/lang/Object;)ZQZ6[queryBuilder.Lcom/groupbyinc/flux/index/query/QueryBuilder;innerQueries()Ljava/util/List;7(F)Lcom/groupbyinc/flux/index/query/DisMaxQueryBuilder;
doXContento(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V3com/groupbyinc/flux/common/xcontent/XContentBuilderdstartObjectI(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;fg
eh	j%com/groupbyinc/flux/common/ParseFieldlgetPreferredName()Ljava/lang/String;no
mpfieldJ(Ljava/lang/String;F)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;rs
et	v
startArrayxg
eyiterator()Ljava/util/Iterator;{|6}java/util/IteratorhasNext()Z????next()Ljava/lang/Object;????,com/groupbyinc/flux/index/query/QueryBuilder?
toXContent?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;????endArray7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
e?printBoostAndQueryName8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V??
?	endObject??
e?builder5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;params7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;fromXContentj(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/DisMaxQueryBuilder;java/lang/String?	nextToken<()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;???
END_OBJECT:Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;??	
?
FIELD_NAME??	
?currentName?o?START_OBJECT??	
?match(Ljava/lang/String;)Z??
m?parseInnerQueryBuilderd(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/QueryBuilder;??
?+com/groupbyinc/flux/common/ParsingException?getTokenLocation8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation;???java/lang/StringBuilder?
?!"[dis_max] query does not support [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??]?toString?o
??java/lang/Object?^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V?
??START_ARRAY??	
?	END_ARRAY??	
?BOOST_FIELD?	?
floatValue?>?
NAME_FIELD?	?text?o?;[dis_max] requires 'queries' field with at least one clause?
!a
?	queryNameJ(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;??
?boost9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;??
?QR
?queryparser4Lcom/groupbyinc/flux/common/xcontent/XContentParser;queriesFoundZcurrentFieldNametokendisMaxQuery	doToQueryl(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;	toQueriesa(Ljava/util/Collection;Lcom/groupbyinc/flux/index/query/QueryShardContext;)Ljava/util/Collection;?
java/util/CollectionisEmpty?no clauses for dismax query.0com/groupbyinc/flux/common/lucene/search/Queries
newMatchNoDocsQueryK(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;
Ccom/groupbyinc/flux/common/apache/lucene/search/DisjunctionMaxQuery(Ljava/util/Collection;F)V
context3Lcom/groupbyinc/flux/index/query/QueryShardContext;
luceneQueriesOLjava/util/Collection;Ljava/util/Collection;
doHashCode()Ijava/lang/FloatvalueOf(F)Ljava/lang/Float;
 java/util/Objects"hash([Ljava/lang/Object;)I$%
#&doEquals7(Lcom/groupbyinc/flux/index/query/DisMaxQueryBuilder;)Zequals'(Ljava/lang/Object;Ljava/lang/Object;)Z*+
#,othergetWriteableNameextractInnerHitBuilders(Ljava/util/Map;)V6com/groupbyinc/flux/index/query/InnerHitContextBuilder2extractInnerHits@(Lcom/groupbyinc/flux/index/query/QueryBuilder;Ljava/util/Map;)V45
36	innerHits[Ljava/util/Map;Ljava/util/Map;9(Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;)Z()
<tie_breaker?((Ljava/lang/String;[Ljava/lang/String;)VA
mB
ConstantValue	SignatureCodeLocalVariableTableLineNumberTable
Exceptions
StackMapTableB()Ljava/util/List;LocalVariableTypeTable^(Ljava/util/Map;)V
SourceFileInnerClasses!EEF GK*?"*?$Y?%?'*?)?H*+I957:,Gt,*+?0*?$Y?%?'*?)*?'+?4?:W*+?@?)?H,*+,ABI@57A#B+CJ.CDGM+*?'?H+*?)?N?H*+OPIGHIJ.QRGd+?
?TYV?Y?*?'+?\W*?H*+]^IOPRSK_`G/*?'?H*+IZFLaG?*#?)*?H*+I
de>G/*?)?H*+ImbcG?\+?iW+?k?q*?)?uW+?w?q?zW*?'?~N-???-????:+,??W???+??W*+??+??W?H*?
]^\*+\??\??I*
rst!u?vIwLxQyVz[{K?+?? J.	??G?DE?$Y?%N6::*??Y:???/???*??:??????J?w???6-*???\W?????Y*????Y??Ŷ???˶ɶ??зӿ?֦Z?w???$6?٥?t-*???\W*??:????Y*????Y??Ŷ???˶ɶ??зӿ?????
*??D???k???
*??E??	?????*??:????Y*????Y??Ŷ???˶ɶ??зӿ???Y*????зӿ?Y??:$??W??W#??W-?~:		???	????:

??W????Hf
??^
?????????????????rB?+M?I?&~?????$?,?7???J?M?[????????????????????????%?P?U?i?r?y???????????K4?6???!
#***?&?? J.??G?&*?'+?M,??
	???Y,*?)??H &*+&	M	I?	???K?J.GC??Y*?'SY*?)?!S?'?H*+I?()Go(*?'+?'?-?*?)?!+?)?!?-???H(*+(.+I??'?K&@/oG-?H*+I?01G?&*?'?~M,???,????N-+?7???H ?^&*+&8:M&89I??"?%?K?
??FND(;G3	*+??=?H	*+I,> G?#?mY@???C?k?mYD???C?w?I
23FOP
	
D	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy