cancerDHC / ccdhmodel

CRDC-H model in LinkML, developed by the Center for Cancer Data Harmonization (CCDH)
https://cancerdhc.github.io/ccdhmodel/
BSD 3-Clause "New" or "Revised" License
16 stars 8 forks source link

We need to enable search within the CRDC-H documentation site #42

Open bfurner opened 3 years ago

bfurner commented 3 years ago

In addition to the baked-in search, which appears to not be full-text search, it would probably be good to have a single page that includes all of the attribute mappings so that nodes can search for their attributes in the CCDH documentation.

bfurner commented 3 years ago

Search has been enabled, but the current implementation makes it more or less impossible for a node to look for their attributes' mappings.

gaurav commented 3 years ago

The main problem with getting this to work is that currently search doesn't work on words containing _ -- i.e. you can search for ajcc, but not ajcc_clinical_m. If we can figure out how to fix this in Material, then users will be able to search for node field names. I've tried changing the separator being used, but that didn't work. It's possible that the query is being translated in a way that is causing this query to fail, but I'm not sure.

One alternate solution we've looked into is generating a single overall mapping file that lists all mappings from CRDC-H fields to Node fields (see example as a spreadsheet; note that direct matches are referred to as "exact matches" and indirect matches as "close matches"). However, another idea just occurred to me: we could generate a Markdown file for each node individually (i.e. one for GDC, one for PDC and so on) which shows just the mappings from fields in that node to the CRDC-H.

Would either of these approaches be useful in closing this issue? Or do we need something fancier?