diff --git a/module/Oscar/src/Oscar/Strategy/Search/OrganizationElasticSearch.php b/module/Oscar/src/Oscar/Strategy/Search/OrganizationElasticSearch.php
index 414a888f005bb9b8490bb39bac957b64ac318439..f41e9dc296628776eb5f93d9aa19a5f74fc0fbed 100644
--- a/module/Oscar/src/Oscar/Strategy/Search/OrganizationElasticSearch.php
+++ b/module/Oscar/src/Oscar/Strategy/Search/OrganizationElasticSearch.php
@@ -265,77 +265,77 @@ class OrganizationElasticSearch implements OrganizationSearchStrategy
} catch (\Exception $e) {
throw $e;
}
-
- try {
- $this->getClient()->indices()->create(
- [
- 'index' => $this->getIndex(),
- 'body' => [
- 'settings' => [
- 'analysis' => [
- 'analyzer' => [
- 'noaccent' => [
- "type" => "custom",
- "tokenizer" => "standard",
- "filter" => ['asciifolding', "lowercase"]
- ]
- ],
- ]
- ],
- 'mappings' => [
- "organization" => [
- 'properties' => [
- 'code' => [
- 'type' => 'keyword',
- ],
- 'shortname' => [
- 'type' => 'text',
-// 'analyzer' => 'noaccent'
- ],
- 'fullname' => [
-// 'analyzer' => 'noaccent',
- 'type' => 'text',
- ],
- 'description' => [
-// 'analyzer' => 'noaccent',
- 'type' => 'text',
- ],
- 'email' => [
-// 'analyzer' => 'noaccent',
- 'type' => 'text',
- ],
- 'city' => [
-// 'analyzer' => 'noaccent',
- 'type' => 'text',
- ],
- 'siret' => [
- 'type' => 'keyword',
- ],
- 'country' => [
- 'type' => 'keyword',
- ],
- 'connectors' => [
- 'type' => 'keyword',
- ],
- 'zipcode' => [
- 'type' => 'keyword',
- ],
- 'persons' => [
-// 'analyzer' => 'noaccent',
- 'type' => 'text',
- ],
- 'activities' => [
-// 'analyzer' => 'noaccent',
- 'type' => 'text',
- ],
- ]
- ]
- ]
- ]
- ]
- );
- } catch (\Exception $e) {
- throw new OscarException("Impossible de créer l'index de recherche : \n---\n" . $e->getMessage());
- }
+//
+// try {
+// $this->getClient()->indices()->create(
+// [
+// 'index' => $this->getIndex(),
+// 'body' => [
+// 'settings' => [
+// 'analysis' => [
+// 'analyzer' => [
+// 'noaccent' => [
+// "type" => "custom",
+// "tokenizer" => "standard",
+// "filter" => ['asciifolding', "lowercase"]
+// ]
+// ],
+// ]
+// ],
+// 'mappings' => [
+// "organization" => [
+// 'properties' => [
+// 'code' => [
+// 'type' => 'keyword',
+// ],
+// 'shortname' => [
+// 'type' => 'text',
+//// 'analyzer' => 'noaccent'
+// ],
+// 'fullname' => [
+//// 'analyzer' => 'noaccent',
+// 'type' => 'text',
+// ],
+// 'description' => [
+//// 'analyzer' => 'noaccent',
+// 'type' => 'text',
+// ],
+// 'email' => [
+//// 'analyzer' => 'noaccent',
+// 'type' => 'text',
+// ],
+// 'city' => [
+//// 'analyzer' => 'noaccent',
+// 'type' => 'text',
+// ],
+// 'siret' => [
+// 'type' => 'keyword',
+// ],
+// 'country' => [
+// 'type' => 'keyword',
+// ],
+// 'connectors' => [
+// 'type' => 'keyword',
+// ],
+// 'zipcode' => [
+// 'type' => 'keyword',
+// ],
+// 'persons' => [
+//// 'analyzer' => 'noaccent',
+// 'type' => 'text',
+// ],
+// 'activities' => [
+//// 'analyzer' => 'noaccent',
+// 'type' => 'text',
+// ],
+// ]
+// ]
+// ]
+// ]
+// ]
+// );
+// } catch (\Exception $e) {
+// throw new OscarException("Impossible de créer l'index de recherche : \n---\n" . $e->getMessage());
+// }
}
}
\ No newline at end of file