
com.groupbyinc.flux.rest.action.percolate.RestMultiPercolateAction.class Maven / Gradle / Ivy
???? 3 ? Bcom/groupbyinc/flux/rest/action/percolate/RestMultiPercolateAction (com/groupbyinc/flux/rest/BaseRestHandler RestMultiPercolateAction.java +com/groupbyinc/flux/rest/RestRequest$Method $com/groupbyinc/flux/rest/RestRequest Method allowExplicitIndex Z }(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/rest/RestController;Lcom/groupbyinc/flux/client/Client;)V *Lcom/groupbyinc/flux/common/inject/Inject;
POST -Lcom/groupbyinc/flux/rest/RestRequest$Method; /_mpercolate 'com/groupbyinc/flux/rest/RestController registerHandler h(Lcom/groupbyinc/flux/rest/RestRequest$Method;Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestHandler;)V
/{index}/_mpercolate /{index}/{type}/_mpercolate GET " # &rest.action.multi.allow_explicit_index % java/lang/Boolean ' valueOf (Z)Ljava/lang/Boolean; ) *
( + ,com/groupbyinc/flux/common/settings/Settings - getAsBoolean :(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean; / 0
. 1 booleanValue ()Z 3 4
( 5 7 this DLcom/groupbyinc/flux/rest/action/percolate/RestMultiPercolateAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
controller )Lcom/groupbyinc/flux/rest/RestController; client #Lcom/groupbyinc/flux/client/Client;
handleRequest r(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/client/Client;)V java/lang/Exception C :com/groupbyinc/flux/action/percolate/MultiPercolateRequest E ()V
G
F H indicesOptions 5()Lcom/groupbyinc/flux/action/support/IndicesOptions; J K
F L 1com/groupbyinc/flux/action/support/IndicesOptions N fromRequest ?(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/action/support/IndicesOptions;)Lcom/groupbyinc/flux/action/support/IndicesOptions; P Q
O R q(Lcom/groupbyinc/flux/action/support/IndicesOptions;)Lcom/groupbyinc/flux/action/percolate/MultiPercolateRequest; J T
F U index W param &(Ljava/lang/String;)Ljava/lang/String; Y Z
[ "com/groupbyinc/flux/common/Strings ] splitStringByCommaToArray '(Ljava/lang/String;)[Ljava/lang/String; _ `
^ a indices Q([Ljava/lang/String;)Lcom/groupbyinc/flux/action/percolate/MultiPercolateRequest; c d
F e type g documentType P(Ljava/lang/String;)Lcom/groupbyinc/flux/action/percolate/MultiPercolateRequest; i j
F k 3com/groupbyinc/flux/rest/action/support/RestActions m getRestContent Y(Lcom/groupbyinc/flux/rest/RestRequest;)Lcom/groupbyinc/flux/common/bytes/BytesReference; o p
n q add p(Lcom/groupbyinc/flux/common/bytes/BytesReference;Z)Lcom/groupbyinc/flux/action/percolate/MultiPercolateRequest; s t
F u >com/groupbyinc/flux/rest/action/support/RestToXContentListener w )(Lcom/groupbyinc/flux/rest/RestChannel;)V
y
x z !com/groupbyinc/flux/client/Client | multiPercolate j(Lcom/groupbyinc/flux/action/percolate/MultiPercolateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ~ } ? restRequest &Lcom/groupbyinc/flux/rest/RestRequest; restChannel &Lcom/groupbyinc/flux/rest/RestChannel; multiPercolateRequest