Remove lucene from search tests

This commit is contained in:
Adria Navarro 2024-10-21 13:50:03 +02:00
parent 655cd353e7
commit 08a9488194
2 changed files with 442 additions and 479 deletions

File diff suppressed because it is too large Load Diff

View File

@ -645,7 +645,12 @@ export function search<T extends Record<string, any>>(
): SearchResponse<T> { ): SearchResponse<T> {
let result = runQuery(docs, query.query) let result = runQuery(docs, query.query)
if (query.sort) { if (query.sort) {
result = sort(result, query.sort, query.sortOrder || SortOrder.ASCENDING) result = sort(
result,
query.sort,
query.sortOrder || SortOrder.ASCENDING,
query.sortType
)
} }
const totalRows = result.length const totalRows = result.length
if (query.limit) { if (query.limit) {