com.groupbyinc.flux.index.query.QueryStringQueryBuilder.class Maven / Gradle / Ivy
???? 4 7com/groupbyinc/flux/index/query/QueryStringQueryBuilder qLcom/groupbyinc/flux/index/query/AbstractQueryBuilder; 4com/groupbyinc/flux/index/query/AbstractQueryBuilder QueryStringQueryBuilder.java ;com/groupbyinc/flux/index/query/MultiMatchQueryBuilder$Type 6com/groupbyinc/flux/index/query/MultiMatchQueryBuilder Type java/util/Map$Entry
java/util/Map Entry 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 Qcom/groupbyinc/flux/common/apache/lucene/queryparser/classic/QueryParser$Operator Hcom/groupbyinc/flux/common/apache/lucene/queryparser/classic/QueryParser Operator Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod >com/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery "
RewriteMethod NAME Ljava/lang/String; query_string ' DEFAULT_MAX_DETERMINED_STATES I ' "DEFAULT_ENABLE_POSITION_INCREMENTS Z DEFAULT_ESCAPE DEFAULT_FUZZY_PREFIX_LENGTH DEFAULT_FUZZY_MAX_EXPANSIONS 2 DEFAULT_PHRASE_SLOP DEFAULT_FUZZINESS +Lcom/groupbyinc/flux/common/unit/Fuzziness; DEFAULT_OPERATOR *Lcom/groupbyinc/flux/index/query/Operator; DEFAULT_TYPE =Lcom/groupbyinc/flux/index/query/MultiMatchQueryBuilder$Type; QUERY_FIELD 'Lcom/groupbyinc/flux/common/ParseField; FIELDS_FIELD DEFAULT_FIELD_FIELD DEFAULT_OPERATOR_FIELD ANALYZER_FIELD QUOTE_ANALYZER_FIELD ALLOW_LEADING_WILDCARD_FIELD "AUTO_GENERATE_PHRASE_QUERIES_FIELD MAX_DETERMINIZED_STATES_FIELD LOWERCASE_EXPANDED_TERMS_FIELD ENABLE_POSITION_INCREMENTS_FIELD ESCAPE_FIELD USE_DIS_MAX_FIELD FUZZY_PREFIX_LENGTH_FIELD FUZZY_MAX_EXPANSIONS_FIELD FUZZY_REWRITE_FIELD PHRASE_SLOP_FIELD TIE_BREAKER_FIELD ANALYZE_WILDCARD_FIELD
REWRITE_FIELD MINIMUM_SHOULD_MATCH_FIELD QUOTE_FIELD_SUFFIX_FIELD
LENIENT_FIELD LOCALE_FIELD TIME_ZONE_FIELD SPLIT_ON_WHITESPACE ALL_FIELDS_FIELD
TYPE_FIELD queryString defaultField fieldsAndWeights Ljava/util/Map; 4Ljava/util/Map; defaultOperator analyzer
quoteAnalyzer quoteFieldSuffix allowLeadingWildcard Ljava/lang/Boolean; analyzeWildcard enablePositionIncrements fuzziness fuzzyPrefixLength fuzzyMaxExpansions rewrite fuzzyRewrite escape
phraseSlop type
tieBreaker Ljava/lang/Float; minimumShouldMatch lenient timeZone 3Lcom/groupbyinc/flux/common/joda/time/DateTimeZone; maxDeterminizedStates (Ljava/lang/String;)V ()V t v
w java/util/TreeMap y
z w Z [ | 7 8 ~ ] 8 ? d - ? 5 6 ? e 6 ? f * ? g * ? j - ? k * ? 9 : ? l : ? s * ? "java/lang/IllegalArgumentException ? query text missing ? t u
? ? java/lang/String ? X & ? this 9Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ? t ?
? 0com/groupbyinc/flux/common/io/stream/StreamInput ?
readString ()Ljava/lang/String; ? ?
? ? readOptionalString ? ?
? ? Y & ? readVInt ()I ? ?
? ? readFloat ()F ? ?
? ? java/lang/Float ? valueOf (F)Ljava/lang/Float; ? ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? (com/groupbyinc/flux/index/query/Operator ? readFromStream ^(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/index/query/Operator; ? ?
? ? ^ & ? _ & ? ` & ?
getVersion ()Lcom/groupbyinc/flux/Version; ? ?
? ? com/groupbyinc/flux/Version ?
V_6_0_0_beta1 Lcom/groupbyinc/flux/Version; ? ? ? ? before (Lcom/groupbyinc/flux/Version;)Z ? ?
? ? readBoolean ()Z ? ?
? ? readOptionalBoolean ()Ljava/lang/Boolean; ? ?
? ? a b ? c b ? V_5_1_1 ? ? ? ? )com/groupbyinc/flux/common/unit/Fuzziness ?
? ? i & ? m n ? q(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/index/query/MultiMatchQueryBuilder$Type; ? ?
? readOptionalFloat ()Ljava/lang/Float; ? ?
? ? h & ? o & ? p b ? readOptionalTimeZone 5()Lcom/groupbyinc/flux/common/joda/time/DateTimeZone;
? q r onOrAfter ?
? java/lang/Boolean
booleanValue ?
* i useAllField in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; size doWriteTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput writeString u
writeOptionalString u
? writeVInt (I)V"#
$ entrySet ()Ljava/util/Set;&' (
java/util/Set* iterator ()Ljava/util/Iterator;,-+. java/util/Iterator0 hasNext2 ?13 next ()Ljava/lang/Object;5617 getKey96
: getValue<6
=
floatValue? ?
?@
writeFloat (F)VBC
D writeToF
?G
? writeBoolean (Z)VJK
L writeOptionalBoolean (Ljava/lang/Boolean;)VNO
P java/util/LocaleR ROOT Ljava/util/Locale;TU SV
toLanguageTagX ?
SY
?G
G writeOptionalFloat (Ljava/lang/Float;)V]^
_ writeOptionalTimeZone 6(Lcom/groupbyinc/flux/common/joda/time/DateTimeZone;)Vab
c &com/groupbyinc/flux/common/regex/Regexe isMatchAllPattern (Ljava/lang/String;)Zgh
fi (Z)Ljava/lang/Boolean; ?k
l fieldsEntry :Ljava/util/Map$Entry; Ljava/util/Map$Entry; useAllFields out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; M(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; N(Ljava/lang/Boolean;)Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; Ljava/lang/Deprecated; field N(Ljava/lang/String;F)Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; boost F fields J(Ljava/util/Map;)Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; putAll (Ljava/util/Map;)V}~ ()Ljava/util/Map; @(Lcom/groupbyinc/flux/index/query/MultiMatchQueryBuilder$Type;)V useDisMax <(Z)Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; <(F)Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; e(Lcom/groupbyinc/flux/index/query/Operator;)Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; ,()Lcom/groupbyinc/flux/index/query/Operator; autoGeneratePhraseQueries <(I)Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; f(Lcom/groupbyinc/flux/common/unit/Fuzziness;)Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; -()Lcom/groupbyinc/flux/common/unit/Fuzziness; 1com/groupbyinc/flux/common/joda/time/DateTimeZone? forID G(Ljava/lang/String;)Lcom/groupbyinc/flux/common/joda/time/DateTimeZone;??
?? n(Lcom/groupbyinc/flux/common/joda/time/DateTimeZone;)Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; splitOnWhitespace value
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? ?
?? [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;w?
?? > < ? = < ?
startArray??
?? java/lang/StringBuilder?
? w append -(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?? ^? -(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
?? toString? ?
????
?? endArray 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? W < ?
? ENGLISH?U S? toLowerCase &(Ljava/util/Locale;)Ljava/lang/String;??
?? M < ? Z(Ljava/lang/String;Ljava/lang/Float;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;w?
?? ? < ? name? ?
?? @ < ? A < ? D < ? J(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;w?
?? B < ? \(Ljava/lang/String;Ljava/lang/Boolean;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;w?
?? F < ? J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;w?
??
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? I < ? J < ? K < ? L < ? N < ? O < ? P < ? Q < ? R < ? T < getID ?
? G < printBoostAndQueryName 8(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V
endObject?
?
fieldEntry builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent o(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder; java/util/HashMap
w nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;
FIELD_NAME ! currentName# ? $ START_ARRAY& ' match)h
?* END_ARRAY, - textCharacters ()[C/0 1
textOffset3 ? 4
textLength6 ? 7 [C9 ([CII)V t;
?<
parseFloat (Ljava/lang/String;)F>?
?@ textB ? C +com/groupbyinc/flux/common/ParsingExceptionE getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation;GH I '[query_string] query does not support [K ]M java/lang/ObjectO ^(Lcom/groupbyinc/flux/common/xcontent/XContentLocation;Ljava/lang/String;[Ljava/lang/Object;)V tQ
FR isValueT ?
U
fromString >(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/Operator;WX
?Y
intValue\ ? ]
textOrNull_ ? ` FIELDb < ?c parse a(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/unit/Fuzziness;ef
?g BOOST_FIELDi < j @ Q(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/MultiMatchQueryBuilder$Type;em
n V < p [query_string] time_zone [r ] is unknownt
NAME_FIELDv < w C < y E < { S < } H < U < ? [query_string] unknown token [? ] after [? .[query_string] must be provided with a [query]?
?{|
? Yt
? ]?
? ^t
? _t
? au
? s?
? d?
? j?
? f?
? g?
? it
? k?
? e?
? l?
? m?
? cu
? ht
? ot
? `t
? pu
? qt
? 9(F)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;y?
? queryName J(Ljava/lang/String;)Lcom/groupbyinc/flux/index/query/AbstractQueryBuilder;??
? relativeLocation fField fBoost end e $Ljava/lang/IllegalArgumentException; parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; currentFieldName token queryStringQuery getWriteableName doEquals <(Lcom/groupbyinc/flux/index/query/QueryStringQueryBuilder;)Z java/util/Objects? equals '(Ljava/lang/Object;Ljava/lang/Object;)Z??
?? java/lang/Integer? (I)Ljava/lang/Integer; ??
?? other
doHashCode [Ljava/lang/Object;? java/io/Serializable? hash ([Ljava/lang/Object;)I??
?? doToQuery l(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; Kcom/groupbyinc/flux/common/apache/lucene/queryparser/classic/ParseException? &(Ljava/lang/String;)Ljava/lang/String; j?
? Acannot use [fields] parameter in conjunction with [default_field]? addValidationError ?(Ljava/lang/String;Lcom/groupbyinc/flux/index/query/QueryValidationException;)Lcom/groupbyinc/flux/index/query/QueryValidationException;??
? 1com/groupbyinc/flux/index/query/QueryShardContext? queryStringLenient? ?
?? 7com/groupbyinc/flux/index/search/QueryStringQueryParser? 7(Lcom/groupbyinc/flux/index/query/QueryShardContext;Z)V t?
?? I(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/lang/String;Z)V t?
?? 2com/groupbyinc/flux/index/search/QueryParserHelper? resolveMappingFields S(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/util/Map;)Ljava/util/Map;??
?? F(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/util/Map;Z)V t
? Y ?
? getMapperService 2()Lcom/groupbyinc/flux/index/mapper/MapperService;
? .com/groupbyinc/flux/index/mapper/MapperService
allEnabled ?
_all (Ljava/lang/Object;)Z?
? 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 [query_string] analyzer [ ] not found! [(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/lang/String;[Ljava/lang/Object;)V t#
$ 0com/groupbyinc/flux/index/analysis/NamedAnalyzer& setForceAnalyzer ?(Lcom/groupbyinc/flux/common/apache/lucene/analysis/Analyzer;)V()
?* [query_string] quote_analyzer [, setForceQuoteAnalyzer.)
?/ toQueryParserOperator U()Lcom/groupbyinc/flux/common/apache/lucene/queryparser/classic/QueryParser$Operator;12
?3 setDefaultOperator V(Lcom/groupbyinc/flux/common/apache/lucene/queryparser/classic/QueryParser$Operator;)V56
?7 setType9?
?: setGroupTieBreaker<C
?= m ?
?
setPhraseSlopA#
?B setQuoteFieldSuffixD u
?E queryStringAllowLeadingWildcardG ?
?H setAllowLeadingWildcardJK
?K queryStringAnalyzeWildcardM ?
?N setAnalyzeWildcardPK
?Q setEnablePositionIncrementsSK
?T setFuzziness .(Lcom/groupbyinc/flux/common/unit/Fuzziness;)VVW
?X setFuzzyPrefixLengthZ#
?[ setFuzzyMaxExpansions]#
?^ 4com/groupbyinc/flux/index/query/support/QueryParsers` parseRewriteMethod b(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod;bc
ad setFuzzyRewriteMethod Q(Lcom/groupbyinc/flux/common/apache/lucene/search/MultiTermQuery$RewriteMethod;)Vfg
?h setMultiTermRewriteMethodjg
?k setTimeZonemb
?n setMaxDeterminizedStatesp#
?q K(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;es
?t Failed to parse query [v p(Lcom/groupbyinc/flux/index/query/QueryShardContext;Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V tx
y 5com/groupbyinc/flux/common/apache/lucene/search/Query{ java/util/ArrayList}
~ w java/util/List? :com/groupbyinc/flux/common/apache/lucene/search/BoostQuery? getBoost? ?
?? add??? getQuery 9()Lcom/groupbyinc/flux/common/apache/lucene/search/Query;??
?? 0com/groupbyinc/flux/common/lucene/search/Queries? fixNegativeQueryIfNeeded p(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;??
?? maybeApplyMinimumShouldMatch ?(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query;??
??? (I)Ljava/lang/Object;??? ;(Lcom/groupbyinc/flux/common/apache/lucene/search/Query;F)V t?
?? queryParser 9Lcom/groupbyinc/flux/index/search/QueryStringQueryParser; resolvedFields
namedAnalyzer 2Lcom/groupbyinc/flux/index/analysis/NamedAnalyzer; forceQuoteAnalyzer query 7Lcom/groupbyinc/flux/common/apache/lucene/search/Query; MLcom/groupbyinc/flux/common/apache/lucene/queryparser/classic/ParseException;
boostQuery