This follows up on #42 where the backend enable the search by tag name feature. Every non mesh id works, while every mesh id doesn't. Reason for this problem is that mesh ids cover two distinct entity types: chemicals and diseases. To disambiguate the entity type I appended the type to the corresponding ID and this fix attempts to remedy this issue by testing to see which type the mesh id belongs to/see if it is present in the vocab.
Example of the problem: front end sends:mesh_d010051 to backend. Backed checks that specific token; however, it be using this token disease_mesh_d010051 to check the word models.
This follows up on #42 where the backend enable the search by tag name feature. Every non mesh id works, while every mesh id doesn't. Reason for this problem is that mesh ids cover two distinct entity types: chemicals and diseases. To disambiguate the entity type I appended the type to the corresponding ID and this fix attempts to remedy this issue by testing to see which type the mesh id belongs to/see if it is present in the vocab.
Example of the problem: front end sends:
mesh_d010051
to backend. Backed checks that specific token; however, it be using this tokendisease_mesh_d010051
to check the word models.