Blame view

mappings/search_suggestions.json 5.44 KB
2d17b98e   tangwang   sugg
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
  {
    "settings": {
      "number_of_shards": 1,
      "number_of_replicas": 0,
      "refresh_interval": "30s",
      "analysis": {
        "analyzer": {
          "index_ik": {
            "type": "custom",
            "tokenizer": "ik_max_word",
            "filter": ["lowercase", "asciifolding"]
          },
          "query_ik": {
            "type": "custom",
            "tokenizer": "ik_smart",
            "filter": ["lowercase", "asciifolding"]
          }
        }
      }
    },
    "mappings": {
      "properties": {
        "tenant_id": { "type": "keyword" },
        "lang": { "type": "keyword" },
        "text": { "type": "keyword" },
        "text_norm": { "type": "keyword" },
        "sources": { "type": "keyword" },
        "title_doc_count": { "type": "integer" },
        "qanchor_doc_count": { "type": "integer" },
00c8ddb9   tangwang   suggest rank opti...
30
        "tag_doc_count": { "type": "integer" },
2d17b98e   tangwang   sugg
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
        "query_count_7d": { "type": "integer" },
        "query_count_30d": { "type": "integer" },
        "rank_score": { "type": "float" },
        "lang_confidence": { "type": "float" },
        "lang_source": { "type": "keyword" },
        "lang_conflict": { "type": "boolean" },
        "status": { "type": "byte" },
        "updated_at": { "type": "date" },
        "completion": {
          "properties": {
            "zh": {
              "type": "completion",
              "analyzer": "index_ik",
              "search_analyzer": "query_ik"
            },
            "en": { "type": "completion", "analyzer": "english" },
            "ar": { "type": "completion", "analyzer": "arabic" },
            "hy": { "type": "completion", "analyzer": "armenian" },
            "eu": { "type": "completion", "analyzer": "basque" },
            "pt_br": { "type": "completion", "analyzer": "brazilian" },
            "bg": { "type": "completion", "analyzer": "bulgarian" },
            "ca": { "type": "completion", "analyzer": "catalan" },
            "cjk": { "type": "completion", "analyzer": "cjk" },
            "cs": { "type": "completion", "analyzer": "czech" },
            "da": { "type": "completion", "analyzer": "danish" },
            "nl": { "type": "completion", "analyzer": "dutch" },
            "fi": { "type": "completion", "analyzer": "finnish" },
            "fr": { "type": "completion", "analyzer": "french" },
            "gl": { "type": "completion", "analyzer": "galician" },
            "de": { "type": "completion", "analyzer": "german" },
            "el": { "type": "completion", "analyzer": "greek" },
            "hi": { "type": "completion", "analyzer": "hindi" },
            "hu": { "type": "completion", "analyzer": "hungarian" },
            "id": { "type": "completion", "analyzer": "indonesian" },
            "it": { "type": "completion", "analyzer": "italian" },
            "no": { "type": "completion", "analyzer": "norwegian" },
            "fa": { "type": "completion", "analyzer": "persian" },
            "pt": { "type": "completion", "analyzer": "portuguese" },
            "ro": { "type": "completion", "analyzer": "romanian" },
            "ru": { "type": "completion", "analyzer": "russian" },
            "es": { "type": "completion", "analyzer": "spanish" },
            "sv": { "type": "completion", "analyzer": "swedish" },
            "tr": { "type": "completion", "analyzer": "turkish" },
            "th": { "type": "completion", "analyzer": "thai" }
          }
        },
        "sat": {
          "properties": {
            "zh": {
              "type": "search_as_you_type",
              "analyzer": "index_ik"
            },
            "en": { "type": "search_as_you_type", "analyzer": "english" },
            "ar": { "type": "search_as_you_type", "analyzer": "arabic" },
            "hy": { "type": "search_as_you_type", "analyzer": "armenian" },
            "eu": { "type": "search_as_you_type", "analyzer": "basque" },
            "pt_br": { "type": "search_as_you_type", "analyzer": "brazilian" },
            "bg": { "type": "search_as_you_type", "analyzer": "bulgarian" },
            "ca": { "type": "search_as_you_type", "analyzer": "catalan" },
            "cjk": { "type": "search_as_you_type", "analyzer": "cjk" },
            "cs": { "type": "search_as_you_type", "analyzer": "czech" },
            "da": { "type": "search_as_you_type", "analyzer": "danish" },
            "nl": { "type": "search_as_you_type", "analyzer": "dutch" },
            "fi": { "type": "search_as_you_type", "analyzer": "finnish" },
            "fr": { "type": "search_as_you_type", "analyzer": "french" },
            "gl": { "type": "search_as_you_type", "analyzer": "galician" },
            "de": { "type": "search_as_you_type", "analyzer": "german" },
            "el": { "type": "search_as_you_type", "analyzer": "greek" },
            "hi": { "type": "search_as_you_type", "analyzer": "hindi" },
            "hu": { "type": "search_as_you_type", "analyzer": "hungarian" },
            "id": { "type": "search_as_you_type", "analyzer": "indonesian" },
            "it": { "type": "search_as_you_type", "analyzer": "italian" },
            "no": { "type": "search_as_you_type", "analyzer": "norwegian" },
            "fa": { "type": "search_as_you_type", "analyzer": "persian" },
            "pt": { "type": "search_as_you_type", "analyzer": "portuguese" },
            "ro": { "type": "search_as_you_type", "analyzer": "romanian" },
            "ru": { "type": "search_as_you_type", "analyzer": "russian" },
            "es": { "type": "search_as_you_type", "analyzer": "spanish" },
            "sv": { "type": "search_as_you_type", "analyzer": "swedish" },
            "tr": { "type": "search_as_you_type", "analyzer": "turkish" },
            "th": { "type": "search_as_you_type", "analyzer": "thai" }
          }
        }
      }
    }
  }