diff options
| author | geireann <60007097+geireann@users.noreply.github.com> | 2020-08-19 23:53:05 +0800 |
|---|---|---|
| committer | geireann <60007097+geireann@users.noreply.github.com> | 2020-08-19 23:53:05 +0800 |
| commit | 084025582325b662a442538dde911b58920a8d8b (patch) | |
| tree | 4603fb7119aa34c5e7dc54cc6c925888e90b3ecb /src/client/util/SearchUtil.ts | |
| parent | d3a28452843dbbb94b79d3d9617076c7327fbfb9 (diff) | |
| parent | e374eb7c6ef542cc27c10e8d56b10f3a49a7e7e3 (diff) | |
Merge branch 'master' into presentation_updates
Diffstat (limited to 'src/client/util/SearchUtil.ts')
| -rw-r--r-- | src/client/util/SearchUtil.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/SearchUtil.ts b/src/client/util/SearchUtil.ts index 6dafbd58e..ce96ab67b 100644 --- a/src/client/util/SearchUtil.ts +++ b/src/client/util/SearchUtil.ts @@ -28,6 +28,7 @@ export namespace SearchUtil { start?: number; rows?: number; fq?: string; + sort?: string; allowAliases?: boolean; onlyAliases?: boolean; "facet"?: string; @@ -42,7 +43,7 @@ export namespace SearchUtil { if (options.onlyAliases) { replacedQuery = `{!join from=id to=proto_i}DEFAULT:${replacedQuery}`; } - const gotten = await rp.get(rpquery, { qs: { ...options, sort: "lastModified_d desc", q: replacedQuery } }); + const gotten = await rp.get(rpquery, { qs: { ...options, q: replacedQuery } }); const result: IdSearchResult = gotten.startsWith("<") ? { ids: [], docs: [], numFound: 0, lines: [] } : JSON.parse(gotten); if (!returnDocs) { return result; |
