744a3b2e1774459ae0348822c983a24746776f96 jcasper Fri Feb 16 12:26:31 2018 -0800 Hub text search now includes metadata tags, behaves better when encountering missing tracks/assemblies, and includes a MySQL index on the track field of hubSearchText refs #20761, #18865, #20694 diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index 0cea06c..81455f0 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -27,54 +27,57 @@ #include "hgConfig.h" #include "trix.h" #include "net.h" #include "hubSearchText.h" struct cart *cart; /* The user's ui state. */ struct hash *oldVars = NULL; static char *pageTitle = "Track Data Hubs"; char *database = NULL; char *organism = NULL; struct hubOutputStructure { struct hubOutputStructure *next; + struct dyString *metaTags; struct dyString *descriptionMatch; struct genomeOutputStructure *genomes; int genomeCount; struct hash *genomeOutHash; }; struct genomeOutputStructure { struct genomeOutputStructure *next; struct dyString *shortLabel; + struct dyString *metaTags; struct dyString *descriptionMatch; struct tdbOutputStructure *tracks; struct dyString *assemblyLink; char *genomeName; char *positionString; int trackCount; struct hash *tdbOutHash; int hitCount; }; struct tdbOutputStructure { struct tdbOutputStructure *next; struct dyString *shortLabel; + struct dyString *metaTags; struct dyString *descriptionMatch; struct dyString *configUrl; struct tdbOutputStructure *children; int childCount; }; struct hubEntry // for entries pulled from hubPublic { struct hubEntry *next; char *hubUrl; char *shortLabel; char *longLabel; char *dbList; char *errorMessage; @@ -648,59 +651,66 @@ } printGenomeList(dbListNames, count); printf("\n"); } void printSearchOutputForTrack(struct tdbOutputStructure *tdbOut) /* Write out a
  • entry for a search hit on a track, along with a nested *