Skip to content

Instantly share code, notes, and snippets.

@nicemd nicemd/foopipes.yml Secret
Created Jun 9, 2017

Embed
What would you like to do?
Systembolaget complete config
plugins:
- Elasticsearch
services:
elastic:
type: elasticsearch
url: "http://elasticsearch:9200"
api:
type: httplistener
path: search/{searchstring}
responseBody: json
pipelines:
-
when:
- { queue: started }
from:
- { http: "https://www.systembolaget.se/api/assortment/products/xml", format: xml }
do:
- { select: "$.artiklar.artikel[*]" }
to:
- { store: elastic, index: systembolaget, dataType: artikel, key: "#{Artikelid}" }
-
when:
- { api }
from:
- { search: elastic, index: systembolaget, dataType: artikel, value: "#{route.searchstring}" }
do:
- { select: "$.hits[*]" }
- { select, Name: "#{Namn}, #{Namn2}", Id: "#{Artikelid}" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.