示例#1
0
 static MultiTermQuery()
 {
     CONSTANT_SCORE_AUTO_REWRITE_DEFAULT = new AnonymousClassConstantScoreAutoRewrite();
 }
示例#2
0
		public override void  SetRewriteMethod(RewriteMethod method)
		{
			throw new System.NotSupportedException("FuzzyQuery cannot change rewrite method");
		}
示例#3
0
 public override void  SetRewriteMethod(RewriteMethod method)
 {
     throw new System.NotSupportedException("FuzzyQuery cannot change rewrite method");
 }
示例#4
0
 /// <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> 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;
		}
		static MultiTermQuery()
		{
			CONSTANT_SCORE_AUTO_REWRITE_DEFAULT = new AnonymousClassConstantScoreAutoRewrite();
		}
 /// <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);
        }
示例#9
0
 public virtual void SetRewriteMethod(RewriteMethod value)
 {
     rewriteMethod = value;
 }
示例#10
0
 /// <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;
 }