Commit 71d82d54 authored by Pablo Panero's avatar Pablo Panero
Browse files

mappings/schema: refactor directory architecture and upgrade to ES6

parent c96d6e47
......@@ -27,7 +27,7 @@
}
}
},
"name": {
"_search_all": {
"type": "text",
"fields": {
"english": {
......@@ -40,33 +40,31 @@
}
}
},
"name": {
"type": "text",
"copy_to": "_search_all"
},
"url": {
"type": "keyword"
"type": "keyword",
"copy_to": "_search_all"
},
"origin": {
"type": "keyword"
},
"content": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
"copy_to": "_search_all"
},
"extras": {
"type": "nested",
"properties": {
"title": {
"type": "keyword"
"type": "keyword",
"copy_to": "_search_all"
},
"content": {
"type": "text"
"type": "text",
"copy_to": "_search_all"
}
}
},
......@@ -78,7 +76,7 @@
"type": "keyword"
},
"$schema": {
"type": "keyword"
"enabled": false
}
}
}
......
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2018, CERN
# This software is distributed under the terms of the GNU General Public
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".
# In applying this license, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as Intergovernmental Organization
# or submit itself to any jurisdiction.
\ No newline at end of file
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2018, CERN
# This software is distributed under the terms of the GNU General Public
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".
# In applying this license, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as Intergovernmental Organization
# or submit itself to any jurisdiction.
\ No newline at end of file
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2018, CERN
# This software is distributed under the terms of the GNU General Public
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".
# In applying this license, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as Intergovernmental Organization
# or submit itself to any jurisdiction.
\ No newline at end of file
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2018, CERN
# This software is distributed under the terms of the GNU General Public
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".
# In applying this license, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as Intergovernmental Organization
# or submit itself to any jurisdiction.
\ No newline at end of file
......@@ -98,16 +98,16 @@ setup(
'cern_search_rest_api = cern_search_rest_api.config'
],
'invenio_search.mappings': [
'cernsearch-test = cern_search_rest_api.modules.cernsearch.cernsearch_test.mappings',
#'cernsearch-indico = cern_search_rest_api.modules.cernsearch.indico.mappings',
#'cernsearch-webservices = cern_search_rest_api.modules.cernsearch.webservices.mappings',
#'cernsearch-edms = cern_search_rest_api.modules.cernsearch.edms.mappings'
'cernsearch-test = cern_search_rest_api.modules.cernsearch.mappings.test',
'cernsearch-indico = cern_search_rest_api.modules.cernsearch.mappings.indico',
'cernsearch-webservices = cern_search_rest_api.modules.cernsearch.mappings.webservices',
'cernsearch-edms = cern_search_rest_api.modules.cernsearch.mappings.edms'
],
'invenio_jsonschemas.schemas': [
'cernsearch-test = cern_search_rest_api.modules.cernsearch.cernsearch_test.jsonschemas',
#'cernsearch-indico = cern_search_rest_api.modules.cernsearch.indico.jsonschemas',
#'cernsearch-webservices = cern_search_rest_api.modules.cernsearch.webservices.jsonschemas',
#'cernsearch-edms = cern_search_rest_api.modules.cernsearch.edms.jsonschemas'
'cernsearch-test = cern_search_rest_api.modules.cernsearch.jsonschemas.test',
'cernsearch-indico = cern_search_rest_api.modules.cernsearch.jsonschemas.indico',
'cernsearch-webservices = cern_search_rest_api.modules.cernsearch.jsonschemas.webservices',
'cernsearch-edms = cern_search_rest_api.modules.cernsearch.jsonschemas.edms'
],
'invenio_base.apps': [
'cern-search = cern_search_rest_api.modules.cernsearch.ext:CERNSearch'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment