Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change 
notification.

The "SolrGlassfish" page has been changed by knaak.
The comment on this change is: initial document, committing to make sure its 
saved..
http://wiki.apache.org/solr/SolrGlassfish

--------------------------------------------------

New page:
= Solr with Glassfish v3 =
Solr runs fine with [[http://glassfish.dev.java.net|Glassfish]], see the 
instructions in the generic [[SolrInstall|Solr installation]] page for general 
info before consulting this page.

<<TableOfContents>>

== Simple Example Install ==

Login to your administrative console, typically http://servername:4848.

Look for Enterprise Service on the left hand side and click on it.  Look for 
"System Properties" tab along the top, click on it.  Here you will setup your 
Solr home and data directories.  Click on "Add Property" and in the name field 
put:

''solr.solr.home'' and in the value put the fully qualified path to your solr 
folder.  Example in Linux would be /opt/solr. 

''solr.data.dir'' and add the location of your data directory, an example might 
be /var/solrdata/

Then click on "Save" button in the upper right hand corner.  I then restarted 
my Glassfish server to ensure the properties were set by clicking on the 
"General" tab and then "Restart".

Once this is done, you may deploy the war.  For apache-solr-1.4.0, you should 
copy apache-solr-1.4.0/dist/apache-solr-1.4.0.war to your 
$GLASSFISHHOME/glassfishv3/domains/''domainname''/autodeploy.  You can then 
verify that Solr deployed by going to that folder and you should see 
apache-solr-1.4.0.war.deployed.

Check the logs directory 
($GLASSFISHHOME/glassfishv3/domains/''domainname''/logs) and you should see the 
Solr start up including it finding the solr.solr.hom and solr.data.dir 
parameters.  Goto http://'servername':8080/apache-solr-1.4.0/  to confirm 
successful installation.

Reply via email to