From 6dab457a8c51389b14a268bdfa51183d594925fd Mon Sep 17 00:00:00 2001 From: Heikki Hellgren Date: Wed, 17 Jan 2024 10:55:39 +0200 Subject: [PATCH] fix: add ordering of questions to collator --- .../src/collators/DefaultQetaCollatorFactory.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/search-backend-module-qeta/src/collators/DefaultQetaCollatorFactory.ts b/plugins/search-backend-module-qeta/src/collators/DefaultQetaCollatorFactory.ts index 479b140b..580168b4 100644 --- a/plugins/search-backend-module-qeta/src/collators/DefaultQetaCollatorFactory.ts +++ b/plugins/search-backend-module-qeta/src/collators/DefaultQetaCollatorFactory.ts @@ -56,6 +56,8 @@ export class DefaultQetaCollatorFactory implements DocumentCollatorFactory { const params = new URLSearchParams(); params.append('includeAnswers', 'true'); params.append('includeComments', 'true'); + params.append('orderBy', 'created'); + params.append('order', 'asc'); params.append('limit', '50'); params.append('offset', indexedQuestions.toString(10)); const response = await fetch(