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 { , } convertToBytesRefIfString &(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; convertToStringIfBytesRef ? ?
? `(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 ?
% & match (Ljava/lang/String;)Z
? objectBytes! ? " BOOST_FIELD$ & %
floatValue ()F'( ) FIELD+ & ?, parse a(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/unit/Fuzziness;./
?0 intValue2 ? 3 booleanValue5 ? 6
textOrNull8 ? 9
NAME_FIELD; & < text> ? ? +com/groupbyinc/flux/common/ParsingExceptionA java/lang/StringBuilderC
D ^ [fuzzy] query does not support [F append -(Ljava/lang/String;)Ljava/lang/StringBuilder;HI
DJ ]L toStringN ?
DO ^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V 4Q
BR [fuzzy] unexpected token [T -(Ljava/lang/Object;)Ljava/lang/StringBuilder;HV
DW ] after [Y / ?
[ 0 ?
] 1 ?
_ 2 ?
a 3 ?
c boost 9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;ef
g queryName J(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;ij
k parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; currentFieldName token getWriteableName doToQuery l(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; 1com/groupbyinc/flux/index/query/QueryShardContextt isFilterv ?
uw 4com/groupbyinc/flux/index/query/support/QueryParsersy CONSTANT_SCORE{ & z| 5com/groupbyinc/flux/common/apache/lucene/search/Query~ fieldMapper F(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType;??
u? 0com/groupbyinc/flux/index/mapper/MappedFieldType?
fuzzyQuery y(Ljava/lang/Object;Lcom/groupbyinc/flux/common/unit/Fuzziness;IIZ)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;??
?? +com/groupbyinc/flux/common/lucene/BytesRefs? &(Ljava/lang/Object;)Ljava/lang/String;N?
??
asDistance (Ljava/lang/String;)I??
?? :com/groupbyinc/flux/common/apache/lucene/search/FuzzyQuery? 3com/groupbyinc/flux/common/apache/lucene/index/Term?
toBytesRef L(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;??
?? M(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V 4?
?? <(Lcom/groupbyinc/flux/common/apache/lucene/index/Term;IIIZ)V 4?
?? parseRewriteMethod ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod;)Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod;??
z? setRewriteMethod ?(Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery;Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod;)V??
z? maxEdits
rewriteMethod NLcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod; context 3Lcom/groupbyinc/flux/index/query/QueryShardContext; query 7Lcom/groupbyinc/flux/common/apache/lucene/search/Query; fieldType 2Lcom/groupbyinc/flux/index/mapper/MappedFieldType;
doHashCode java/util/Objects? hash ([Ljava/lang/Object;)I??
?? doEquals 6(Lcom/groupbyinc/flux/index/query/FuzzyQueryBuilder;)Z equals '(Ljava/lang/Object;Ljava/lang/Object;)Z??
?? other 9(Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;)Z??
? AUTO? ?? term? ((Ljava/lang/String;[Ljava/lang/String;)V 4?
?? -
prefix_length? max_expansions? 2 3
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions Signature
SourceFile InnerClasses ! ? ? ! ? " # $ ? % &