|
@@ -40,46 +40,70 @@
|
|
|
"properties" : {
|
|
"properties" : {
|
|
|
"name": {
|
|
"name": {
|
|
|
"type": "string",
|
|
"type": "string",
|
|
|
- "analyzer": "autocomplete"
|
|
|
|
|
|
|
+ "analyzer": "autocomplete",
|
|
|
|
|
+ "include_in_all": false
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
"pages": {
|
|
"pages": {
|
|
|
"properties" : {
|
|
"properties" : {
|
|
|
"path": {
|
|
"path": {
|
|
|
- "type" : "multi_field",
|
|
|
|
|
- "fields" : {
|
|
|
|
|
- "raw": {"type" : "string", "index" : "not_analyzed"},
|
|
|
|
|
- "ja": {"type" : "string", "analyzer" : "kuromoji"},
|
|
|
|
|
- "en": {"type" : "string", "analyzer" : "english"}
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ "type": "string",
|
|
|
|
|
+ "copy_to": ["path_ja", "path_en"],
|
|
|
|
|
+ "include_in_all": false,
|
|
|
|
|
+ "index": "not_analyzed"
|
|
|
|
|
+ },
|
|
|
|
|
+ "path_ja": {
|
|
|
|
|
+ "type": "string",
|
|
|
|
|
+ "analyzer": "kuromoji",
|
|
|
|
|
+ "include_in_all": false
|
|
|
|
|
+ },
|
|
|
|
|
+ "path_en": {
|
|
|
|
|
+ "type": "string",
|
|
|
|
|
+ "analyzer": "english",
|
|
|
|
|
+ "include_in_all": false
|
|
|
},
|
|
},
|
|
|
"body": {
|
|
"body": {
|
|
|
- "type" : "multi_field",
|
|
|
|
|
- "fields" : {
|
|
|
|
|
- "ja": {"type" : "string", "analyzer" : "kuromoji"},
|
|
|
|
|
- "en": {"type" : "string", "analyzer" : "english"}
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ "type": "string",
|
|
|
|
|
+ "copy_to": ["body_ja", "body_en"],
|
|
|
|
|
+ "include_in_all": false,
|
|
|
|
|
+ "index": "not_analyzed"
|
|
|
|
|
+ },
|
|
|
|
|
+ "body_ja": {
|
|
|
|
|
+ "type": "string",
|
|
|
|
|
+ "analyzer": "kuromoji",
|
|
|
|
|
+ "include_in_all": false
|
|
|
|
|
+ },
|
|
|
|
|
+ "body_en": {
|
|
|
|
|
+ "type": "string",
|
|
|
|
|
+ "analyzer": "english",
|
|
|
|
|
+ "include_in_all": false
|
|
|
},
|
|
},
|
|
|
"username": {
|
|
"username": {
|
|
|
- "type": "string"
|
|
|
|
|
|
|
+ "type": "string",
|
|
|
|
|
+ "include_in_all": false
|
|
|
},
|
|
},
|
|
|
"comment_count": {
|
|
"comment_count": {
|
|
|
- "type": "integer"
|
|
|
|
|
|
|
+ "type": "integer",
|
|
|
|
|
+ "include_in_all": false
|
|
|
},
|
|
},
|
|
|
"bookmark_count": {
|
|
"bookmark_count": {
|
|
|
- "type": "integer"
|
|
|
|
|
|
|
+ "type": "integer",
|
|
|
|
|
+ "include_in_all": false
|
|
|
},
|
|
},
|
|
|
"like_count": {
|
|
"like_count": {
|
|
|
- "type": "integer"
|
|
|
|
|
|
|
+ "type": "integer",
|
|
|
|
|
+ "include_in_all": false
|
|
|
},
|
|
},
|
|
|
"created_at": {
|
|
"created_at": {
|
|
|
"type": "date",
|
|
"type": "date",
|
|
|
- "format": "dateOptionalTime"
|
|
|
|
|
|
|
+ "format": "dateOptionalTime",
|
|
|
|
|
+ "include_in_all": false
|
|
|
},
|
|
},
|
|
|
"updated_at": {
|
|
"updated_at": {
|
|
|
"type": "date",
|
|
"type": "date",
|
|
|
- "format": "dateOptionalTime"
|
|
|
|
|
|
|
+ "format": "dateOptionalTime",
|
|
|
|
|
+ "include_in_all": false
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|