cancel
Showing results for 
Search instead for 
Did you mean: 

org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerAndSearcherFactory alternative

rupeshsawaliya
Star Contributor
Star Contributor
Hi,
I am using Alfresco 4.1.4 in this I created an interceptor for this class org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerAndSearcherFactory and in the interceptor I have written code for not indexing specific type of content.
This is working fine with lucene. Now i am planning to move to Solr but with solr i will have to write interceptor for other solr class which should be similar to this org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerAndSearcherFactory.
I know for solr this class org.alfresco.repo.search.impl.solr.SolrIndexerAndSearcherFactory is written but the implementation is different.
Is there class which is responsible for providing content's cm:content for indexing purpose when solr is being used?

Note:Content is around 150GB

Thanks in advance.



1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
First ,why not use "Index Control" aspect to control indexing ? you can find cm:indexControl aspect definition in contentModel.xml.I recommend this approach
Second,If you want to change solr indexing behaviour ,I guess you should modify indexNode mehod of
org.alfresco.solr.LegacySolrInformationServer
class in solr project.