
com.groupbyinc.flux.rest.action.suggest.RestSuggestAction.class Maven / Gradle / Ivy
???? 3 ~ 9com/groupbyinc/flux/rest/action/suggest/RestSuggestAction (com/groupbyinc/flux/rest/BaseRestHandler RestSuggestAction.java ;com/groupbyinc/flux/rest/action/suggest/RestSuggestAction$1 +com/groupbyinc/flux/rest/RestRequest$Method $com/groupbyinc/flux/rest/RestRequest
Method }(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; /_suggest 'com/groupbyinc/flux/rest/RestController registerHandler h(Lcom/groupbyinc/flux/rest/RestRequest$Method;Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestHandler;)V
GET /{index}/_suggest ! this ;Lcom/groupbyinc/flux/rest/action/suggest/RestSuggestAction; 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 1com/groupbyinc/flux/action/suggest/SuggestRequest - index / param &(Ljava/lang/String;)Ljava/lang/String; 1 2
3 "com/groupbyinc/flux/common/Strings 5 splitStringByCommaToArray '(Ljava/lang/String;)[Ljava/lang/String; 7 8
6 9 ([Ljava/lang/String;)V
;
. < indicesOptions 5()Lcom/groupbyinc/flux/action/support/IndicesOptions; > ?
. @ 1com/groupbyinc/flux/action/support/IndicesOptions B fromRequest ?(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/action/support/IndicesOptions;)Lcom/groupbyinc/flux/action/support/IndicesOptions; D E
C F t(Lcom/groupbyinc/flux/action/support/IndicesOptions;)Lcom/groupbyinc/flux/action/support/broadcast/BroadcastRequest; > H
. I 3com/groupbyinc/flux/rest/action/support/RestActions K hasBodyContent )(Lcom/groupbyinc/flux/rest/RestRequest;)Z M N
L O getRestContent Y(Lcom/groupbyinc/flux/rest/RestRequest;)Lcom/groupbyinc/flux/common/bytes/BytesReference; Q R
L S suggest f(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/action/suggest/SuggestRequest; U V
. W "java/lang/IllegalArgumentException Y 3no content or source provided to execute suggestion [ (Ljava/lang/String;)V
]
Z ^ routing ` G(Ljava/lang/String;)Lcom/groupbyinc/flux/action/suggest/SuggestRequest; ` b
. c
preference e e b
. g ?(Lcom/groupbyinc/flux/rest/action/suggest/RestSuggestAction;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/rest/RestRequest;)V
i
j !com/groupbyinc/flux/client/Client l a(Lcom/groupbyinc/flux/action/suggest/SuggestRequest;Lcom/groupbyinc/flux/action/ActionListener;)V U n m o request &Lcom/groupbyinc/flux/rest/RestRequest; channel &Lcom/groupbyinc/flux/rest/RestChannel; suggestRequest 3Lcom/groupbyinc/flux/action/suggest/SuggestRequest; Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations
StackMapTable
SourceFile InnerClasses !
w ? 0*+,-? ,? *? ,? *? ,? "*? ,? "*? ? x * 0 # $ 0 % &