Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sureshvv opened this issue Aug 10, 2023 · 4 comments
Open

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

sureshvv opened this issue Aug 10, 2023 · 4 comments

Comments

@sureshvv
Copy link

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
Copy link
Owner

nitely commented Aug 10, 2023

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
Copy link
Author

sureshvv commented Aug 10, 2023

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
Copy link
Owner

nitely commented Aug 10, 2023

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

No. Run python manage.py rebuild_index

@sureshvv
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants