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/hgFindSpec.h src/hg/inc/hgFindSpec.h
index bca2b55..a62f052 100644
--- src/hg/inc/hgFindSpec.h
+++ src/hg/inc/hgFindSpec.h
@@ -78,27 +78,30 @@
 /* Compare to sort based on searchPriority. */
 
 struct hgFindSpec *hgFindSpecFromRa(char *db, char *raFile, char *releaseTag);
 /* Load track info from ra file into list. */
 
 char *hgFindSpecSetting(struct hgFindSpec *hfs, char *name);
 /* Return setting string or NULL if none exists. */
 
 char *hgFindSpecRequiredSetting(struct hgFindSpec *hfs, char *name);
 /* Return setting string or squawk and die. */
 
 char *hgFindSpecSettingOrDefault(struct hgFindSpec *hfs, char *name,
 				 char *defaultVal);
 /* Return setting string, or defaultVal if none exists */
 
+int hgFindSpecPriCmp(const void *va, const void *vb);
+/* Compare to sort by assending searchPriority. */
+
 struct hgFindSpec *hgFindSpecGetSpecs(char *db, boolean shortCircuit);
 /* Load all short-circuit (or not) search specs from the current db, sorted by 
  * searchPriority. */
 
 void hgFindSpecGetAllSpecs(char *db,
                            struct hgFindSpec **retShortCircuitList,
 			   struct hgFindSpec **retAdditiveList);
 /* Load all search specs from the current db, separated according to 
  * shortCircuit and sorted by searchPriority. */
 
 #endif /* HGFINDSPEC_H */