-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex2.cs
38 lines (28 loc) · 1.05 KB
/
index2.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Text;
namespace AzureSearch
{
using System;
using Microsoft.Azure.Search;
using Microsoft.Azure.Search.Models;
using Microsoft.Spatial;
using Newtonsoft.Json;
public class index2
{
[System.ComponentModel.DataAnnotations.Key]
[IsRetrievable(true), IsFilterable, IsSortable]
public string id { get; set; }
[Analyzer(AnalyzerName.AsString.StandardLucene)]
[IsRetrievable(true), IsFilterable, IsSortable, IsSearchable]
public string code { get; set; }
[Analyzer(AnalyzerName.AsString.StandardLucene)]
[IsRetrievable(true), IsFilterable, IsSortable, IsSearchable]
public string name { get; set; }
[Analyzer(AnalyzerName.AsString.StandardLucene)]
[IsRetrievable(true), IsFilterable, IsSortable, IsSearchable]
public string city { get; set; }
[IsRetrievable(true), IsFilterable, IsSortable]
public string countryCode { get; set; }
}
}