diff options
author | ab <abdullah_ahmed@brown.edu> | 2019-08-13 17:26:49 -0400 |
---|---|---|
committer | ab <abdullah_ahmed@brown.edu> | 2019-08-13 17:26:49 -0400 |
commit | e03a1b2cc90e0fdb7789f4826e482e9040aa7075 (patch) | |
tree | 8704de27d354bc20512a6b8058df3e4ba4c1bb64 /src/client/util/SearchUtil.ts | |
parent | 843ac47f04f8c9bd687600f9f07fe4c15744e4ec (diff) |
80% done, garbage collection is much needed
Diffstat (limited to 'src/client/util/SearchUtil.ts')
-rw-r--r-- | src/client/util/SearchUtil.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/util/SearchUtil.ts b/src/client/util/SearchUtil.ts index 1fce995d7..85e593529 100644 --- a/src/client/util/SearchUtil.ts +++ b/src/client/util/SearchUtil.ts @@ -81,12 +81,13 @@ export namespace SearchUtil { export async function GetAllDocs() { const query = "*"; let response = await rp.get(Utils.prepend('/search'), { - qs: { - q: query - } + qs: + { start: 0, rows: 10000, q: query }, + }); let result: IdSearchResult = JSON.parse(response); const { ids, numFound, highlighting } = result; + console.log(ids.length); const docMap = await DocServer.GetRefFields(ids); const docs: Doc[] = []; for (const id of ids) { |