[Terms] Importing JSON or CSV seems to add new terms to the old ones, rather than overwriting and replacing them all
Current behaviour on importing a corpus from another exported corpus:
- create any corpus on any instance from any source (use few docs to test faster)
- make some changes in Terms (remove or group ngrams, etc.)
- look at and remember the total number of Terms
- then export Documents and Terms (JSON or CSV)
- create a new corpus node on another instance (OR on the same instance, but here we want to be sure we are working with non-existent documents)
- on the new corpus node, import the exported Documents (so it will generate all children nodes: Docs, Terms and Graph)
- then, import the previously exported Terms
- look at the total number of Terms: the total number is greater than the expected total.
We can observe that imported terms does not replace the previous ones.
Here is a sample set of few exported Documents with Terms to test: