com.groupbyinc.flux.action.search.TransportSearchAction.class Maven / Gradle / Ivy
???? 4? 7com/groupbyinc/flux/action/search/TransportSearchAction ?Lcom/groupbyinc/flux/action/support/HandledTransportAction; 9com/groupbyinc/flux/action/support/HandledTransportAction TransportSearchAction.java 9com/groupbyinc/flux/action/search/TransportSearchAction$2 Jcom/groupbyinc/flux/action/search/TransportSearchAction$SearchTimeProvider SearchTimeProvider 9com/groupbyinc/flux/action/search/TransportSearchAction$1 Acom/groupbyinc/flux/search/builder/SearchSourceBuilder$IndexBoost 6com/groupbyinc/flux/search/builder/SearchSourceBuilder
IndexBoost java/util/Map$Entry
java/util/Map Entry 2com/groupbyinc/flux/transport/Transport$Connection 'com/groupbyinc/flux/transport/Transport
Connection /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names 4com/groupbyinc/flux/common/settings/Setting$Property " +com/groupbyinc/flux/common/settings/Setting $ Property %java/lang/invoke/MethodHandles$Lookup ' java/lang/invoke/MethodHandles ) Lookup SHARD_COUNT_LIMIT_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ?Lcom/groupbyinc/flux/common/settings/Setting; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; searchTransportService :Lcom/groupbyinc/flux/action/search/SearchTransportService; remoteClusterService 4Lcom/groupbyinc/flux/transport/RemoteClusterService; searchPhaseController 9Lcom/groupbyinc/flux/action/search/SearchPhaseController;
searchService *Lcom/groupbyinc/flux/search/SearchService; $assertionsDisabled Z ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/search/SearchService;Lcom/groupbyinc/flux/action/search/SearchTransportService;Lcom/groupbyinc/flux/action/search/SearchPhaseController;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;)V *Lcom/groupbyinc/flux/common/inject/Inject; indices:data/read/search > "java/lang/invoke/LambdaMetafactory @ 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; B C
A D E ()Ljava/lang/Object; G /com/groupbyinc/flux/action/search/SearchRequest I ()V ; K
J L M 3()Lcom/groupbyinc/flux/action/search/SearchRequest; O get ()Ljava/util/function/Supplier; Q R S/(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;)V ; U
V 5 6 X 1 2 Z 8com/groupbyinc/flux/action/search/SearchTransportService \ getRemoteClusterService 6()Lcom/groupbyinc/flux/transport/RemoteClusterService; ^ _
] ` 3 4 b registerRequestHandler ](Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/search/SearchService;)V d e
] f / 0 h 7 8 j this 9Lcom/groupbyinc/flux/action/search/TransportSearchAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; transportService 0Lcom/groupbyinc/flux/transport/TransportService;
actionFilters 2Lcom/groupbyinc/flux/action/support/ActionFilters; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; buildPerIndexAliasFilter ?(Lcom/groupbyinc/flux/action/search/SearchRequest;Lcom/groupbyinc/flux/cluster/ClusterState;[Lcom/groupbyinc/flux/index/Index;Ljava/util/Map;)Ljava/util/Map; java/util/HashMap z
{ L (com/groupbyinc/flux/cluster/ClusterState } "[Lcom/groupbyinc/flux/index/Index; blocks 3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; ? ?
~ ? 3com/groupbyinc/flux/cluster/block/ClusterBlockLevel ? READ 5Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel; ? ? ? ? com/groupbyinc/flux/index/Index ? getName ()Ljava/lang/String; ? ?
? ? /com/groupbyinc/flux/cluster/block/ClusterBlocks ? indexBlockedRaiseException J(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;Ljava/lang/String;)V ? ?
? ? indices ()[Ljava/lang/String; ? ?
J ? (com/groupbyinc/flux/search/SearchService ? buildAliasFilter ?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;[Ljava/lang/String;)Lcom/groupbyinc/flux/search/internal/AliasFilter; ? ?
? ? 9 : ? java/lang/AssertionError ?
? L /com/groupbyinc/flux/search/internal/AliasFilter ? getUUID ? ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? putAll (Ljava/util/Map;)V ? ? ? aliasFilter 1Lcom/groupbyinc/flux/search/internal/AliasFilter; index !Lcom/groupbyinc/flux/index/Index; request 1Lcom/groupbyinc/flux/action/search/SearchRequest; clusterState *Lcom/groupbyinc/flux/cluster/ClusterState; concreteIndices remoteAliasMap TLjava/util/Map; Ljava/util/Map; aliasFilterMap resolveIndexBoosts l(Lcom/groupbyinc/flux/action/search/SearchRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/Map; source :()Lcom/groupbyinc/flux/search/builder/SearchSourceBuilder; ? ?
J ? java/util/Collections ? emptyMap ()Ljava/util/Map; ? ?
? ? indexBoosts ()Ljava/util/List; ? ?
? java/util/List ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ? G ? ? v w ? indicesOptions 5()Lcom/groupbyinc/flux/action/support/IndicesOptions; ? ?
J ? java/lang/String ? getIndex ? ?
? @com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver ? ?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/IndicesOptions;[Ljava/lang/String;)[Lcom/groupbyinc/flux/index/Index; ? ?
? ? getBoost ()F ? ?
? java/lang/Float ? valueOf (F)Ljava/lang/Float; ? ?
? ? putIfAbsent ? ? ? unmodifiableMap (Ljava/util/Map;)Ljava/util/Map; ? ?
? ?
concreteIndex ib CLcom/groupbyinc/flux/search/builder/SearchSourceBuilder$IndexBoost;
searchRequest 8Lcom/groupbyinc/flux/search/builder/SearchSourceBuilder; concreteIndexBoosts 4Ljava/util/Map; doExecute (Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/search/SearchRequest;Lcom/groupbyinc/flux/action/ActionListener;)V java/lang/System currentTimeMillis ()J
nanoTime
getAsLong #()Ljava/util/function/LongSupplier; &(JJLjava/util/function/LongSupplier;)V ;
(Ljava/lang/Object;)V lambda$doExecute$4(Lcom/groupbyinc/flux/action/search/SearchRequest;Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/search/TransportSearchAction$SearchTimeProvider;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/search/builder/SearchSourceBuilder;)V
;(Lcom/groupbyinc/flux/search/builder/SearchSourceBuilder;)V" accept/(Lcom/groupbyinc/flux/action/search/TransportSearchAction;Lcom/groupbyinc/flux/action/search/SearchRequest;Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/search/TransportSearchAction$SearchTimeProvider;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/common/CheckedConsumer;$% & java/lang/Object( getClass ()Ljava/lang/Class;*+
), )com/groupbyinc/flux/action/ActionListener. onFailure (Ljava/lang/Exception;)V01/2 31 J(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/function/Consumer;$6 7 wrap v(Lcom/groupbyinc/flux/common/CheckedConsumer;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/action/ActionListener;9:/;
onResponse=/> com/groupbyinc/flux/tasks/Task@ getAbsoluteStartMillisB
CD o(Lcom/groupbyinc/flux/action/search/TransportSearchAction$SearchTimeProvider;)Ljava/util/function/LongSupplier;F G getRewriteContext X(Ljava/util/function/LongSupplier;)Lcom/groupbyinc/flux/index/query/QueryRewriteContext;IJ
?K +com/groupbyinc/flux/index/query/RewriteableM rewriteAndFetch ?(Lcom/groupbyinc/flux/index/query/Rewriteable;Lcom/groupbyinc/flux/index/query/QueryRewriteContext;Lcom/groupbyinc/flux/action/ActionListener;)VOPNQ task Lcom/groupbyinc/flux/tasks/Task; listener _Lcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; absoluteStartMillis J relativeStartNanos timeProvider LLcom/groupbyinc/flux/action/search/TransportSearchAction$SearchTimeProvider; rewriteListener eLcom/groupbyinc/flux/action/ActionListener; processRemoteShards ^(Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;)Ljava/util/function/BiFunction; entrySet ()Ljava/util/Set;ab c
java/util/Setef ? getKeyh G i getValuek G l Kcom/groupbyinc/flux/action/admin/cluster/shards/ClusterSearchShardsResponsen getNodes 3()[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;pq
or 1[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;t .com/groupbyinc/flux/cluster/node/DiscoveryNodev getIdx ?
wy
{ ? getIndicesAndFilters| ?
o} getGroups M()[Lcom/groupbyinc/flux/action/admin/cluster/shards/ClusterSearchShardsGroup;?
o? K[Lcom/groupbyinc/flux/action/admin/cluster/shards/ClusterSearchShardsGroup;? Hcom/groupbyinc/flux/action/admin/cluster/shards/ClusterSearchShardsGroup?
getShardId +()Lcom/groupbyinc/flux/index/shard/ShardId;??
?? EMPTY? ? ?? 'com/groupbyinc/flux/index/shard/ShardId? getIndexName? ?
?? &(Ljava/lang/Object;)Ljava/lang/Object; Q? ? java/lang/StringBuilder?
? L )alias filter must not be null for index: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?? #()Lcom/groupbyinc/flux/index/Index; ??
?? -(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
?? toString? ?
?? ;
??
getAliases? ?
?? [Ljava/lang/String;? *com/groupbyinc/flux/action/OriginalIndices? ,original indices are null for clusterAlias: ? 5com/groupbyinc/flux/action/search/SearchShardIterator? getShards 5()[Lcom/groupbyinc/flux/cluster/routing/ShardRouting;??
?? java/util/Arrays? asList %([Ljava/lang/Object;)Ljava/util/List;??
??
? ? I([Ljava/lang/String;Lcom/groupbyinc/flux/action/support/IndicesOptions;)V ;?
?? z(Ljava/lang/String;Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/util/List;Lcom/groupbyinc/flux/action/OriginalIndices;)V ;?
?? add (Ljava/lang/Object;)Z?? ?? ? lambda$processRemoteShards$5 e(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
?? V(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;? apply 0(Ljava/util/Map;)Ljava/util/function/BiFunction;?? ?
remoteNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; shardId )Lcom/groupbyinc/flux/index/shard/ShardId; aliases finalIndices originalIndices ,Lcom/groupbyinc/flux/action/OriginalIndices;
shardIterator 7Lcom/groupbyinc/flux/action/search/SearchShardIterator; clusterSearchShardsGroup JLcom/groupbyinc/flux/action/admin/cluster/shards/ClusterSearchShardsGroup; clusterAlias Ljava/lang/String; searchShardsResponse MLcom/groupbyinc/flux/action/admin/cluster/shards/ClusterSearchShardsResponse; idToDiscoveryNode WLjava/util/HashMap; Ljava/util/HashMap; indicesAndFilters entry vLjava/util/Map$Entry; Ljava/util/Map$Entry; searchShardsResponses pLjava/util/Map; remoteIndicesByCluster OLjava/util/Map; remoteShardIterators ILjava/util/List; Ljava/util/List;
clusterToNode vLjava/util/Map;>;
executeSearch}(Lcom/groupbyinc/flux/action/search/SearchTask;Lcom/groupbyinc/flux/action/search/TransportSearchAction$SearchTimeProvider;Lcom/groupbyinc/flux/action/search/SearchRequest;Lcom/groupbyinc/flux/action/OriginalIndices;Ljava/util/Map;Ljava/util/List;Ljava/util/function/BiFunction;Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Map;Lcom/groupbyinc/flux/action/ActionListener;I)V globalBlockedRaiseException 8(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;)V??
??
? ? isEmpty? ? ? EMPTY_ARRAY ? ?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/IndicesOptions;J[Ljava/lang/String;)[Lcom/groupbyinc/flux/index/Index; ?
? x y
routing ?
J resolveSearchRouting `(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;[Ljava/lang/String;)Ljava/util/Map;
?
,com/groupbyinc/flux/action/search/SearchTask java/util/function/BiFunction 2com/groupbyinc/flux/cluster/service/ClusterService operationRouting 8()Lcom/groupbyinc/flux/cluster/routing/OperationRouting;
preference ?
J 4com/groupbyinc/flux/cluster/routing/OperationRouting searchShards ?(Lcom/groupbyinc/flux/cluster/ClusterState;[Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/GroupShardsIterator;
mergeShardsIterators ?(Lcom/groupbyinc/flux/cluster/routing/GroupShardsIterator;Lcom/groupbyinc/flux/action/OriginalIndices;Ljava/util/List;)Lcom/groupbyinc/flux/cluster/routing/GroupShardsIterator;"#
$ 7com/groupbyinc/flux/cluster/routing/GroupShardsIterator& size ()I()
'* failIfOverShardCountLimit 8(Lcom/groupbyinc/flux/cluster/service/ClusterService;I)V,-
. ? ?
0 ,com/groupbyinc/flux/action/search/SearchType2 QUERY_THEN_FETCH .Lcom/groupbyinc/flux/action/search/SearchType;45 36
searchType a(Lcom/groupbyinc/flux/action/search/SearchType;)Lcom/groupbyinc/flux/action/search/SearchRequest;89
J:
isSuggestOnly<