Hi,
hopefully this question is not off-topic in this group, but I'm trying to 
setup quasi real-time updates using celery-haystack:

http://celery-haystack.readthedocs.io/en/latest/

>From what I understand, the HAYSTACK_SIGNAL_PROCESSOR thingy does it's 
magic when models that are indexed are saved.

However, in my index I also "prepare" virtual fields that depend on 
external models, so I would like to reindex my model X also when a certain 
other model Y changed.

For example, in pseudocode:

class MyModel():
 text = TextField()


class MyModelIndex(...):
  model = MyModel
  likes = IntegerField()

  prepare_likes():
    self.likes = do_query_against_other_model()

So, basically the "likes", in this example, are stored in another model 
that is not indexed, and I would like to connect an update to that model to 
the real-time index of "MyModel".

Can it be done?

TIA!
Salvatore


-- 
You received this message because you are subscribed to the Google Groups 
"django-haystack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-haystack+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to