There is no callback in Solr. You can either have your indexer application provide a call back or you can write a custom UpdateRequestProcessor which can extract the relevant fields into a new document and use SolrJ to write it to another collection.
On Thu, Feb 6, 2014 at 9:17 PM, soodyogesh <soodyog...@gmail.com> wrote: > I would like to know is there a way to intercept or callback whenever new > documents get added to Collection > > My use case is I would have one Collection split across shards and whenever > new document arrives in Collection I would like to get callback with > document itself so that I can take some of the field from document being > added and pass it on to other COllection. > > Kind of cascading addition , reason being we would like to create > lightweight index(2-3 fields) for autosuggest which is only used for > autosuggest and replicated across all webservers where our app is running > > and for search we would direct to other collection as our search is not as > latency sensitive as our autosuggest. > > any pointer would be helpful. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Intercept-updates-and-cascade-loading-of-Index-tp4115833.html > Sent from the Solr - User mailing list archive at Nabble.com. -- Regards, Shalin Shekhar Mangar.