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

jkersu

So should I index from the Search object or the Organisation side?

Firesphere

It would be Object.NameOfTheRelationOnTheObject.FieldNameOnTheOtherEnd

👍 (1)
jkersu

Cool thanks for the help. Ill give it a go and report back 🙂

Firesphere

I believe so, yeah, the field lookup is just the same iirc

jkersu

It'd just be Object.ThroughObject.Organisation.ID?