private void AddTermToQuery(StringBuilder queryBuilder, NumericTerm term) { queryBuilder.Append($"@{FieldName}:"); queryBuilder.Append("["); AddNumberToQuery(queryBuilder, term.Min, term.ExclusiveMin); queryBuilder.Append(" "); AddNumberToQuery(queryBuilder, term.Max, term.ExclusiveMax); queryBuilder.Append("] | "); }
IAndOrOptions <TEntity> IMatching <TEntity> .ShouldMatch(NumericTerm term) { _filters[_currentFieldKey].Add(new NumericFilter(_currentFieldKey, Filter.FilterTypes.Should, term)); return(this); }