Slide 19
Slide 19 text
indexをつくればいいんでっくすwwwwwww
{"query": {
"bool": {
"should": [
{"match":{
"roman": {
"query": qr,
"fuzziness": "AUTO"
}}},
{"match":{
"body": {
"query": q,
"fuzziness" : "AUTO",
"boost":100
}}},
{"match":{
"vec": {
"query": qev
}}}]}}} + score function
...
"tokenizer": {
"normal_tokenizer": {
"type": "kuromoji_tokenizer",
"mode": "normal"}
},
"analyzer": {
"normal_analyzer": {
"type": "custom",
"tokenizer": "kuromoji_tokenizer",
"filter":[
"trim",
"kuromoji_stemmer",
"ja_pos_meishi_filter"
]}}}},
"mappings": {
"dynamic": "strict",
"properties": {
"body": { "type": "text", "analyzer":
"normal_analyzer", "search_analyzer":
"normal_analyzer", "term_vector" :
"with_positions_offsets" },
"roman": { "type": "text"}},
"vec": {"type": "vector"}}}
検索
index