-
Notifications
You must be signed in to change notification settings - Fork 10
Updating Solr on jboss 5
douglm edited this page Aug 15, 2013
·
6 revisions
Solr is installed on jboss 5 as a ear wrapping the slightly modified war. The solr configuration is stored in the solr home which is in the jboss data directory.
- Copy a preexisting ear and name it appropriately, e.g. solr-4.4.0.ear.
- Edit the META-INF/application.xml and set the war name
- Rename the contained war
- Replace the war with the unzipped version of the solr distributed webapp found in /solr-4.4.0/dist/.
- For the moment comment out the web-app element in the web.xml and replace it with . This avoids some schema related issues.
- The setting for the solr home needs to be at the end of the web.xml file, after the welcome-file:
<!-- People who want to hardcode their "Solr Home" directly into the WAR File can set the JNDI property here... --> <env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-value>${jboss.server.data.dir}/solr</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry>
- Rename the data/solr directory to data/solr-
- Update the schema and config files in the bedework repository. They get copied in to data/solr with the deploySolr target
- Create a new data/solr and copy all the config and folders. Appears to need contrib and (most of) dist
- Create a data/solr/bwpublic based on the distributed /solr-4.4.0/example/solr/collection1/conf/
- Ditto for data/solr/bwuser
- In each create a data directory - data/solr/bwpublic/data, data/solr/bwuser/data
- execute the deploySolr target
- solrconfig.xml needs a number of changes detailed below.
- schema.xml is changed to define bedework fields.
- Change paths to jar files - mostly ../../../contrib to ../contrib - also for dist
- set default auto soft commit to 1000