Fix date searches
[phinde.git] / data / elasticsearch-mapping.json
index ec9bcc9665611af4981649f0255e12c25590e43a..aad27d27e31a5a30460eda67e457ad2f6196ae4c 100644 (file)
@@ -3,8 +3,27 @@
         "document": {
             "properties": {
                 "status": {
-                    "type": "string",
-                    "index": "not_analyzed"
+                    "type": "object",
+                    "properties": {
+                        "code": {
+                            "type": "integer"
+                        },
+                        "location": {
+                            "type": "string"
+                        },
+                        "processed": {
+                            "type": "date"
+                        },
+                        "crdate": {
+                            "type": "date"
+                        },
+                        "modate": {
+                            "type": "date"
+                        },
+                        "findable": {
+                            "type": "boolean"
+                        }
+                    }
                 },
                 "type": {
                     "type": "string",
                 },
                 "url": {
                     "type": "string",
-                    "index": "not_analyzed"
+                    "index": "not_analyzed",
+                    "boost": 1.5
+                },
+                "schemalessUrl": {
+                    "type": "string",
+                    "index": "not_analyzed",
+                    "boost": 1.5
                 },
                 "domain": {
                     "type": "string",
-                    "index": "not_analyzed"
+                    "index": "not_analyzed",
+                    "boost": 1.8
                 },
                 "source": {
                     "type": "string",
                 "language": {
                     "type": "string",
                     "index": "not_analyzed"
+                },
+                "title": {
+                    "type": "string",
+                    "boost": 2
+                },
+                "h1": {
+                    "type": "string",
+                    "boost": 1.8
+                },
+                "h2": {
+                    "type": "string",
+                    "boost": 1.7
+                },
+                "h3": {
+                    "type": "string",
+                    "boost": 1.6
+                },
+                "h4": {
+                    "type": "string",
+                    "boost": 1.5
+                },
+                "h5": {
+                    "type": "string",
+                    "boost": 1.4
+                },
+                "h6": {
+                    "type": "string",
+                    "boost": 1.3
+                },
+                "text": {
+                    "type": "string",
+                    "boost": 1.0
+                },
+                "tags": {
+                    "type": "string",
+                    "boost": 1.5
                 }
             }
         }