mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-24 23:59:46 +02:00
update logic
This commit is contained in:
parent
03370dd066
commit
0cb69545db
5 changed files with 258 additions and 180 deletions
|
@ -16,6 +16,7 @@ router.get('/search', async (req: Request, res: Response) => {
|
|||
const startTime = performance.now();
|
||||
|
||||
const search = new Search();
|
||||
|
||||
const searchResponse = await search.query(searchString);
|
||||
|
||||
/** End measuring search time */
|
||||
|
@ -30,8 +31,6 @@ router.get('/search', async (req: Request, res: Response) => {
|
|||
_id: page._id,
|
||||
title: page.title,
|
||||
uri: page.uri,
|
||||
// body: page.body,
|
||||
// parent: page.parent,
|
||||
section: page.section,
|
||||
anchor: page.anchor,
|
||||
shortBody: page.shortBody,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue