Example #1
0
 internal PropertyMetadata(string propertyName, Type clrType, bool isIgnored,
                           RedisearchPropertyType redisearchType, bool notIndexed, bool sortable, bool noStem, double weight)
 {
     PropertyName   = propertyName;
     ClrType        = clrType;
     IsIgnored      = isIgnored;
     RedisearchType = redisearchType;
     NotIndexed     = notIndexed;
     Sortable       = sortable;
     NoStem         = noStem;
     Weight         = weight;
 }
 /// <summary>
 /// Sets the underlying redisearch type for property.
 /// </summary>
 /// <param name="propertyType">The property type to be used by the indexing engine.</param>
 public void AsRedisearchType(RedisearchPropertyType propertyType)
 {
     _redisearchType = propertyType;
 }
 internal PropertyMetadataBuilder(string propertyName, Type clrType)
 {
     _propertyName   = propertyName;
     _clrType        = clrType;
     _redisearchType = AssignRedisearchTypeTo(clrType);
 }