public RangeQuery(string range, string start, string end, OccurType occurType) : base(occurType) { _range = range; _start = start; _end = end; }
public static BooleanClause.Occur ToOccur(this OccurType occurType) { BooleanClause.Occur clause = BooleanClause.Occur.SHOULD; switch (occurType) { case OccurType.Must: clause = BooleanClause.Occur.MUST; break; case OccurType.MustNot: clause = BooleanClause.Occur.MUST_NOT; break; case OccurType.Should: clause = BooleanClause.Occur.SHOULD; break; } return(clause); }
public StringQuery(string field, string query, OccurType occurType) : base(occurType) { _field = field; _query = query; }
public MultiQuery(string queryString, Analyzer analyzer, OccurType occrType) : base(occrType) { _queryString = queryString; }
public OrQuery(BaseQuery fQuery, BaseQuery f2Query, OccurType occurType) : base(occurType) { _fQuery = fQuery; _f2Query = f2Query; }
protected BaseQuery() { _occurType = OccurType.Should; }
protected BaseQuery(OccurType occurType) { _occurType = occurType; }