static MultiTermQuery() { CONSTANT_SCORE_AUTO_REWRITE_DEFAULT = new AnonymousClassConstantScoreAutoRewrite(); }
public override void SetRewriteMethod(RewriteMethod method) { throw new System.NotSupportedException("FuzzyQuery cannot change rewrite method"); }
/// <summary> Sets the rewrite method to be used when executing the /// query. You can use one of the four core methods, or /// implement your own subclass of {@link RewriteMethod}. /// </summary> public virtual void SetRewriteMethod(RewriteMethod method) { rewriteMethod = method; }
/// <summary>Changes of mode are not supported by this class (fixed to constant score rewrite mode) </summary> public override void SetRewriteMethod(RewriteMethod method) { throw new System.NotSupportedException("Use TermRangeQuery instead to change the rewrite method."); }
public static Query Csrq(System.String f, System.String l, System.String h, bool il, bool ih, RewriteMethod method) { TermRangeQuery query = new TermRangeQuery(f, l, h, il, ih); query.RewriteMethod = method; return(query); }
public virtual void SetRewriteMethod(RewriteMethod value) { rewriteMethod = value; }
public static Query Csrq(System.String f, System.String l, System.String h, bool il, bool ih, RewriteMethod method) { TermRangeQuery query = new TermRangeQuery(f, l, h, il, ih); query.RewriteMethod = method; return query; }