af3a143571e5aa064eab75c34f9444b35413b562
chmalee
  Tue Nov 30 15:28:15 2021 -0800
Add snippet support to trix searching. Required changing the
wordPos from the first highest matching wordIndex to the
wordIndex of the actual span. Have trixContextIndex create a
second level index for fast retrieval of line offsets in
original text file used by ixIxx. Create a simple UI for navigating
hgFind search results.

diff --git src/hg/inc/trackHub.h src/hg/inc/trackHub.h
index 674fac6..b6d044b 100644
--- src/hg/inc/trackHub.h
+++ src/hg/inc/trackHub.h
@@ -178,31 +178,31 @@
 
 void trackHubFixName(char *name);
 /* Change all characters other than alphanumeric, dash, and underbar
  * to underbar. */
 
 struct grp *trackHubLoadGroups(char *database);
 /* Load the grp structures for this track hub database. */
 
 char *trackHubSkipHubName(char *name);
 /* Skip the hub_#_ prefix in a hub name. */
 
 struct dbDb *trackHubDbDbFromAssemblyDb(char *database);
 /* Return a dbDb structure for just this database. */
 
 struct hgPositions;
-void trackHubFindPos(struct cart *cart, char *db, char *term, struct hgPositions *hgp);
+void trackHubFindPos(struct cart *cart, char *db, char *term, struct hgPositions *hgp, boolean measureTiming);
 /* Look for term in track hubs.  Update hgp if found */
 
 void trackHubAddDescription(char *trackDbFile, struct trackDb *tdb);
 /* Fetch tdb->track's html description (or nearest ancestor's non-empty description)
  * and store in tdb->html. */
 
 void trackHubAddOneDescription(char *trackDbFile, struct trackDb *tdb);
 /* Fetch tdb->track's html description and store in tdb->html. */
 
 struct trackHubGenome *trackHubGetGenome(char *database);
 /* get genome structure for an assembly in a trackHub */
 
 boolean trackHubGetBlatParams(char *database, boolean isTrans, char **pHost,
     char **pPort, char **pGenomeDataDir);
 /* get "blat" and "transBlat" entries (if any) for an assembly hub */