com.groupbyinc.flux.index.query.MatchPhrasePrefixQueryBuilder.class Maven / Gradle / Ivy
???? 4a =com/groupbyinc/flux/index/query/MatchPhrasePrefixQueryBuilder wLcom/groupbyinc/flux/index/query/AbstractQueryBuilder; 4com/groupbyinc/flux/index/query/AbstractQueryBuilder "MatchPhrasePrefixQueryBuilder.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 0com/groupbyinc/flux/index/search/MatchQuery$Type +com/groupbyinc/flux/index/search/MatchQuery Type NAME Ljava/lang/String; match_phrase_prefix MAX_EXPANSIONS_FIELD 'Lcom/groupbyinc/flux/common/ParseField; fieldName value Ljava/lang/Object; analyzer slop I
maxExpansions '(Ljava/lang/String;Ljava/lang/Object;)V ()V # %
& ! ( " ! * "java/lang/IllegalArgumentException , ([match_phrase_prefix] requires fieldName . (Ljava/lang/String;)V # 0
- 1 java/lang/String 3 java/lang/Object 5 *[match_phrase_prefix] requires query value 7 9 ; this ?Lcom/groupbyinc/flux/index/query/MatchPhrasePrefixQueryBuilder; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException @ # ?
B 0com/groupbyinc/flux/common/io/stream/StreamInput D
readString ()Ljava/lang/String; F G
E H readGenericValue ()Ljava/lang/Object; J K
E L readVInt ()I N O
E P readOptionalString R G
E S U 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 ] 0
\ ^ writeGenericValue (Ljava/lang/Object;)V ` a
\ b writeVInt (I)V d e
\ f writeOptionalString h 0
\ i out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; S(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/MatchPhrasePrefixQueryBuilder; B(I)Lcom/groupbyinc/flux/index/query/MatchPhrasePrefixQueryBuilder; No negative slop allowed. o "No negative maxExpansions allowed. q getWriteableName
doXContent o(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V 3com/groupbyinc/flux/common/xcontent/XContentBuilder v startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; x y
w z 1com/groupbyinc/flux/index/query/MatchQueryBuilder | QUERY_FIELD ~ } %com/groupbyinc/flux/common/ParseField ? getPreferredName ? G
? ? field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
w ? ANALYZER_FIELD ? } ? [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
w ? 7com/groupbyinc/flux/index/query/MatchPhraseQueryBuilder ?
SLOP_FIELD ? ? ? J(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
w ? ? printBoostAndQueryName 8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V ? ?
? endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
w ? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; doToQuery l(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; 1com/groupbyinc/flux/index/query/QueryShardContext ? getIndexAnalyzers 5()Lcom/groupbyinc/flux/index/analysis/IndexAnalyzers; ? ?
? ? 1com/groupbyinc/flux/index/analysis/IndexAnalyzers ? get F(Ljava/lang/String;)Lcom/groupbyinc/flux/index/analysis/NamedAnalyzer; ? ?
? ? 3com/groupbyinc/flux/index/query/QueryShardException ? java/lang/StringBuilder ?
? & [match_phrase_prefix] analyzer [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ] not found ? toString ? G
? ? [(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/lang/String;[Ljava/lang/Object;)V # ?
? ? 6(Lcom/groupbyinc/flux/index/query/QueryShardContext;)V # ?
? setAnalyzer ? 0
?
setPhraseSlop ? e
? setMaxExpansions ? e
?
PHRASE_PREFIX 2Lcom/groupbyinc/flux/index/search/MatchQuery$Type; ? ? ? parse ?(Lcom/groupbyinc/flux/index/search/MatchQuery$Type;Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; ? ?
? context 3Lcom/groupbyinc/flux/index/query/QueryShardContext;
matchQuery -Lcom/groupbyinc/flux/index/search/MatchQuery; doEquals B(Lcom/groupbyinc/flux/index/query/MatchPhrasePrefixQueryBuilder;)Z java/util/Objects ? equals '(Ljava/lang/Object;Ljava/lang/Object;)Z ? ?
? ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? other
doHashCode hash ([Ljava/lang/Object;)I ? ?
? ? fromXContent u(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/MatchPhrasePrefixQueryBuilder; nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ?
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ?
?
FIELD_NAME ? ?
? currentName G 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 ()Z
match (Ljava/lang/String;)Z
?
objectText K text G BOOST_FIELD
floatValue ()F ! intValue# O $
NAME_FIELD&