private IndexField(string name, object value, IndexTypeCode typeCode) { Guard.NotEmpty(name, nameof(name)); Name = name; Value = value; TypeCode = typeCode; }
public FacetValue(object value, object upperValue, IndexTypeCode typeCode, bool includesLower, bool includesUpper) { Value = value; UpperValue = upperValue; TypeCode = typeCode; IncludesLower = includesLower; IncludesUpper = includesUpper; IsRange = true; }
private static SearchFilter ByField(string fieldName, object term, IndexTypeCode typeCode) { Guard.NotEmpty(fieldName, nameof(fieldName)); return(new SearchFilter { FieldName = fieldName, Term = term, TypeCode = typeCode }); }
private static RangeSearchFilter ByRange( string fieldName, object lowerTerm, object upperTerm, IndexTypeCode typeCode, bool includeLower, bool includeUpper) { Guard.NotEmpty(fieldName, nameof(fieldName)); return(new RangeSearchFilter { FieldName = fieldName, Term = lowerTerm, UpperTerm = upperTerm, TypeCode = typeCode, IncludesLower = includeLower, IncludesUpper = includeUpper }); }
public FacetValue(object value, IndexTypeCode typeCode) { Value = value; TypeCode = typeCode; IsRange = false; }
private static SearchSort ByField(string fieldName, IndexTypeCode typeCode, bool descending = false) { Guard.NotEmpty(fieldName, nameof(fieldName)); return(new SearchSort(fieldName, typeCode, descending)); }
private SearchSort(string name, IndexTypeCode typeCode, bool descending) { FieldName = name; TypeCode = typeCode; Descending = descending; }