-
-
Notifications
You must be signed in to change notification settings - Fork 331
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 function not work #304
Comments
Read this: https://spirit.readthedocs.io/en/latest/task_manager.html
also email notfications. However, for very small sites you may use the real time indexation (it'll increase the time it takes to post/comment/create topics), see https://django-haystack.readthedocs.io/en/master/signal_processors.html#realtime-realtimesignalprocessor |
Thank you very much! |
Ciao,
As you said, we can use haystack to synchronize but it seems that base.py in settings already done it after we create a new project following proper steps provided.
And then we created a topic but searched without anything response. That's the problem encountered. Could you please help?Thanks in advance!
@nitely
|
try running If that command does not work, then there is something wrong with your setup. |
btw, are you trying things in a local machine or what? |
Local windows 10 pc |
ok, the whoosh search engine that comes configured by default should probably work (I'm a Linux user, not sure) |
The command works and indexing 2 topics, but when I tried to search something response with nothing again. And it still does not work after I set up the huey task manager. |
since the topics got indexed, the search should work. Not sure why it does not. Are you searching full words contained in the comments/topic title?
it does not work, because it requires a task manager. If you remove this check, it should work: Line 107 in 01e5799
if I use the prod.py setting without any significant change and it works for me. |
one thing you can check is if you have multiple |
As you see, I have 3 topics now and when I searched "test" it works well. But failed when searching "LOG". However, if I searched "如何抓取LOG" and it works. |
Search won't find partial words. IIRC, I was working on searching partial words, but the generated index was huge, it went from a few MBs to many GBs. I thought there was a setting to turn this on, but there is not. Anyway, the reason you cannot find LOG is because it's not separated by spaces (ie: it's not considered a whole word). I made a library to split unicode words a while ago, but in Nim https://github.com/nitely/nim-segmentation |
Yes, it's correct. |
Reopening so I'll fix it |
Thanks for your working! |
I've added support for Ngram index (search on Asian languages). The changes is unreleased, so you'll need to install with:
then add this to your settings:
you'll need to rebuild the search index:
and restart the server. Last time I tried this it generated a huge index, but it works. |
I released v0.12.3 with the |
Followed below steps:
pip install django-spirit
spirit startproject mysite
cd mysite
python manage.py spiritinstall
python manage.py createsuperuser
python manage.py runserver
But return nothing when searching. Could you please help to check? Thks~
@nitely
The text was updated successfully, but these errors were encountered: