示例#1
0
 public virtual Query GetQueryDOA(System.String query, Analyzer a)
 {
     if (a == null)
     {
         a = new SimpleAnalyzer();
     }
     QueryParsers.QueryParser qp = new QueryParsers.QueryParser("Field", a);
     qp.SetOperator(QueryParsers.QueryParser.DEFAULT_OPERATOR_AND);
     return(qp.Parse(query));
 }
示例#2
0
 public virtual QueryParsers.QueryParser GetParser(Analyzer a)
 {
     if (a == null)
     {
         a = new SimpleAnalyzer();
     }
     QueryParsers.QueryParser qp = new QueryParsers.QueryParser("Field", a);
     qp.SetOperator(QueryParsers.QueryParser.DEFAULT_OPERATOR_OR);
     return(qp);
 }
示例#3
0
		public virtual Query GetQueryDOA(System.String query, Analyzer a)
		{
			if (a == null)
				a = new SimpleAnalyzer();
			QueryParsers.QueryParser qp = new QueryParsers.QueryParser("Field", a);
			qp.SetOperator(QueryParsers.QueryParser.DEFAULT_OPERATOR_AND);
			return qp.Parse(query);
		}
示例#4
0
		public virtual QueryParsers.QueryParser GetParser(Analyzer a)
		{
			if (a == null)
				a = new SimpleAnalyzer();
			QueryParsers.QueryParser qp = new QueryParsers.QueryParser("Field", a);
			qp.SetOperator(QueryParsers.QueryParser.DEFAULT_OPERATOR_OR);
			return qp;
		}