Installing Elasticsearch

Index configuration for the original data platform.

These examples document the original platform. Use your own deployment; this website does not provide the former hosted API or account service.

index soupdates
{
   "settings":{
        "index": {
            "analysis": {
                "analyzer": {
                    "analyzer_startswith": {
                        "tokenizer": "keyword",
                        "filter": "lowercase"
                    }
                }
            }
        }
   }, 
   "mappings":{
     "couchbaseCheckpoint" : {
            "_source" : {
                "includes" : ["doc.*"]
            },
            "dynamic_templates": [
                {
                    "store_no_index": {
                        "match": "*",
                        "mapping": {
                            "store" : "no",
                            "index" : "no",
                            "include_in_all" : false
                        }
                    }
                }
            ]
        },



      "_default_": {
       "_source" : {
                "includes" : ["meta.*"]
       },
       "properties": {
           "doc": {
               "properties": {
                   "lastUpdate": {
                       "type": "date"
                   },
                   "channels": {
                       "properties": {
                           "location": {
                                "properties": {
                                        "current-value": {
                                                "type": "geo_point"
                                        }
                                }
                           }
                       }
                   }
               }
           },
           "meta": {
                "properties": {
                   "id": {
                        "type": "string",
                        "search_analyzer":"analyzer_startswith",
                        "index_analyzer":"analyzer_startswith"
                   }
                }
           }
       }
     }
  }
}
index subscriptions
{
    "mappings": {
        "couchbaseCheckpoint": {
            "_source": {
                "includes": [
                    "doc.*"
                ]
            },
            "dynamic_templates": [
                {
                    "store_no_index": {
                        "match": "*",
                        "mapping": {
                            "store": "no",
                            "index": "no",
                            "include_in_all": false
                        }
                    }
                }
            ]
        },
        "_default_": {
            "_source": {
                "includes": [
                    "meta.*"
                ]
            },
            "properties": {
                "doc": {
                    "properties": {
                        "callback": {
                            "type": "string"
                        },
                        "source": {
                            "type": "string"
                        },
                        "destination": {
                            "type": "string"
                        },
                        "stream": {
                            "type": "string"
                        },
                        "customFields": {
                            "properties": {
                                "groupId": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                },
                "meta": {
                    "properties": {
                        "id": {
                            "type": "string"
                        }
                    }
                }
            }
        }
    }
}