Skip to content

Commit bc73bde

Browse files
author
Peter Bengtsson
authored
Fix exclusion of English search indexes (github#24501)
* debug search on stage * debugging more * keep more * try again
1 parent a0a24b6 commit bc73bde

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/staging-build-and-deploy-pr.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ jobs:
133133
134134
# Delete all the big search indexes that are NOT English (`*-en-*`)
135135
pushd lib/search/indexes
136-
ls | grep -v '\-en\-' | xargs rm
136+
echo "BEFORE...."
137+
ls -l
138+
ls | grep -ve '\-en\b' | xargs rm
139+
echo "AFTER...."
140+
ls -l
137141
popd
138142
139143
# Note! Some day it would be nice to be able to delete

middleware/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ router.get('/', async function postSearch(req, res, next) {
3737
console.error(err)
3838
// Only reply if the headers have not been sent and the request was not aborted...
3939
if (!res.headersSent && !req.aborted) {
40-
return res.status(400).json([])
40+
return res.status(400).json({ error: err.toString() })
4141
}
4242
}
4343
})

0 commit comments

Comments
 (0)