示例#1
0
 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("] | ");
 }
示例#2
0
 IAndOrOptions <TEntity> IMatching <TEntity> .ShouldMatch(NumericTerm term)
 {
     _filters[_currentFieldKey].Add(new NumericFilter(_currentFieldKey, Filter.FilterTypes.Should, term));
     return(this);
 }