Hi Travis
I am using gsearch 2.2 & solr 1.4. I didn't compile the fedoragsearch.war from
the beginning, because I had fedoragsearch web application is running using
lucene. I have only made changes to this to use solr. I have outlined the steps
below, if you are not clear about anything please get back to me.
1. Installing solr 1.4
----------------------
Copy solr.war from the installtion pack to tomact/webapps
Copy example/multicore to any where in the disk (?) and name rename as solr
this is the solr home directory
Replace solr/corex/conf with example/solr/conf
rename core0, core1 to index names (This is to run multiple indexes)
Edit solr.xml with correct index names
Edit solrcomfig.xml, to change commit time & data directory
<autoCommit>
<maxDocs>1</maxDocs>
<maxTime>30000</maxTime>
</autoCommit>
<dataDir>[replace with solr home directory]/data/corename</dataDir>
Edit schema.xml to suit you requirements
Edit tomcat/bin/catalina.sh, include the line below;
JAVA_OPTS= "$JAVA_OPTS -Dsolr.solr.home=/usr/local/solr"
Restart tomact
Make sure solr is installed properly by going to the url servername:port/solr,
you should see the admin page.
2. Making gsearch to work with solr
------------------------------------
Unpack fedoragsearch.war and rename configDemoOnSolr to config (you may need
delete/rename existing config directory), and update following files;
- fedoragsearch.properties
- fedoragsearch.soapBase
- fedoragsearch.soapUser
- fedoragsearch.soapPass
- fedoragsearch.deployFile
- fedoragsearch.indexNames
- fedoragsearch.updaterNames
- repository.properties
- fgsrepository.fedoraSoap
- fgsrepository.fedoraUser
- fgsrepository.fedoraPass
- tomact path names in
- rest/demoBrowseIndexToHtml.xslt
- rest/demoGetIndexInfoToHtml.xslt
- rest/demoGetRepositoryInfoToHtml.xslt
- rest/demoGfindObjectsToHtml.xslt
- rest/demoUpdateIndexToHtml.xslt
- index.properties
- fgsindex.indexName
- fgsindex.indexBase
- fgsindex.indexDir
In the fedoragsearch/../lib directory delete existing lucune-core-2.x.x.jar and
include lucene-core-2.9.2.jar
Replace the indexing xslts in all indexes according to your requirement.
Restart tomacat
3. Initiating the indexes
-------------------------
Go the fedoragsearch/rest url and update index & create empty
If you get if no segments error then make sure lucene-core-2.9.2.jar is there.
Regards
Nilani
Nilani Ganeshwaran
eScholar Software Developer
The University of Manchester
Tel: 0161 2758728
From: Travis Lawall [mailto:[email protected]]
Sent: 16 November 2010 23:43
To: [email protected]
Subject: Gsearch / Solr / Fedora
Hi Nilani,
I saw a post by you on fcrepo-dev about getting Gsearch working with Solr. I
too had to recompile fedoragsearch.war file with the version of the Lucene libs
used by Solr and was partially successful getting the copied and
modifed(configDemoOnSolr) configs working. Would you be able to share with me
what you had to do to get this working?
Best Regards,
Travis LaWall
System Specialist / ASRC MS Contractor
USGS Fort Collins Science Center (FORT)
2150 Centre Dr., Building C
Fort Collins, CO 80526-8118
Email: [email protected]
Phone: (970) 226-9341
Fax: (970) 226-9230
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers