Using EADitor with an existing Tomcat and Solr instance

8 views
Skip to first unread message

Michael Levy

unread,
Feb 23, 2011, 6:25:36 PM2/23/11
to eaditor
Hi,

We're really excited to be testing EADitor and feel this project has
the potential to provide some really useful features.

I thought I'd try to help with some documentation on how to configure
EADitor under this circumstance. I thought other users might benefit
and you'd be interested.

I wanted to change a couple things, so I exploded the installer and
copied the folder .../tomcat/webapps/orbeon/ into my existing /
webapps/ folder. That seemed to work perfectly fine, so I could get
into the app via http://myserver:8080/orbeon/ead/
So far, so good.

Then I tried to configure the application so that I could use Solr
under Tomcat, but using a different Solr url than http://myserver:8080/solr/
I wanted to have Solr set up at :8080/solr_eaditor/
I completely failed at that. Grepping through the code it appears
that in .../webapps/orbeon/WEB-INF/resources/apps/ead/page-flow.xml,
there are several places that quite specifically place solr with a
special url, e.g. the code pasted below.

I know this is a pretty early stage of the project, so I hope this is
helpful.

Another suggestion could be to show more useful errors if Solr isn't
configured correctly or isn't running at all.

Here is some code from the particular page-flow.xml mentioned above:

<!-- solr doc service -->
<page path-info="/ead/solr/(.*)" matcher="oxf:perl5-matcher"
model="http://localhost:8080/orbeon/exist/rest/db/eaditor/guides/
${1}.xml"
view="xslt/publish/ead-to-solr.xsl"/>

<!-- dsc navigation service for forms via ajax -->
<page path-info="/ead/admin/navigation/(.*)" matcher="oxf:perl5-
matcher"
model="http://localhost:8080/orbeon/exist/rest/db/eaditor/guides/
${1}.xml" view="xslt/navigation.xsl"/>

<!-- html view -->
<page path-info="/ead/show/(.*)" matcher="oxf:perl5-matcher"
model="http://localhost:8080/orbeon/exist/rest/db/eaditor/guides/
${1}.xml" view="xslt/display.xsl"/>

............
<!-- public interface -->
<page path-info="/ead/results/(.*)/(.*)" matcher="oxf:perl5-matcher"
model="http://localhost:8080/solr/published/select?q=${1}&amp;start=
${2}"
view="xpl/results.xpl"/>

Reply all
Reply to author
Forward
0 new messages