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/qa/testSearch.c src/hg/qa/testSearch.c
index 48df809..7688b85 100644
--- src/hg/qa/testSearch.c
+++ src/hg/qa/testSearch.c
@@ -247,31 +247,31 @@
 	}
     result1 = result1->next;
     }
 
 }
 
 void searchAndCompare(struct searchTestCase *testCaseList)
 /* Read testCaseList.  Execute each search.  Report unexpected results. */
 {
 struct hgPositions *hgpList = NULL;
 struct searchTestCase *morphOutput = NULL;
 
 while (testCaseList)
     {
     verbose(1, "database = %s, searchTerm = %s\n", testCaseList->database, testCaseList->searchTerm);
-    hgpList = hgPositionsFind(testCaseList->database, testCaseList->searchTerm, "", "hgTracks", cart, FALSE);
+    hgpList = hgPositionsFind(testCaseList->database, testCaseList->searchTerm, "", "hgTracks", cart, FALSE, FALSE, NULL);
     /* handle cases where there are no expected matches */
     if (testCaseList->posCount == 0)
         {
         if (hgpList == NULL || hgpList->posCount == 0) 
 	    {
 	    testCaseList = testCaseList->next;
 	    continue;
 	    }
 	fprintf(stderr, "Error: expected no matches, got some\n");
 	fprintf(stderr, "database = %s, searchTerm = %s\n", 
 	        testCaseList->database, testCaseList->searchTerm);
 	continue;
 	}
     morphOutput = morph(testCaseList->database, testCaseList->searchTerm, hgpList);
     compareResults(testCaseList, morphOutput);