748b06ac95ff2a3957be3845bd3594984e3cc3cf
chmalee
  Wed Aug 17 19:21:48 2022 -0700
Rename test cgi to official name. Always search everything, only show
categories that have matches in the result list. Add /search endpoint to
hubApi, add code to search help docs in hgSuggest but don't call it yet
in autoComplete.js. Minor fixups so search result links work correctly.

Fixing up old programs that call hgPositionsFind

diff --git src/hg/hgGetAnn/hgGetAnn.c src/hg/hgGetAnn/hgGetAnn.c
index ff69f3a..2a45c0d 100644
--- src/hg/hgGetAnn/hgGetAnn.c
+++ src/hg/hgGetAnn/hgGetAnn.c
@@ -208,31 +208,31 @@
     positions->posCount++;
     }
 slReverse(&posTab->posList);
 return positions;
 }
 
 struct hgPositions *findPositions(char *db, char *spec)
 /* query database with hgFind algorithm */
 {
 struct hgPositions *positions;
 verbose(2, "begin position query: %s\n", spec);
 
 if (sameString(spec, "-"))
     positions = findAllChroms(db);
 else
-    positions = hgPositionsFind(db, spec, NULL, "hgGetAnn", NULL, FALSE);
+    positions = hgPositionsFind(db, spec, NULL, "hgGetAnn", NULL, FALSE, FALSE, NULL);
 
 verbose(2, "end position query: %d matches\n", countFindMatches(positions));
 if (verboseLevel() >= 2)
     printPositionsList(positions);
 if ((!noMatchOk) && (countFindMatches(positions) == 0))
     errAbort("Error: no matches to find query");
 return positions;
 }
 
 void checkTableFields(struct hTableInfo *tableInfo, boolean requireName)
 /* check that the specified table has the required fields */
 {
 if (strlen(tableInfo->chromField) == 0)
     errAbort("Error: table %s doesn't have a chrom name field", getTableDesc(tableInfo));
 if ((strlen(tableInfo->startField) == 0) || (strlen(tableInfo->endField) == 0))