Dsearch Index
[index]
ds_content : 문서인덱스
[ds_content]
PUT ds_content
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"analysis": {
"analyzer": {
"nori_analyzer_mixed": {
"tokenizer" : "nori_tokenizer_mixed",
"filter": [
"nori_synonym",
"nori_stoptag",
"nori_stopword"
]
}
},
"tokenizer": {
"nori_tokenizer_none": {
"type": "nori_tokenizer",
"decompound_mode": "none",
"user_dictionary": "dictionary/user.txt"
},
"nori_tokenizer_discard": {
"type": "nori_tokenizer",
"decompound_mode": "discard",
"user_dictionary": "dictionary/user.txt"
},
"nori_tokenizer_mixed": {
"type": "nori_tokenizer",
"decompound_mode": "mixed",
"user_dictionary": "dictionary/user.txt"
}
},
"filter": {
"nori_synonym": {
"type": "synonym",
"synonyms_path": "dictionary/synonym.txt"
},
"nori_stoptag": {
"type": "nori_part_of_speech",
"stoptags": [
"E", "IC", "J", "MAG", "MAJ",
"MM", "SP", "SSC", "SSO", "SC",
"SE", "XPN", "XSA", "XSN", "XSV",
"UNA", "NA", "VSV"
]
},
"nori_stopword": {
"type": "stop",
"stopwords_path": "dictionary/stopword.txt"
}
}
}
},
"mappings": {
"properties": {
"title": {
"type": "text",
"analyzer": "nori_analyzer_mixed",
"search_analyzer": "nori_analyzer_mixed"
},
"text": {
"type": "text",
"analyzer": "nori_analyzer_mixed",
"search_analyzer": "nori_analyzer_mixed"
},
"html": {
"type": "text",
"analyzer": "nori_analyzer_mixed",
"search_analyzer": "nori_analyzer_mixed"
},
"resource": {
"type": "keyword"
},
"filetype": {
"type": "keyword"
},
"filename": {
"type": "keyword"
},
"filepath": {
"type": "keyword"
},
"relation": {
"type": "keyword"
},
"status": {
"type": "keyword"
},
"author": {
"type": "keyword"
},
"modifier": {
"type": "keyword"
},
"created": {
"type": "date"
},
"modified": {
"type": "date"
}
}
}
}
GET /
댓글
댓글 쓰기