prototype or approach for having a Deployer Extension in Java for SDL Tridion 2011 for indexing of content into Apache Solr

StackOverflow https://stackoverflow.com/questions/11785862

Question

Can any one help me in supplying a prototype or approach for a Deployer Extension in Java for SDL Tridion 2011, so that this app/process/module can consume the delta publish and index that content into Apache Solr?

Was it helpful?

Solution

Please take a look at these other questions on SO:

How can we override the existing deployer customization in Tridion 2009?

Running Custom Deployer from Eclipse

How to make a Custom Deployer to write data to MS SQL database?

Need to get the XML of a component's that version which is published

How can we integrate Microsoft FAST with SDL Tridion 2011 SP1?

The last one specifically deals with updating a search collection. If this does not help, please show us what you have tried with some code samples.

OTHER TIPS

SDL tridion 2011 SP1 Deployer comes as a war file (here we have as cd_deplyer.war) which can be deployed in any appserver, this is the place where we can have custom code to extend the deployer to have our custom logic to be applied to published content from SDL. This war file will have many config files one of them is cd_deployer_conf.xml where we have to declare a module tag which gets called for each time content is published. for Ex: . . ....... . Similarly for undeploy

<Processor Action="Undeploy" Class="com.tridion.deployer.Processor">
.
<Module Type="SolrPageUndeploy" Class="com.xyz.RemovePageFromSolr">
.
.

These IndexPageToSolr and RemovePageFromSolr will get required metadata for indexing to solr and unindexing from solr. We can have our java classes in the same war file or we can have all of the war files in our war file and deploy in any appserver and give the app full context path to SDL for publishing.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top