meili-sync
Connector to sync mongodb documents into meilisearch
installation
$ npm install -g meili-sync
usage
meili-sync <configFile>
docker
docker pull maxnowack/meili-sync
docker run -v /path/to/config.yaml:/config.yaml maxnowack/meili-sync
configuration
mongo:
url: mongodb://localhost:27017/test
options:
useNewUrlParser: true
useUnifiedTopology: true
meili:
host: http://localhost:7700
apiKey: 'abc123'
sync:
- indexName: videos
collectionName: videos
selector:
deleted: false
disabled: false
fields:
title:
mongoField: title
categories:
mongoField: categories._id
duration:
mongoField: duration
publishDate:
mongoField: publishDate
rating:
mongoField: rating
ratings:
mongoField: ratings
slug:
mongoField: slug
tags:
mongoField: tags
views:
mongoField: views
license
Licensed under MIT license. Copyright (c) 2020 Max Nowack
contributions
Contributions are welcome. Please open issues and/or file Pull Requests.