Firesphere

Which means you'll have to send Solr the key index

Firesphere

No, you can't, you can update records just fine though

jkersu

Ok thanks, that at least gives me a way forward for doing more investigation 🙂

MichalKleiner

because many_many is a separate table, it doesn’t write anything to the table you need

MichalKleiner

the reindexing hooks into the db manipulation of the record, so forcing a write will trigger the reindex as well

jkersu

Is it possible to make it reindex when forcing a write()? Is this done automatically or does it have to be done manually?

MichalKleiner

simplest might be to force a write() on the owning object somehow…

jkersu

Just had another Solr 4 question, is it possible to update the indexes for an specific object, without having to run the full solr reindex? The issue I'm having is that after changing the contents of a many_many relationship (for e.g adding a new object to it) the indexes have not yet been updated. What'd be the best way to make this new addition so its available in search in a relatively short time after adding it?

jkersu

Yep thats right. So I think I got it:

  1. Add an index for the relationship with the Organisation's remote ID
  2. Search for objects by passing in the organisation ID to find any object with a matching index, instead of 500 separate IDs Is that about correct?
Firesphere

Search Object, because that's what you want to search, right