diff options
author | bobzel <zzzman@gmail.com> | 2020-08-13 18:47:56 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-13 18:47:56 -0400 |
commit | ab500561d6924d867c828b6e407827b7d6b34278 (patch) | |
tree | 1b0603c8fcd2024dd8cc912abf50878d7cd18c8b /src/client/util/SearchUtil.ts | |
parent | a2a1f480a9af6cdf9863750df9314e29455cba60 (diff) | |
parent | 3debb7fedcd9c955ede46e57d4da182a5fa9acae (diff) |
Merge branch 'master' into schema_search
Diffstat (limited to 'src/client/util/SearchUtil.ts')
-rw-r--r-- | src/client/util/SearchUtil.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/SearchUtil.ts b/src/client/util/SearchUtil.ts index 286544222..f916ac44a 100644 --- a/src/client/util/SearchUtil.ts +++ b/src/client/util/SearchUtil.ts @@ -38,7 +38,7 @@ export namespace SearchUtil { query = query || "*"; //If we just have a filter query, search for * as the query const rpquery = Utils.prepend("/dashsearch"); const replacedQuery = query.replace(/type_t:([^ )])/, (substring, arg) => `{!join from=id to=proto_i}type_t:${arg}`); - const gotten = await rp.get(rpquery, { qs: { ...options, q: replacedQuery } }); + const gotten = await rp.get(rpquery, { qs: { ...options, /* sort: "lastModified_d desc", */ q: replacedQuery } }); const result: IdSearchResult = gotten.startsWith("<") ? { ids: [], docs: [], numFound: 0, lines: [] } : JSON.parse(gotten); if (!returnDocs) { return result; |