appbaseio / appbaseio/abc

src_filter not working

Aperta
#178 2 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
471
Fork
47
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

```
abc --version
Version: 0.6.7
Variant: !oss
Go version: go1.11.1
OS: linux
Arch: amd64
```

I'm trying to import only one collection from a mongodb database which has three collections, but I think because two of my collections are similarly named the regex picks up both, this then fails in elastic because it tries to create two mapping types, e.g. I see this on the import:

```
INFO[0000] Connection to mongo_server:27017 established.
INFO[0000] collection count db="data" num_collections=3
INFO[0000] adding for iteration... collection="market_raw_data" db="data"
INFO[0000] adding for iteration... collection="raw_data" db="data"
INFO[0000] skipping iteration... collection=updateQueue db="data"
INFO[0000] done iterating collections db="data"
```

My transform file looks like:

```
t.Source("source", source, "/raw_data/")
.Mapping({
"raw_data": {
"properties":{
"mongo_id" : {
"properties" : {
"date": {
"type":"date",
"format": "yyyyMMdd"
}
}
}
}
}
})
// more transforms
.Save("sink", sink, "/.*/")
```
How can I exclude it from picking up this collection:

`INFO[0000] adding for iteration... collection="market_raw_data" db="data"
`

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.