com.groupbyinc.flux.search.suggest.completion.context.ContextMappings.class Maven / Gradle / Ivy
???? 4? Ecom/groupbyinc/flux/search/suggest/completion/context/ContextMappings java/lang/Object .com/groupbyinc/flux/common/xcontent/ToXContent ContextMappings.java Gcom/groupbyinc/flux/search/suggest/completion/context/ContextMappings$1 Wcom/groupbyinc/flux/search/suggest/completion/context/ContextMappings$TypedContextField
TypedContextField 6com/groupbyinc/flux/index/mapper/ParseContext$Document
-com/groupbyinc/flux/index/mapper/ParseContext Document Ycom/groupbyinc/flux/search/suggest/completion/context/ContextMapping$InternalQueryContext Dcom/groupbyinc/flux/search/suggest/completion/context/ContextMapping InternalQueryContext 5com/groupbyinc/flux/common/xcontent/ToXContent$Params Params Icom/groupbyinc/flux/search/suggest/completion/context/ContextMapping$Type Type DEPRECATION_LOGGER 6Lcom/groupbyinc/flux/common/logging/DeprecationLogger; contextMappings Ljava/util/List; XLjava/util/List; contextNameMap Ljava/util/Map; iLjava/util/Map; $assertionsDisabled Z (Ljava/util/List;)V ()V ' )
* java/util/List , size ()I . / - 0 'java/lang/UnsupportedOperationException 2 java/lang/StringBuilder 4
5 * /Maximum of 10 context types are supported was: 7 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 9 :
5 ; (I)Ljava/lang/StringBuilder; 9 =
5 > toString ()Ljava/lang/String; @ A
5 B (Ljava/lang/String;)V ' D
3 E G java/util/HashMap I (I)V ' K
J L " # N iterator ()Ljava/util/Iterator; P Q - R java/util/Iterator T hasNext ()Z V W U X next ()Ljava/lang/Object; Z [ U \ name ^ A
_
java/util/Map a put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; c d b e mapping FLcom/groupbyinc/flux/search/suggest/completion/context/ContextMapping; this GLcom/groupbyinc/flux/search/suggest/completion/context/ContextMappings; get Z(Ljava/lang/String;)Lcom/groupbyinc/flux/search/suggest/completion/context/ContextMapping; &(Ljava/lang/Object;)Ljava/lang/Object; k m b n java/util/ArrayList p keySet ()Ljava/util/Set; r s b t (Ljava/util/Collection;)V ' v
q w java/util/Collections y sort { (
z | "java/lang/IllegalArgumentException ~ Unknown context name [ ? ], must be one of ?
B
E keys $Ljava/util/List; Ljava/lang/String; contextMapping addField o(Lcom/groupbyinc/flux/index/mapper/ParseContext$Document;Ljava/lang/String;Ljava/lang/String;ILjava/util/Map;)V ?(Lcom/groupbyinc/flux/search/suggest/completion/context/ContextMappings;Ljava/lang/String;Ljava/lang/String;ILjava/util/Map;Lcom/groupbyinc/flux/index/mapper/ParseContext$Document;)V ' ?
? add B(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexableField;)V ? ?
? document 8Lcom/groupbyinc/flux/index/mapper/ParseContext$Document; input weight I contexts LLjava/util/Map;>; toContextQuery ?(Lcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/CompletionQuery;Ljava/util/Map;)Lcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/ContextQuery; Mcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/ContextQuery ? U(Lcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/CompletionQuery;)V ' ?
? ? isEmpty ? W b ? =com/groupbyinc/flux/common/apache/lucene/util/CharsRefBuilder ?
? * grow ? K
? ? Pcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/CompletionQuery ? setCharAt (IC)V ? ?
? ? setLength ? K
? ? (I)Ljava/lang/Object; k ? - ? context ? ? ? Y(Ljava/lang/CharSequence;)Lcom/groupbyinc/flux/common/apache/lucene/util/CharsRefBuilder; 9 ?
? ?
toCharsRef :()Lcom/groupbyinc/flux/common/apache/lucene/util/CharsRef; ? ?
? ? boost ? ? ? isPrefix ? & ? 6com/groupbyinc/flux/common/apache/lucene/util/CharsRef ?
addContext (Ljava/lang/CharSequence;FZ)V ? ?
? ? ? ?The ability to query with no context on a context enabled completion field is deprecated and will be removed in the next major release. ? 4com/groupbyinc/flux/common/logging/DeprecationLogger ?
deprecated ((Ljava/lang/String;[Ljava/lang/Object;)V ? ?
? ? [Lcom/groupbyinc/flux/search/suggest/completion/context/ContextMapping$InternalQueryContext; internalQueryContext mLjava/util/List; typeId scratch ?Lcom/groupbyinc/flux/common/apache/lucene/util/CharsRefBuilder; query RLcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/CompletionQuery;
queryContexts ?Ljava/util/Map;>; typedContextQuery OLcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/ContextQuery;
hasContext getNamedContexts !(Ljava/util/List;)Ljava/util/Map; java/lang/CharSequence ? charAt (I)C ? ? ? ? % & ? java/lang/AssertionError ? !Returned context has invalid type ? (Ljava/lang/Object;)V ' ?
? ?
java/util/Set ? java/util/HashSet ?
? * length ? / ? ? subSequence (II)Ljava/lang/CharSequence; ? ? ? ? (Ljava/lang/Object;)Z ? ? contextEntries )Ljava/util/Set; Ljava/util/Set; typedContext Ljava/lang/CharSequence; *Ljava/util/List;
contextMap load x(Ljava/lang/Object;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/search/suggest/completion/context/ContextMappings; /com/groupbyinc/flux/ElasticsearchParseException
q * t(Ljava/util/Map;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/search/suggest/completion/context/ContextMapping;
- %expected at least one context mapping ' ?
singletonList $(Ljava/lang/Object;)Ljava/util/List;
z .expected a list or an entry of context mapping ' (
contextConfig Ljava/lang/Object; configurations $Ljava/util/List;
configuration indexVersionCreated Lcom/groupbyinc/flux/Version; ^ extractRequiredValue 5(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;'(
) type+ R$SwitchMap$org$elasticsearch$search$suggest$completion$context$ContextMapping$Type [I-. /
fromString _(Ljava/lang/String;)Lcom/groupbyinc/flux/search/suggest/completion/context/ContextMapping$Type;12
3 ordinal5 /
6 java/lang/String8 Lcom/groupbyinc/flux/search/suggest/completion/context/CategoryContextMapping: q(Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/search/suggest/completion/context/CategoryContextMapping;
<
;= Gcom/groupbyinc/flux/search/suggest/completion/context/GeoContextMapping? l(Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/search/suggest/completion/context/GeoContextMapping;
A
@B unknown context type[D ]F 5com/groupbyinc/flux/index/mapper/DocumentMapperParserH checkNoRemainingFields A(Ljava/lang/String;Ljava/util/Map;Lcom/groupbyinc/flux/Version;)VJK
IL 5Ljava/util/Map; missing [O ] in context mappingQ removeS m bT paramName
paramValue
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/io/IOExceptionZ 3com/groupbyinc/flux/common/xcontent/XContentBuilder\ startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;^_
]`XY
b endObjectd_
]e builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; hashCode java/util/Objectsl hash ([Ljava/lang/Object;)Ino
mp equalsr -s obj other
access$000 Y(Lcom/groupbyinc/flux/search/suggest/completion/context/ContextMappings;)Ljava/util/List; x0
access$100 8()Lcom/groupbyinc/flux/common/logging/DeprecationLogger; java/lang/Class} desiredAssertionStatus W
~? *com/groupbyinc/flux/common/logging/Loggers? getLogger 4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger;??
?? $(Lorg/apache/logging/log4j/Logger;)V '?
?? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable [(Ljava/util/List;)V ?(Lcom/groupbyinc/flux/index/mapper/ParseContext$Document;Ljava/lang/String;Ljava/lang/String;ILjava/util/Map;>;)V3(Lcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/CompletionQuery;Ljava/util/Map;>;)Lcom/groupbyinc/flux/common/apache/lucene/search/suggest/document/ContextQuery; x(Ljava/util/List;)Ljava/util/Map;>;
Exceptions ?(Ljava/util/Map;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/search/suggest/completion/context/ContextMapping; [(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
SourceFile InnerClasses ! ? ! " # ? $ % &