Commit f3815c8f authored by Pablo Panero's avatar Pablo Panero
Browse files

mappings: disable indexing of $schema and enable _search_all in cernsearch-test

parent d8a3858d
......@@ -37,7 +37,7 @@
"type": "keyword"
},
"$schema": {
"type": "keyword"
"enabled": false
}
}
}
......
......@@ -30,28 +30,43 @@
}
}
},
"_search_all": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"title": {
"type": "text",
"analyzer": "english"
"copy_to": "_search_all"
},
"description": {
"type": "text",
"analyzer": "english"
"copy_to": "_search_all"
},
"link": {
"type": "keyword"
"type": "keyword",
"copy_to": "_search_all"
},
"b64": {
"type": "keyword"
"enabled": false
},
"content": {
"type": "object"
"type": "object",
"copy_to": "_search_all"
},
"custom_pid": {
"type": "keyword"
},
"$schema": {
"type": "keyword"
"enabled": false
}
}
}
......
......@@ -30,23 +30,36 @@
}
}
},
"_search_all": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"minutes": {
"type": "text",
"analyzer": "english"
"copy_to": "_search_all"
},
"content": {
"type": "text",
"analyzer": "english"
"copy_to": "_search_all"
},
"authors": {
"type": "text",
"analyzer": "english"
"copy_to": "_search_all"
},
"custom_pid": {
"type": "keyword"
},
"$schema": {
"type": "keyword"
"enabled": false
}
}
}
......
......@@ -9,9 +9,6 @@
"_meta": {
"_owner": "CernSearch-Administrators@cern.ch"
},
"_all": {
"analyzer": "english"
},
"properties": {
"_access": {
"type": "object",
......@@ -30,19 +27,32 @@
}
}
},
"title": {
"_search_all": {
"type": "text",
"analyzer": "english"
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"title": {
"type": "keyword",
"copy_to": "_search_all"
},
"description": {
"type": "text",
"analyzer": "english"
"copy_to": "_search_all"
},
"custom_pid": {
"type": "keyword"
},
"$schema": {
"type": "keyword"
"enabled": false
}
}
}
......
......@@ -46,7 +46,7 @@
}
}
},
"nparents": {
"nested_parents": {
"type": "nested",
"properties": {
"type": {
......@@ -66,7 +66,7 @@
"type": "keyword"
},
"$schema": {
"type": "keyword"
"enabled": false
}
}
}
......
......@@ -30,14 +30,28 @@
}
}
},
"_search_all": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"type": {
"type": "text"
"type": "text",
"copy_to": "_search_all"
},
"custom_pid": {
"type": "keyword"
},
"$schema": {
"type": "keyword"
"enabled": false
}
}
}
......
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