limit results, improve age display

This commit is contained in:
2025-05-25 01:13:25 +02:00
parent f8e9443ef8
commit 41a4ea5837
5 changed files with 169 additions and 107 deletions

View File

@ -49,8 +49,7 @@ app.get('/search', async (req, res) => {
console.log('Filmages results:', fa.length);
console.log('FilmsTousPublics results:', ftp.length);
console.log('FilmsPourEnfants results:', fpe.length);
const merged = mergeResults([cine, cs, fa, ftp, fpe]);
const merged = mergeResults([cine, cs, fa, ftp, fpe], q, 10); // limit=5
res.json(merged);
} catch (e) {
console.error('General search error:', e);