776afaa6ba708aed97b79ceccb2a445e129b2f4c
braney
  Thu Aug 19 12:44:36 2021 -0700
add a hReplaceGbdb() for knownGene fast search

diff --git src/hg/lib/hgFind.c src/hg/lib/hgFind.c
index c379184..cba4707 100644
--- src/hg/lib/hgFind.c
+++ src/hg/lib/hgFind.c
@@ -2305,31 +2305,31 @@
 boolean searchSpecial(struct cart *cart,
                              char *db, struct hgFindSpec *hfs, char *term, int limitResults,
 			     struct hgPositions *hgp, boolean relativeFlag,
 			     int relStart, int relEnd, boolean *retFound)
 /* Handle searchTypes for which we have special code.  Return true if 
  * we have special code.  Set retFind according to whether we find term. */
 {
 boolean isSpecial = TRUE;
 boolean found = FALSE;
 char *upcTerm = cloneString(term);
 touppers(upcTerm);
 if (startsWith("knownGene", hfs->searchType))
     {
     char *knownDatabase = hdbDefaultKnownDb(db);
     char *name = (sameString(knownDatabase, db)) ? "knownGene" : knownDatabase;
-    char *indexPath = hgFindSpecSetting(hfs, "searchTrix");
+    char *indexPath = hReplaceGbdb(hgFindSpecSetting(hfs, "searchTrix"));
     if (indexPath == NULL)
         indexPath = makeIndexPath(db, name);
     if (gotFullText(db, indexPath))
 	found = findKnownGeneFullText(db, term, hgp, name, indexPath);
     }
 else if (sameString(hfs->searchType, "refGene"))
     {
     found = findRefGenes(db, hfs, term, hgp);
     }
 else if (isBigFileFind(hfs))
     {
     found = findBigBed(cart, db, hfs, term, hgp);
     }
 else if (sameString(hfs->searchType, "cytoBand"))
     {