[Node Terms] On multiple Map terms, if the first term is already a map term, the count of the multiple map term is to zero
Summary
On multi-word map terms, if the first term is already a map term, the count of the multi-word map term is at zero.
Steps to reproduce
- Have any corpus regardless of size
- Have at least one map term
- Already have an occurrence count on the map term
- In docs node, select a multi-word term with the first word being an already present map term
- Reload docs node then term node
What is the current bug behavior?
The multi-word term has an occurrence set to 0.
There is a way to work around this bug by following the steps described below :
- Search the first word of the multi-word map term
- Change the category of this word (it can be either stop or candidate category)
- Reload docs and terms (at this point, the occurrences of both the word and multi-word term are set correctly)
- Put the word back to map
- Reload docs and terms
If the terms file is exported and then imported elsewhere before doing these steps, the occurrence of the multi-word term is 0, but if it is done after all these steps, the occurrence is correctly set.
What is the expected correct behavior?
The multi-word term should have an occurrence different from 0.
Relevant logs and/or screenshots
GarganText_NgramsList-188929.json
GarganText_DocsList-nodeId-188928.json.zip