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

jsonschemas/mappings[webservices]: swap full_text for exact_match levels and fix url_analyzer

parent 455d7c4e
......@@ -9,11 +9,17 @@
"pattern": "\\.|(\\:\\/\\/)|\\/"
}
},
"filter":{
"url_stop": {
"type": "stop",
"stopwords": ["http", "https", "ftp", "www", "web", "cern", "ch"]
}
},
"analyzer": {
"url_analyzer": {
"type": "standard",
"type": "custom",
"tokenizer": "url_tokenizer",
"stopwords": ["http", "https", "ftp", "www", "web", "cern", "ch"]
"filter": ["url_stop"]
}
},
"normalizer": {
......@@ -54,42 +60,42 @@
"type": "object",
"properties": {
"name": {
"type": "keyword",
"type": "text",
"analyzer": "english",
"fields": {
"french": {
"type": "text",
"analyzer": "french"
},
"english": {
"type": "text",
"analyzer": "english"
"exact_match": {
"type": "keyword"
}
}
},
"url": {
"type": "keyword",
"type": "text",
"analyzer": "url_analyzer",
"fields": {
"full_text": {
"type": "text",
"analyzer": "url_analyzer"
"exact_match": {
"type": "keyword"
}
}
},
"website": {
"type": "keyword",
"type": "text",
"analyzer": "url_analyzer",
"fields": {
"full_text": {
"type": "text",
"analyzer": "url_analyzer"
"exact_match": {
"type": "keyword"
}
}
},
"origin": {
"type": "keyword",
"type": "text",
"analyzer": "url_analyzer",
"fields": {
"full_text": {
"type": "text",
"analyzer": "url_analyzer"
"exact_match": {
"type": "keyword"
}
}
},
......@@ -104,11 +110,11 @@
}
},
"authors": {
"type": "keyword",
"eager_global_ordinals": true,
"type": "text",
"fields": {
"full_text": {
"type": "text"
"exact_match": {
"type": "keyword",
"eager_global_ordinals": true
}
}
}
......
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