Merge pull request #1695 from nextcloud/enh/1694/improve-fts

allow to make fulltextsearch:index issues easier to debug
This commit is contained in:
Simon L 2023-01-12 13:56:02 +01:00 committed by GitHub
commit c03fde1ebd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -592,10 +592,11 @@ if [ "$FULLTEXTSEARCH_ENABLED" = 'yes' ]; then
echo "Waiting 10s before activating FTS..."
sleep 10
echo "Activating fulltextsearch..."
if php /var/www/html/occ fulltextsearch:test && php /var/www/html/occ fulltextsearch:index; then
if php /var/www/html/occ fulltextsearch:test && php /var/www/html/occ fulltextsearch:index "{\"errors\": \"reset\"}" --no-readline; then
touch "$NEXTCLOUD_DATA_DIR/fts-index.done"
else
echo "Fulltextsearch failed. Could not index."
echo "Feel free to follow https://github.com/nextcloud/all-in-one/discussions/1709 if you want to skip the indexing in the future."
fi
fi
else