
com.groupbyinc.flux.index.query.FuzzyQueryParser.class Maven / Gradle / Ivy
???? 3 ? 0com/groupbyinc/flux/index/query/FuzzyQueryParser java/lang/Object +com/groupbyinc/flux/index/query/QueryParser FuzzyQueryParser.java 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; FUZZINESS 'Lcom/groupbyinc/flux/common/ParseField; ()V *Lcom/groupbyinc/flux/common/inject/Inject;
this 2Lcom/groupbyinc/flux/index/query/FuzzyQueryParser; names ()[Ljava/lang/String; java/lang/String # parse l(Lcom/groupbyinc/flux/index/query/QueryParseContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; java/io/IOException ' 5com/groupbyinc/flux/index/query/QueryParsingException ) 1com/groupbyinc/flux/index/query/QueryParseContext + parser 6()Lcom/groupbyinc/flux/common/xcontent/XContentParser; - .
, / nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; 1 2 3
FIELD_NAME :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; 5 6 7 ![fuzzy] query malformed, no field 9 [(Lcom/groupbyinc/flux/index/query/QueryParseContext;Ljava/lang/String;[Ljava/lang/Object;)V ;
* < currentName ()Ljava/lang/String; > ? @ B isFilter ()Z D E
, F CONSTANT_SCORE_REWRITE NLcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod; H I J )com/groupbyinc/flux/common/unit/Fuzziness L START_OBJECT N 6 O
END_OBJECT Q 6 R term T equals (Ljava/lang/Object;)Z V W
$ X objectBytes ()Ljava/lang/Object; Z [ \ value ^ boost `
floatValue ()F b c d parseFieldMatcher 0()Lcom/groupbyinc/flux/common/ParseFieldMatcher; f g
, h j ,com/groupbyinc/flux/common/ParseFieldMatcher l match <(Ljava/lang/String;Lcom/groupbyinc/flux/common/ParseField;)Z n o
m p a(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/unit/Fuzziness; % r
M s
prefix_length u prefixLength w intValue ()I y z { max_expansions }
maxExpansions transpositions ? booleanValue ? E ? rewrite ?
textOrNull ? ? ? 4com/groupbyinc/flux/index/query/support/QueryParsers ? parseRewriteMethod ?(Lcom/groupbyinc/flux/common/ParseFieldMatcher;Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod;)Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod; ? ?
? ? _name ? text ? ? ? java/lang/StringBuilder ?
? [fuzzy] query does not support [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ? ?
? ? "No value specified for fuzzy query ? fieldMapper F(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/MappedFieldType; ? ?
, ? 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; ? ?
? ? 5com/groupbyinc/flux/common/apache/lucene/search/Query ? +com/groupbyinc/flux/common/lucene/BytesRefs ? &(Ljava/lang/Object;)Ljava/lang/String; ? ?
? ?
asDistance (Ljava/lang/String;)I ? ?
M ? :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 ?
? ? <(Lcom/groupbyinc/flux/common/apache/lucene/index/Term;IIIZ)V ?
? ? setRewriteMethod ?(Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery;Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod;)V ? ?
? ? setBoost (F)V ? ?
? ?
addNamedQuery L(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)V ? ?
, ? currentFieldName maxEdits I parseContext 3Lcom/groupbyinc/flux/index/query/QueryParseContext; 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; token fieldName Ljava/lang/Object; F fuzziness Z queryName
rewriteMethod query 7Lcom/groupbyinc/flux/common/apache/lucene/search/Query; fieldType 2Lcom/groupbyinc/flux/index/mapper/MappedFieldType; AUTO ? M ? FIELD ? M ? min_similarity ? %com/groupbyinc/flux/common/ParseField ? withDeprecation <([Ljava/lang/String;)Lcom/groupbyinc/flux/common/ParseField; ? ?
? ?
ConstantValue Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations
StackMapTable
Exceptions
SourceFile InnerClasses ! ? ? 3 *? ? ? ?
/ 0 ? ! " ? 4
? $YS? ?
? 4 % &