com.groupbyinc.flux.index.query.FuzzyQueryBuilder.class Maven / Gradle / Ivy
???? 4? 1com/groupbyinc/flux/index/query/FuzzyQueryBuilder ?Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;Lcom/groupbyinc/flux/index/query/MultiTermQueryBuilder; 4com/groupbyinc/flux/index/query/AbstractQueryBuilder 5com/groupbyinc/flux/index/query/MultiTermQueryBuilder FuzzyQueryBuilder.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod >com/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery
RewriteMethod NAME Ljava/lang/String; fuzzy DEFAULT_FUZZINESS +Lcom/groupbyinc/flux/common/unit/Fuzziness; DEFAULT_PREFIX_LENGTH I DEFAULT_MAX_EXPANSIONS 2 DEFAULT_TRANSPOSITIONS Z
TERM_FIELD 'Lcom/groupbyinc/flux/common/ParseField; VALUE_FIELD PREFIX_LENGTH_FIELD MAX_EXPANSIONS_FIELD TRANSPOSITIONS_FIELD
REWRITE_FIELD fieldName value Ljava/lang/Object; fuzziness prefixLength
maxExpansions transpositions rewrite '(Ljava/lang/String;Ljava/lang/String;)V '(Ljava/lang/String;Ljava/lang/Object;)V 4 6
7 this 3Lcom/groupbyinc/flux/index/query/FuzzyQueryBuilder; (Ljava/lang/String;I)V java/lang/Integer < valueOf (I)Ljava/lang/Integer; > ?
= @ (Ljava/lang/String;J)V java/lang/Long C (J)Ljava/lang/Long; > E
D F J (Ljava/lang/String;F)V java/lang/Float J (F)Ljava/lang/Float; > L
K M F (Ljava/lang/String;D)V java/lang/Double Q (D)Ljava/lang/Double; > S
R T D (Ljava/lang/String;Z)V java/lang/Boolean X (Z)Ljava/lang/Boolean; > Z
Y [ ()V 4 ]
^ ` / b 0 d 1 f 2 $ h "com/groupbyinc/flux/common/Strings j isEmpty (Ljava/lang/CharSequence;)Z l m
k n "java/lang/IllegalArgumentException p "field name cannot be null or empty r (Ljava/lang/String;)V 4 t
q u java/lang/String w java/lang/Object y query value cannot be null { , } maybeConvertToBytesRef &(Ljava/lang/Object;)Ljava/lang/Object; ?
? - . ? 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ? 4 ?
? 0com/groupbyinc/flux/common/io/stream/StreamInput ?
readString ()Ljava/lang/String; ? ?
? ? readGenericValue ()Ljava/lang/Object; ? ?
? ? )com/groupbyinc/flux/common/unit/Fuzziness ?
? ? readVInt ()I ? ?
? ? readBoolean ()Z ? ?
? ? readOptionalString ? ?
? ? 3 ? in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; doWriteTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput ? writeString ? t
? ? writeGenericValue (Ljava/lang/Object;)V ? ?
? ? writeTo ? ?
? ? writeVInt (I)V ? ?
? ? writeBoolean (Z)V ? ?
? ? writeOptionalString ? t
? ? out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; maybeConvertToString ? ?
? `(Lcom/groupbyinc/flux/common/unit/Fuzziness;)Lcom/groupbyinc/flux/index/query/FuzzyQueryBuilder; -()Lcom/groupbyinc/flux/common/unit/Fuzziness; 6(I)Lcom/groupbyinc/flux/index/query/FuzzyQueryBuilder; 6(Z)Lcom/groupbyinc/flux/index/query/FuzzyQueryBuilder; G(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/FuzzyQueryBuilder;
doXContent o(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? ' & ? %com/groupbyinc/flux/common/ParseField ? getPreferredName ? ?
? ? field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ?
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? ( & ? J(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? ) & ? * & ? J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? + & ? [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? printBoostAndQueryName 8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V ? ?
? endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent i(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/FuzzyQueryBuilder; nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ?
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;
FIELD_NAME currentName
? START_OBJECT
getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation; %throwParsingExceptionOnMultipleFields o(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;Ljava/lang/String;)V
isValue ?
% & getDeprecationHandler :()Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler; match M(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;)Z!"
?# objectBytes% ? & BOOST_FIELD( & )
floatValue ()F+, - FIELD/ & ?0 parse a(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/unit/Fuzziness;23
?4 intValue6 ? 7 booleanValue9 ? :
textOrNull<