public virtual void Visit(ITermsSetQuery query) => Write("terms_set");
Exemple #2
0
 internal static bool IsConditionless(ITermsSetQuery q) =>
 q.Field.IsConditionless() ||
 q.Terms == null ||
 !q.Terms.HasAny() ||
 q.Terms.All(t => t == null || ((t as string)?.IsNullOrEmpty()).GetValueOrDefault(false)) ||
 q.MinimumShouldMatchField.IsConditionless() && q.MinimumShouldMatchScript == null;
 public virtual void Visit(ITermsSetQuery query)
 {
 }