Beispiel #1
0
        public IRavenLuceneMethodQuery Merge(IRavenLuceneMethodQuery other)
        {
            var termsMatchQuery = (TermsMatchQuery)other;

            matches.AddRange(termsMatchQuery.matches);

            matches = matches.Distinct()
                      .Where(x => string.IsNullOrWhiteSpace(x) == false)
                      .OrderBy(s => s, StringComparer.Ordinal).ToList();
            return(this);
        }
Beispiel #2
0
		public IRavenLuceneMethodQuery Merge(IRavenLuceneMethodQuery other)
		{
			var termsMatchQuery = (TermsMatchQuery)other;
			matches.AddRange(termsMatchQuery.matches);

			matches = matches.Distinct()
				.Where(x => string.IsNullOrWhiteSpace(x) == false)
				.OrderBy(s => s, StringComparer.Ordinal).ToList();
			return this;
		}