diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-13 16:28:30 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-13 16:28:30 -0400 |
| commit | 79ecb86980d67ea2c57be4e38d396a5b19484bfe (patch) | |
| tree | d883670d46186a12afaf6551a1e651ec13a2b2dd /src/client/util | |
| parent | 122642c8f53ae37f67c92313490b247f0af154ba (diff) | |
changed solr schema so that text and date fields are sortable. fixed one line text not to show scrollbars. fixed scriptingRepl to allow document ids to be entered.
Diffstat (limited to 'src/client/util')
| -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 3073da954..a66cce6a5 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; |
