Пример #1
0
        public IQueryBuilder MustNotAnyOf(params ISearchTerm[] terms)
        {
            var inner = LuceneHelper.JoinOr(terms.Select(x => x.ToLuceneString()));

            _query.Append($" {LuceneHelper.MUST_NOT_OPERATOR}{inner}");
            return(this);
        }
Пример #2
0
 public string ToLuceneString()
 {
     return(string.Format(LuceneHelper.TERM_FORMAT, _fieldName, LuceneHelper.JoinOr(_values)));
 }