keboola/syrup-component-bundle

View on GitHub
Resources/views/Elasticsearch/mappingDefault.json.twig

Summary

Maintainability
Test Coverage
{
    "settings": {
        "number_of_replicas": 1,
        "number_of_shards": 5,
        "analysis": {
            "analyzer": {
                "email": {
                    "tokenizer": "letter",
                    "filter": ["lowercase", "stop"]
                }
            }
        }
    },
    "mappings": {
        "jobs": {
            "_all" : {
                "enabled" : true,
                "analyzer": "snowball"
            },
            "date_detection": false,
            "numeric_detection": false,
            "dynamic": "strict",
            "properties": {
                "id": {
                    "type": "long"
                },
                "runId": {
                    "index": "not_analyzed",
                    "type": "string"
                },
                "lockName": {
                    "index": "not_analyzed",
                    "type": "string"
                },
                "project": {
                    "dynamic": "strict",
                    "properties": {
                        "id": {
                            "type": "long"
                        },
                        "name": {
                            "type": "string",
                            "fields": {
                                "raw":   { "type": "string", "index": "not_analyzed" }
                            }
                        }
                    }
                },
                "token": {
                    "dynamic": "strict",
                    "properties": {
                        "id": {
                            "type": "long"
                        },
                        "description": {
                            "type": "string",
                            "fields": {
                                "raw":   { "type": "string", "index": "not_analyzed" }
                            }
                        },
                        "token": {
                            "index": "not_analyzed",
                            "type": "string"
                        }
                    }
                },
                "component": {
                    "index": "not_analyzed",
                    "type": "string"
                },
                "command": {
                    "index": "not_analyzed",
                    "type": "string"
                },
                {% block params %}
                "params": {
                    "dynamic": "strict",
                    "properties": {
                        "account": {
                            "type": "string"
                        }
                    }
                },
                {% endblock %}
                "result": {
                    "type": "object",
                    "enabled": false
                },
                "status": {
                    "type": "string"
                },
                "process": {
                    "dynamic": "strict",
                    "properties": {
                        "host": {
                            "type": "string",
                            "fields": {
                                "raw": { "type": "string", "index": "not_analyzed" }
                            }
                        },
                        "pid": {
                            "type": "long"
                        }
                    }
                },
                "createdTime": {
                    "format": "dateOptionalTime",
                    "type": "date"
                },
                "startTime": {
                    "format": "dateOptionalTime",
                    "type": "date"
                },
                "endTime": {
                    "format": "dateOptionalTime",
                    "type": "date"
                },
                "durationSeconds": {
                    "type": "long"
                },
                "waitSeconds": {
                    "type": "long"
                }
            }
        }
    }
}