{
"config": {
"apiPort": 8080,
"libraryJars": ["./lib"],
"actionManagerConfig": {
"actions": "actions-provider:actiongroups"
},
"actionProviders": [
{
"name": "constant",
"display": "Constant",
"type": "Constant",
"fetchesData": false
},
{
"name": "Human",
"display": "Human",
"type": "Elasticsearch",
"fetchesData": true,
"transformation": "./transformations/es-transformation.js",
"hosts": [
{
"host": "localhost",
"port": 9200,
"schema": "http"
}
],
"index": "wikidata",
"query": {
"bool": {
"should": [
{
"term": {
"_id": {
"value": "{{human._id}}",
"boost": 9999
}
}
},
{
"match_phrase": {
"label": {
"query": "{{human}}",
"boost": 1
}
}
},
{
"match_phrase": {
"aliases": {
"query": "{{human}}",
"boost": 2
}
}
},
{
"query_string": {
"query": "{{human.match}}"
}
}
]
}
}
},
{
"name": "geography",
"display": "Geography",
"type": "Elasticsearch",
"fetchesData": true,
"transformation": "./transformations/es-transformation.js",
"hosts": [
{
"host": "localhost",
"port": 9200,
"schema": "http"
}
],
"index": "wikidata",
"query": {
"bool": {
"should": [
{
"term": {
"_id": {
"value": "{{geography._id}}",
"boost": 9999
}
}
},
{
"match_phrase": {
"label": {
"query": "{{geography}}",
"boost": 1
}
}
},
{
"match_phrase": {
"aliases": {
"query": "{{geography}}",
"boost": 2
}
}
},
{
"query_string": {
"query": "{{geography.match}}"
}
}
]
}
}
},
{
"name": "currency",
"display": "Currency",
"type": "Openexchange",
"transformation": "./transformations/openexchange-transformation.js",
"fetchesData": false,
"appId": "6cfdc0df634a4796b1a40748cdbe6006"
}
],
"providers": [
{
"name": "actions-provider",
"type": "MongoDB",
"uri": "mongodb://localhost:27017",
"database": "sagaDB",
"aggregation": [...],
"transactionCollection": "transactions",
"fetchTimestamp": [...]
},
{
"name": "entity-provider",
"type": "MongoDB",
"uri": "mongodb://localhost:27017",
"database": "sagaDB",
"aggregation": [...],
"transactionCollection": "transactions",
"fetchTimestamp": [...]
},
{
"name": "patterns-provider",
"type": "MongoDB",
"uri": "mongodb://localhost:27017",
"database": "sagaDB",
"aggregation": [...],
"transactionCollection": "transactions",
"fetchTimestamp": [...]
},
{
"name": "regex-provider",
"type": "MongoDB",
"uri": "mongodb://localhost:27017",
"database": "sagaDB",
"aggregation": [...],
"transactionCollection": "transactions",
"fetchTimestamp": [...]
}
]
}
} |