diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-09-10 20:15:40 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-09-10 20:15:40 -0400 |
commit | a709e21384cef80a85eac9220739c854a96d5313 (patch) | |
tree | f83be967ca48aeb286fcc7b96a4fff09947399c7 /src/server/index.ts | |
parent | ec62b213439ab49134fa2dbbdf38a6d1ef5737cd (diff) |
fixed several search issues with text boxes and highlighting.
Diffstat (limited to 'src/server/index.ts')
-rw-r--r-- | src/server/index.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/index.ts b/src/server/index.ts index 50ce2b14e..149bacf0f 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -198,12 +198,15 @@ const solrURL = "http://localhost:8983/solr/#/dash"; app.get("/search", async (req, res) => { const solrQuery: any = {}; + console.log("GOT SEARCH"); ["q", "fq", "start", "rows", "hl", "hl.fl"].forEach(key => solrQuery[key] = req.query[key]); if (solrQuery.q === undefined) { res.send([]); return; } + console.log("CALLING SEARCH") let results = await Search.Instance.search(solrQuery); + console.log("RETURNING SEARCH") res.send(results); }); |