Intégration du schéma pour les posts de blogs
authorThierry Florac <thierry.florac@onf.fr>
Mon, 20 Jun 2016 14:37:15 +0200
changeset 4 039f1f212f8a
parent 3 bfd1096fd666
child 5 ccee68e1a1fe
Intégration du schéma pour les posts de blogs
docs/WfBlogPost.json
docs/WfNewsEvent.json
docs/mappings.json
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/WfBlogPost.json	Mon Jun 20 14:37:15 2016 +0200
@@ -0,0 +1,156 @@
+{
+	"WfBlogPost": {
+		"properties": {
+			"title": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"short_name": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"description": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"body": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"workflow": {
+				"type": "object",
+				"properties": {
+					"name": {
+						"type": "string"
+					},
+					"date": {
+						"type": "date"
+					},
+					"status": {
+						"type": "string"
+					}
+				}
+			},
+			"extfile": {
+				"type": "object",
+				"properties": {
+					"title": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					},
+					"description": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					},
+					"data": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "attachment"
+							},
+							"fr": {
+								"type": "attachment"
+							}
+						}
+					}
+				}
+			},
+			"gallery": {
+				"type": "object",
+				"properties": {
+					"title": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					},
+					"description": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					}
+				}
+			},
+			"location": {
+				"type": "object",
+				"properties": {
+					"coords": {
+						"type": "geo_point"
+					}
+				}
+			},
+			"themes": {
+				"type": "object"
+			}
+		}
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/WfNewsEvent.json	Mon Jun 20 14:37:15 2016 +0200
@@ -0,0 +1,156 @@
+{
+	"WfNewsEvent": {
+		"properties": {
+			"title": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"short_name": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"description": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"body": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"workflow": {
+				"type": "object",
+				"properties": {
+					"name": {
+						"type": "string"
+					},
+					"date": {
+						"type": "date"
+					},
+					"status": {
+						"type": "string"
+					}
+				}
+			},
+			"extfile": {
+				"type": "object",
+				"properties": {
+					"title": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					},
+					"description": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					},
+					"data": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "attachment"
+							},
+							"fr": {
+								"type": "attachment"
+							}
+						}
+					}
+				}
+			},
+			"gallery": {
+				"type": "object",
+				"properties": {
+					"title": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					},
+					"description": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					}
+				}
+			},
+			"location": {
+				"type": "object",
+				"properties": {
+					"coords": {
+						"type": "geo_point"
+					}
+				}
+			},
+			"themes": {
+				"type": "object"
+			}
+		}
+	}
+}
--- a/docs/mappings.json	Thu Jun 02 15:33:01 2016 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,156 +0,0 @@
-{
-	"WfNewsEvent": {
-		"properties": {
-			"title": {
-				"type": "object",
-				"properties": {
-					"en": {
-						"type": "string"
-					},
-					"fr": {
-						"type": "string",
-						"analyzer": "french",
-						"search_analyzer": "french_search"
-					}
-				}
-			},
-			"short_name": {
-				"type": "object",
-				"properties": {
-					"en": {
-						"type": "string"
-					},
-					"fr": {
-						"type": "string",
-						"analyzer": "french",
-						"search_analyzer": "french_search"
-					}
-				}
-			},
-			"description": {
-				"type": "object",
-				"properties": {
-					"en": {
-						"type": "string"
-					},
-					"fr": {
-						"type": "string",
-						"analyzer": "french",
-						"search_analyzer": "french_search"
-					}
-				}
-			},
-			"body": {
-				"type": "object",
-				"properties": {
-					"en": {
-						"type": "string"
-					},
-					"fr": {
-						"type": "string",
-						"analyzer": "french",
-						"search_analyzer": "french_search"
-					}
-				}
-			},
-			"workflow": {
-				"type": "object",
-				"properties": {
-					"name": {
-						"type": "string"
-					},
-					"date": {
-						"type": "date"
-					},
-					"status": {
-						"type": "string"
-					}
-				}
-			},
-			"extfile": {
-				"type": "object",
-				"properties": {
-					"title": {
-						"type": "object",
-						"properties": {
-							"en": {
-								"type": "string"
-							},
-							"fr": {
-								"type": "string",
-								"analyzer": "french",
-								"search_analyzer": "french_search"
-							}
-						}
-					},
-					"description": {
-						"type": "object",
-						"properties": {
-							"en": {
-								"type": "string"
-							},
-							"fr": {
-								"type": "string",
-								"analyzer": "french",
-								"search_analyzer": "french_search"
-							}
-						}
-					},
-					"data": {
-						"type": "object",
-						"properties": {
-							"en": {
-								"type": "attachment"
-							},
-							"fr": {
-								"type": "attachment"
-							}
-						}
-					}
-				}
-			},
-			"gallery": {
-				"type": "object",
-				"properties": {
-					"title": {
-						"type": "object",
-						"properties": {
-							"en": {
-								"type": "string"
-							},
-							"fr": {
-								"type": "string",
-								"analyzer": "french",
-								"search_analyzer": "french_search"
-							}
-						}
-					},
-					"description": {
-						"type": "object",
-						"properties": {
-							"en": {
-								"type": "string"
-							},
-							"fr": {
-								"type": "string",
-								"analyzer": "french",
-								"search_analyzer": "french_search"
-							}
-						}
-					}
-				}
-			},
-			"location": {
-				"type": "object",
-				"properties": {
-					"coords": {
-						"type": "geo_point"
-					}
-				}
-			},
-			"themes": {
-				"type": "object"
-			}
-		}
-	}
-}