Пример #1
0
 protected override TypeMappingDescriptor <PageDocument> BuildTypeMapDescriptor(CultureInfo cultureInfo, TypeMappingDescriptor <PageDocument> descriptor)
 {
     return(base.BuildTypeMapDescriptor(cultureInfo, descriptor)
            .Properties(p => p
                        .Text(t => t
                              .Name(x => x.Name)
                              .Similarity("BM25")
                              .Boost(10)
                              .Analyzer(cultureInfo.AsAnalyzer())
                              )
                        .Text(t => t
                              .Name(x => x.Content)
                              )
                        ));
 }