com.groupbyinc.flux.index.query.MatchPhraseQueryBuilder.class Maven / Gradle / Ivy
???? 4V 7com/groupbyinc/flux/index/query/MatchPhraseQueryBuilder qLcom/groupbyinc/flux/index/query/AbstractQueryBuilder; 4com/groupbyinc/flux/index/query/AbstractQueryBuilder MatchPhraseQueryBuilder.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
SLOP_FIELD 'Lcom/groupbyinc/flux/common/ParseField; fieldName value Ljava/lang/Object; analyzer slop I '(Ljava/lang/String;Ljava/lang/Object;)V ()V " $
% ! ' "com/groupbyinc/flux/common/Strings ) isEmpty (Ljava/lang/CharSequence;)Z + ,
* - "java/lang/IllegalArgumentException / ![match_phrase] requires fieldName 1 (Ljava/lang/String;)V " 3
0 4 java/lang/String 6 java/lang/Object 8 #[match_phrase] requires query value : < > this 9Lcom/groupbyinc/flux/index/query/MatchPhraseQueryBuilder; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException C " B
E 0com/groupbyinc/flux/common/io/stream/StreamInput G
readString ()Ljava/lang/String; I J
H K readGenericValue ()Ljava/lang/Object; M N
H O readVInt ()I Q R
H S readOptionalString U J
H V X 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 ` 3
_ a writeGenericValue (Ljava/lang/Object;)V c d
_ e writeVInt (I)V g h
_ i writeOptionalString k 3
_ l out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; M(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/MatchPhraseQueryBuilder; <(I)Lcom/groupbyinc/flux/index/query/MatchPhraseQueryBuilder; No negative slop allowed. r getWriteableName
doXContent o(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V 3com/groupbyinc/flux/common/xcontent/XContentBuilder w startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; y z
x { 1com/groupbyinc/flux/index/query/MatchQueryBuilder } QUERY_FIELD ~ ? %com/groupbyinc/flux/common/ParseField ? getPreferredName ? J
? ? field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
x ? ANALYZER_FIELD ? ~ ? [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
x ? ? J(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
x ? printBoostAndQueryName 8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V ? ?
? endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
x ? 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] analyzer [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ] not found ? toString ? J
? ? [(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/lang/String;[Ljava/lang/Object;)V " ?
? ? 6(Lcom/groupbyinc/flux/index/query/QueryShardContext;)V " ?
? setAnalyzer ? 3
?
setPhraseSlop ? h
? PHRASE 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 <(Lcom/groupbyinc/flux/index/query/MatchPhraseQueryBuilder;)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 o(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/MatchPhraseQueryBuilder; nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ?
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ?
?
FIELD_NAME ? ?
? currentName ? J ? 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 N text J BOOST_FIELD
floatValue ()F intValue R
NAME_FIELD +com/groupbyinc/flux/common/ParsingException" '[match_phrase] query does not support [$ ]& ^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V "(
#) [match_phrase] unknown token [+ -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?-
?. ] after [0 " #
2 p
4 q
6 queryName J(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;89
: boost 9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;<=
> parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; F currentFieldName token 9(Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;)Z ? ?
F ((Ljava/lang/String;[Ljava/lang/String;)V "J
?K
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions Signature
SourceFile InnerClasses ! M ! " # N ? 3*? &*? (+? .?
? 0Y2? 5?,?
? 0Y;? 5?*+? =*,? ?? O 3 @ A 3 3 P &