Esempio n. 1
0
 /// <summary>
 /// Not chainable with AddSortField. Use AddKeywordAndSortFields to add both.
 /// </summary>
 public static TextPropertyDescriptor <T> AddKeywordField <T>(this TextPropertyDescriptor <T> descriptor) where T : class
 {
     return(descriptor.Fields(f => f.Keyword(s => s.Name(KeywordFieldName).IgnoreAbove(256))));
 }
Esempio n. 2
0
 public static TextPropertyDescriptor <T> AddKeywordAndSortFields <T>(this TextPropertyDescriptor <T> descriptor, string sortNormalizer = "sort") where T : class
 {
     return(descriptor.Fields(f => f.Keyword(s => s.Name(ElasticMapping.KeywordFieldName).IgnoreAbove(256)).Keyword(s => s.Name(SortFieldName).Normalizer(sortNormalizer).IgnoreAbove(256))));
 }