Number of Related documents mismatch accross views
Summary
When selecting a terms in a phylomemy, the documents displayed are not retrieved from search on term's group but only on the label. So there might be huge discrepancies between what is displayed in the term table and what is displayed in the phylomemy. It could also be different from what is displayed in the document view.
Steps to reproduce
Select a label in a phylomemy that is a group. The number of related terms is different from the one in the term table and could also be different from the one in the doc search.
What is the expected correct behavior?
The function that gives the number of related terms and the list of the related doc when clickinkg on the eye in the terms table view should also be used to provided the same information in the graph view and from the phylomemy view. The number of related docs should be at least as high at the simple exact search in the document view (since there are more terms in a group and the search is exact).
Relevant logs and/or screenshots
762 document for "water / eau / waters" in the terms tables :
Only 746 in the visualizations
But 792 when searching the docs with "water" only...
And 807 when searching "water" OR "eau" OR "waters"
Possible fixes
Use the same functions in the visualization to retrieve doc and number of related than in the terms table .
Be sure that "water" in doc view launch the exact match so that is there can's be more docs returned than "water OR eau OR waters"