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)); }
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); }
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); }
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; }