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/makeDb/trackDb/human/trackDb.ra src/hg/makeDb/trackDb/human/trackDb.ra
index 76b5322..4a9a6ae 100644
--- src/hg/makeDb/trackDb/human/trackDb.ra
+++ src/hg/makeDb/trackDb/human/trackDb.ra
@@ -3847,40 +3847,40 @@
     longLabel SNPedia all SNPs (including empty pages)
     color 50,0,100
     type bigBed 9 +
     searchIndex name
     bigDataUrl /gbdb/$D/bbi/snpediaAll.bb
     url https://www.snpedia.com/index.php/$$
     urlLabel Link to SNPedia page:
     mouseOverField note
     itemRgb on
     exonNumbers off 
 
 searchTable snpediaAll
 searchMethod exact
 searchType bigBed
 termRegex rs[0-9]+
-searchPriority 1
+searchPriority 14
 padding 50
-#semiShortCircuit 1
+semiShortCircuit 1
 
 searchTable snpediaText
 searchMethod exact
 searchType bed
 semiShortCircuit 1
 termRegex rs[0-9]+
-searchPriority 11.001
+searchPriority 14.001
 padding 50
 
 track interactions
 shortLabel Gene Interactions
 longLabel Protein Interactions from Curated Databases and Text-Mining
 group phenDis
 visibility hide
 type bigBed 9
 itemRgb on
 exonNumbers off
 noScoreFilter on
 #release alpha,beta
 # draw the name field directly over the feature
 labelOnFeature on
 # linkIdInName means that the first part of the "name" field (space-separated) is the ID used for the %s parameter in directUrl
@@ -4468,31 +4468,31 @@
         noScoreFilter .
 
 searchName fox2ClipSeq
 searchTable fox2ClipSeq
 searchMethod exact
 searchType bed
 semiShortCircuit 1
 termRegex ES_[0-9]+_[0-9]+
 searchPriority 30
 
 searchTable gwasCatalog
 searchMethod exact
 searchType bed
 semiShortCircuit 1
 termRegex rs[0-9]+
-searchPriority 11
+searchPriority 13
 padding 250
 
 track darned
 shortLabel Human RNA Editing
 longLabel Human RNA Editing from the DAtabase of RNa EDiting
 group rna
 visibility hide
 itemRgb on
 noScoreFilter .
 type bed 9
 
 #Overrides from priority.ra
 
 
 # fly
@@ -5482,47 +5482,47 @@
 termRegex rs[0-9]+
 searchPriority 12.950
 padding 250
 
 searchTable dbSnp152
 searchMethod exact
 searchType bigBed
 #semiShortCircuit 1
 termRegex rs[0-9]+
 searchPriority 12.949
 padding 100
 
 searchTable dbSnp153Common
 searchMethod exact
 searchType bigBed
-#semiShortCircuit 1
+shortCircuit 1
 termRegex rs[0-9]+
 searchPriority 12.9450
 padding 100
 
 searchTable dbSnp153ClinVar
 searchMethod exact
 searchType bigBed
 #semiShortCircuit 1
 termRegex rs[0-9]+
 searchPriority 12.9451
 padding 100
 
 searchTable dbSnp153
 searchMethod exact
 searchType bigBed
-semiShortCircuit 1
+shortCircuit 1
 termRegex rs[0-9]+
 searchPriority 12.9452
 padding 100
 
 searchTable dbSnp153Mult
 searchMethod exact
 searchType bigBed
 #semiShortCircuit 1
 termRegex rs[0-9]+
 searchPriority 12.9453
 padding 100
 
 searchTable dbSnp153BadCoords
 searchMethod exact
 searchType bigBed