personium / personium-lib-es-adapter

Abstraction layer to absorb version incompatibilities of ElasticSearch.
Apache License 2.0
2 stars 5 forks source link

Move mapping json files to personium-core. #24

Open SawamiWataru opened 5 years ago

SawamiWataru commented 5 years ago

The schema definition of elasticsearch should switch according to the version of personium-core. Move mapping json in lib-es-adapter to core.


elasticsearchのスキーマ定義はcoreのバージョンに応じて変更が入るものだが、現状はlib-es-adapterを修正しなければならない。 coreの修正のみで済むように構造の変更が必要。

elasticsearchのスキーマを定義しているjson群 https://github.com/personium/personium-lib-es-adapter/tree/master/src/main/resources/es/mapping これをcoreに移動する。

yoh1496 commented 2 years ago

Codes calling EsIndex.create are scattered in personium-core.

How about calling EsIndex.create only when unituser is created, and calling api when index is not created throws exception?