wip
[phinde.git] / data / elasticsearch-mapping.json
index aad27d27e31a5a30460eda67e457ad2f6196ae4c..8cc4d2abed45c4b8161196fc9ffe38d86f4ced01 100644 (file)
@@ -9,7 +9,7 @@
                             "type": "integer"
                         },
                         "location": {
-                            "type": "string"
+                            "type": "text"
                         },
                         "processed": {
                             "type": "date"
                     }
                 },
                 "type": {
-                    "type": "string",
-                    "index": "not_analyzed"
+                    "type": "keyword"
                 },
                 "subtype": {
-                    "type": "string",
-                    "index": "not_analyzed"
+                    "type": "keyword"
                 },
                 "mimetype": {
-                    "type": "string",
-                    "index": "not_analyzed"
+                    "type": "keyword"
                 },
                 "url": {
-                    "type": "string",
-                    "index": "not_analyzed",
+                    "type": "keyword",
                     "boost": 1.5
                 },
                 "schemalessUrl": {
-                    "type": "string",
-                    "index": "not_analyzed",
+                    "type": "keyword",
                     "boost": 1.5
                 },
                 "domain": {
-                    "type": "string",
-                    "index": "not_analyzed",
+                    "type": "keyword",
                     "boost": 1.8
                 },
                 "source": {
-                    "type": "string",
-                    "index": "not_analyzed"
+                    "type": "keyword"
                 },
                 "language": {
-                    "type": "string",
-                    "index": "not_analyzed"
+                    "type": "keyword"
                 },
                 "title": {
-                    "type": "string",
+                    "type": "text",
                     "boost": 2
                 },
                 "h1": {
-                    "type": "string",
+                    "type": "text",
                     "boost": 1.8
                 },
                 "h2": {
-                    "type": "string",
+                    "type": "text",
                     "boost": 1.7
                 },
                 "h3": {
-                    "type": "string",
+                    "type": "text",
                     "boost": 1.6
                 },
                 "h4": {
-                    "type": "string",
+                    "type": "text",
                     "boost": 1.5
                 },
                 "h5": {
-                    "type": "string",
+                    "type": "text",
                     "boost": 1.4
                 },
                 "h6": {
-                    "type": "string",
+                    "type": "text",
                     "boost": 1.3
                 },
                 "text": {
-                    "type": "string",
+                    "type": "text",
                     "boost": 1.0
                 },
                 "tags": {
-                    "type": "string",
+                    "type": "keyword",
                     "boost": 1.5
                 }
             }