nitely / Spirit

Spirit is a modern Python based forum built on top of Django framework
http://spirit.readthedocs.io
MIT License
1.16k stars 334 forks source link

Search always says: There are no search results. #320

Open sureshvv opened 1 year ago

sureshvv commented 1 year ago

How do I debug this? I have run_huey in the background and the appropriate settings. I can see the st_search folder with some contents (1 file _MAIN_0.toc) and the huey.sqlite3 database.

nitely commented 1 year ago

see if #304 helps

when you run_huey there should be messages about the queue being process, if you create a new topic, then you should see a message about the task consuming that message.

If not, then it could be Spirit is not sending the task to huey. Make sure huey is enabled, and restart the Django server after any settings.py change. Also make sure huey and Spirit are using the same settings file. The python manage.py command has a settings flag.

Check the Django logs for errors. i.e: add the file handler after mail_admin in every logger.

I assume you have read this and so you are running django in a single machine along the Huey task manager. If you have multiple machines you cannot use whoosh, and you cannot use sqlite.

sureshvv commented 1 year ago

Thank you so much.

When I added a New Topic after run_huey, the index has been updated.

How do I get the old topics updated in the index?

Do I have to go back and save each of them?

nitely commented 1 year ago

Do I have to go back and save each of them?

No. Run python manage.py rebuild_index

sureshvv commented 1 year ago

May be nice to have a section in the docs on the management commands.