Slide 9
Slide 9 text
Mappingͷ࡞
9
$ curl -d localhost:9200/docs -d ‘
{
"mappings" : {
"_default_" : {
"properties" : {
"file" : {
"type" : "attachment",
"fields" : {
"content" : { "type" : "string", "store" : true,
"term_vector" : "with_positions_offsets", "analyzer" : "kuromoji" },
"author" : { "type" : "string", "store" : true,
"analyzer" : "kuromoji" },
"title" : { "type" : "string", "store" : true,
"analyzer" : "kuromoji" },
"name" : { "type" : "string", "store" : true,
"analyzer" : "kuromoji" },
"date" : { "type" : "string", "store" : true },
"keywords" : { "type" : "string", "store" : true },
"content_type" : { "type" : "string", "store" : true },
"content_length" : { "type" : "string", "store" : true },
"language" : { "type" : "string", "store" : true }
}}}}}}’