예제 #1
0
 public IndexerTests()
 {
     SearchIndex = SearchIndexer.Build(Mock.SimpleData,
                                       new SearchIndexOptions <SampleClass>(resultThreshold: 0.5d)
                                       .AddProperty(c => c.Company, 1)
                                       .AddProperty(c => c.City)
                                       .AddProperty(c => c.Country, 0.6)
                                       );
 }
예제 #2
0
 public AirportSearchTests()
 {
     SearchIndex = SearchIndexer.Build(Mock.Airports,
                                       new SearchIndexOptions <Airport>(resultThreshold: 0.5)
                                       .AddProperty(c => c.iata_code, 1, true)
                                       .AddProperty(c => c.name)
                                       .AddProperty(c => c.municipality, 0.6)
                                       .AddProperty(c => c.iso_country, 0.2, true)
                                       );
 }