Commit 0b0137c
committed
[BUGFIX] After changing NodeType, ES indexes contains two documents
In ES the ID property is unique inside a single document type. With the
current implementation, after a NodeType change, we create a new document
with the new NodeType, but the old one stay in the index.
This change solve the issue with a DELETE query to check is an other
document share the same _id before indexing new values.1 parent 469fb34 commit 0b0137c
1 file changed
Lines changed: 18 additions & 0 deletions
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
132 | 150 | | |
133 | 151 | | |
134 | 152 | | |
| |||
0 commit comments