public IQueryBuilder MustNotAnyOf(params ISearchTerm[] terms) { var inner = LuceneHelper.JoinOr(terms.Select(x => x.ToLuceneString())); _query.Append($" {LuceneHelper.MUST_NOT_OPERATOR}{inner}"); return(this); }
public string ToLuceneString() { return(string.Format(LuceneHelper.TERM_FORMAT, _fieldName, LuceneHelper.JoinOr(_values))); }