Closed trawick closed 8 years ago
@trawick Sadly because real time indexing relies on save signals, it's very unpredictable because saving an object doesn't mean it should be added to the index.
As of 5542b9f84fd530b0d812fdec73a62bd34a5d02a3 I've made this more explicit.
The page index is only created/updated when the page is published. The page is removed from the index if it's unpublished.
This means that changing the title of a page or modifying a plugin will not touch the index until the page is published.
Hello again, sorry for the delay in responding, thanks for the fix, etc.
Is it intended for the project configuration to now use
HAYSTACK_SIGNAL_PROCESSOR = 'aldryn_search.signal_processor.RealtimeSignalProcessor'
?
(I didn't realize before that there was a signal processor within aldryn-search -- AldrynSignalProcessor)
Thanks!
Yes in order for realtime indexing to work correctly you'll need to use the Aldryn search realtime signal processor as shown above.
Thanks a lot!
@czpython I tried using the same settings HAYSTACK_SIGNAL_PROCESSOR = 'aldryn_search.signal_processor.RealtimeSignalProcessor'
. But seems like it is not working correctly. Any suggestions?
I'm using
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
and anticipate that searching for some text is successful within a few seconds of publishing a page that has the text.manage.py update_index
, but that isn't desired.What is the expected behavior when changing text plugin contents with real time updates?
TIA!