cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco embedded with solr

jbole
Champ in-the-making
Champ in-the-making
Hello,

I need to embed Alfresco in my own web application for performance issue and i need to be able to search content with solr.
For now i'm able to create user,upload files with the foundation Api, but im struggling with solr to search node by id.

I understand that Solr is "talking" with alfresco (  /alfresco/service/api/solr/modelsdif …) but that result in a 404 because alfresco.war is not deployed, and i don't think that would be a solution because that would mean 2 instance of alfresco.

Am i missing something ?



1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator

The Solr server needs to call alfresco server 's RESTful API to indexe data .So if you want to use solr ,you not only need to start alfresco repository ,you also need to start webscript framework in your host application.
copy all spring surf(webscript) jar and alfresco-remote-api jar into your classpath and config WebScriptServlet and mapping in your web.xml


Or you can just use lucene.