Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adhityaramadhanus/mongoes
commandline tools to index mongodb documents in elasticsearch
https://github.com/adhityaramadhanus/mongoes
elasticsearch golang indexing mongodb mongoes
Last synced: 12 days ago
JSON representation
commandline tools to index mongodb documents in elasticsearch
- Host: GitHub
- URL: https://github.com/adhityaramadhanus/mongoes
- Owner: AdhityaRamadhanus
- License: mit
- Created: 2016-11-12T09:54:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T08:51:52.000Z (over 7 years ago)
- Last Synced: 2024-10-30T08:53:57.587Z (about 2 months ago)
- Topics: elasticsearch, golang, indexing, mongodb, mongoes
- Language: Go
- Homepage:
- Size: 11.8 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MONGOES
[![Go Report Card](https://goreportcard.com/badge/github.com/AdhityaRamadhanus/mongoes)](https://goreportcard.com/report/github.com/AdhityaRamadhanus/mongoes)commandline tools to index mongodb documents in elasticsearch
Installation |
Mongoes |
Usage |
License
This tool is perfect fit for you if you only need to index some collection to elasticsearch without having to setup replicaset, or if you want to have control over the mapping like what fields to be indexed what type in elasticsearch this field should be indexed
Installation
------------
* git clone
* go get
* makeMongoes
------------
* Mongoes will index your mongodb collection to elasticsearch based on a mapping you provideUsage
------------
```
mongoes --helpNAME:
mongoes - Index Mongodb Collection to ESUSAGE:
mongoes [global options] command [command options] [arguments...]VERSION:
1.0.0AUTHOR:
Adhitya RamadhanusCOMMANDS:
index Index collection to elasticsearch
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```
* config, Your configuration file (in json)
* Config Example
```
{
"mongodb": {
"uri": "localhost:27017",
"database": "somedb",
"collection": "somecoll"
},
"elasticsearch": {
"uri": "http://localhost:9200",
"index": "someindex",
"type": "sometype"
},
"query": {
"completed": true
},
"mapping": {
"title": { // take title field in mongodb collection
"es_type": "string", // will be mapped to string
"es_index": "not_analyzed"
},
"completed": {
"es_name": "done", // will be mapped to field called done in elasticsearch
"es_type": "boolean"
}
}
}
```License
----MIT © [Adhitya Ramadhanus]