-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathokky_job_sample
144 lines (138 loc) · 3.5 KB
/
okky_job_sample
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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
PUT okky_job_sample
{
"settings": {
"index": {
"analysis": {
"analyzer": {
"korean_nori_analyzer": {
"type": "custom",
"char_filter" : ["html_strip"],
"tokenizer": "korean_nori_tokenizer",
"filter" : [
"korean_nori_part_of_speech",
"lowercase",
"stemmer_filter",
"word_length_filter",
"puntucation_replace_filter"
]
},
"pattern_analyzer" :{
"type": "custom",
"char_filter" : ["html_strip"],
"tokenizer": "pattern_tokenizer",
"filter" : [
"lowercase",
"stemmer_filter",
"josa_replace_filter",
"word_length_filter",
"puntucation_replace_filter"
]
}
},
"tokenizer": {
"pattern_tokenizer": {
"pattern": "[ ]",
"type": "pattern"
},
"korean_nori_tokenizer": {
"type": "nori_tokenizer",
"decompound_mode": "mixed"
}
},
"filter":{
"korean_nori_part_of_speech": {
"type": "nori_part_of_speech",
"stoptags": [
"E",
"J",
"MAG",
"MAJ",
"MM",
"SP",
"SSC",
"SSO",
"SC",
"SE",
"SF",
"XSA",
"XSN",
"XSV",
"UNA",
"NA",
"VSV",
"VCP",
"VCN"
]
},
"word_length_filter": {
"type": "length",
"min": 2
},
"stemmer_filter": {
"type": "stemmer",
"name": "porter2"
},
"josa_replace_filter": {
"type": "pattern_replace",
"pattern": "[은는을를의에이가할된]",
"replacement": ""
},
"puntucation_replace_filter": {
"type": "pattern_replace",
"pattern": "[\\.?!]{1,}$",
"replacement": ""
}
}
}
}
}
}
GET okky_job_sample/_analyze
{
"analyzer": "korean_nori_analyzer",
"text": "서울시 강남구"
}
{
"tokens" : [
{
"token" : "서울시",
"start_offset" : 0,
"end_offset" : 3,
"type" : "word",
"position" : 0,
"positionLength" : 2
},
{
"token" : "서울",
"start_offset" : 0,
"end_offset" : 2,
"type" : "word",
"position" : 0
},
{
"token" : "강남구",
"start_offset" : 4,
"end_offset" : 7,
"type" : "word",
"position" : 2,
"positionLength" : 2
},
{
"token" : "강남",
"start_offset" : 4,
"end_offset" : 6,
"type" : "word",
"position" : 2
}
]
}
GET okky_job_sample/_analyze
{
"analyzer": "pattern_analyzer",
"text": "c++"
}
GET okky_job_sample/_analyze
{
"analyzer": "korean_nori_analyzer",
"text": "하늘을"
}