Esempio n. 1
0
 /// <summary>
 /// Sets the regular expression flags.
 /// </summary>
 public PatternAnalyzer Flags(RegexFlags flags)
 {
     RegisterJsonPart("'flags': {0}", flags.AsString().Quotate());
     return(this);
 }
Esempio n. 2
0
 /// <summary>
 /// Allows to control the ordering of the terms facets, to be ordered by count, term, reverse_count or reverse_term. The default is count.
 /// see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#field_summary
 /// </summary>
 public TermsFacet <T> RegexFlags(RegexFlags regexFlags)
 {
     RegisterJsonPart("'regex_flags': {0}", regexFlags.AsString().Quotate());
     return(this);
 }
Esempio n. 3
0
        /// <summary>
        /// Allows to specify a term that should be included from the terms aggregation request result.
        /// </summary>
        public TermsAggregation <T> Include(string includeTerm, RegexFlags regexFlags)
        {
            RegisterJsonPart("'include': {{ 'pattern': {0}, 'flags': {1} }}", includeTerm.Quotate(), regexFlags.AsString().Quotate());

            return(this);
        }