move image build in separate dockerfiles

This commit is contained in:
Vincent Jumo
2018-08-23 18:01:05 +02:00
parent f0a29f2e77
commit cf06e40ba0
5 changed files with 32 additions and 7 deletions

View File

@@ -43,12 +43,18 @@ Check out [official doc](https://docs.docker.com/compose/)
## Load wikidata into elasticsearch
Make sure ES import limit is above entities-search-engige import rate, by raising the limit
```
docker-compose exec entities-search-engine curl -XPUT http://elasticsearch:9200/wikidata/_settings -d '{"index.mapping.total_fields.limit": 2000}'
```
start the containers `docker-compose up`
```
claim=P31:Q5
type=humans
docker-compose exec entities-search-engine ./bin/dump_wikidata_subset claim type
docker-compose exec entities-search-engine ./bin/dump_wikidata_subset $claim $type
```
for more [info](https://github.com/inventaire/entities-search-engine/blob/master/docs/wikidata_filtered_dump_import.md)