1 |
|
2 | var done = false
|
3 |
|
4 | module.exports = (hit) => {
|
5 | if (done) { return null }
|
6 | hit._id = "panda id"
|
7 | hit._type = "panda type"
|
8 | hit._index = "panda index"
|
9 | hit._source.panda = "TRUE PANDA"
|
10 | if (hit._oper) {
|
11 | hit._oper = 'create'
|
12 | }
|
13 | done = true
|
14 | return hit
|
15 | }
|