Alfresco WebScripts Solr API Repository Connector for Apache ManifoldCF
svn co http://svn.apache.org/repos/asf/manifoldcf/trunk/ manifoldcf
cd manifoldcf
mvn clean install -DskipTests -Dmaven.test.skip
cd -
git clone https://github.com/maoo/alfresco-webscript-manifold-connector.git
cd alfresco-webscript-manifold-connector
mvn clean install -DskipTests -Dmaven.test.skip
cd alfresco-indexer-webscripts
mvn install -Pamp-to-war (advised MAVEN_OPTS="-Xms256m -Xmx2G -XX:PermSize=300m")
(will run on localhost:8080/alfresco-instance)
curl http://archive.apache.org/dist/manifoldcf/apache-manifoldcf-1.1.1-bin.zip > manifold-bin-1.1.1.zip
unzip manifold-bin-1.1.1.zip
export MANIFOLD_HOME=$PWD/apache-manifoldcf-1.1.1
java -jar $MANIFOLD_HOME/example/start.jar
curl http://archive.apache.org/dist/lucene/solr/4.1.0/solr-4.1.0.zip > solr-4.1.0.zip
unzip solr-4.1.0.zip
export SOLR_HOME=$PWD/solr-4.1.0
java -jar $SOLR_HOME/example/start.jar
Prerequisite: you need to have installed Apache Maven 3.0.4
For building and packaging the connector run the following command from the root folder of the project:
mvn clean install
Copy the conf folder into the manifold classpath
cp -Rf mcf-alfresco-webscript-connector/src/test/resources/conf $MANIFOLD_HOME/example
cp -Rf mcf-alfresco-webscript-connector/src/test/resources/alfrescoResources $MANIFOLD_HOME/example
cp mcf-alfresco-webscript-connector/target/mcf-alfresco-webscript-connector-1.1.1-jar-with-dependencies.jar $MANIFOLD_HOME/connector-lib
edit $MANIFOLD_HOME/connectors.xml
and add this snippet:
<repositoryconnector
name="AlfrescoWebscript"
class="org.apache.manifoldcf.crawler.connectors.alfrescowebscripts.AlfrescoWebScriptsRepositoryConnector"/>
edit $MANIFOLD_HOME/logging.ini
if you want to raise the default (WARN) Manifold log level
create a new conf
folder in $MANIFOLD_HOME/example/lib
copy in the new conf
folder all these files related to the keystore configuration of your Alfresco instance:
-ssl-keystore-passwords.properties
-ssl-truststore-passwords.properties
-ssl.repo.client.keystore
-ssl.repo.client.truststore
-
Add Output Connection (List Output Connections)
- Set name (free)
- Set type to
Solr
- Save (all options by default)
-
Add Repository Connection (List of Repository Connections)
- Set name (free)
- Set type to
AlfrescoWebscript
- Save (all options by default)
-
Add Job (List all Jobs)
- Set name (free)
- Click on
Connection
tab - Set
Output connection
toyour_output_connection
- Set
Repository connection
toyour_repository_connection
- Save (all options by default)
-
Start the Job (Status and Job Management)