Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

This document is intended as a guide to quickly deploy and test a system composed of the OODT File Manager and Solr. For a more in-depth discussion of the Solr File manager architecture and customization, see the complete Solr File Manager guideManager Developer's Guide.

We assume thet the system is deployed on a Unix platform (including Mac-OSX), and that the user has basic familiarity with the Unix operating system. The installation can take place in any directory on the system to where the user has access, for example under '/usr/local/oodt'. To install under any other directory, simply replace '/usr/local/oodt' with your custom path in the instructions below.

...

  • Download and install a Solr version of 4.X or above (Please note that Solr 4.3 and higher may require logging configuration):
Code Block
cp solr-4.2.0.tar /usr/local/oodt/.
cd /usr/local/oodt
tar xvf solr-4.2.0.tar
ln -s ./solr-4.2.0 ./solr
  • Install the Solr war file into the Tomcat directory (note that the Solr distribution must be renamed to solr.war as in the example command abovebelow):
Code Block
cp /usr/local/oodt/solr/dist/solr-4.2.0.war /usr/local/oodt/apache-tomcat/webapps/solr.war

...

  • Querying the CAS catalog direcly through Solr with a browser:

http://localhost:8080/solr/select/?q=:

Code Block
http://localhost:8080/solr/select/?q=*:*

http://localhost:8080/solr/select/?q=science

http://localhost:8080/solr/select/?q=CAS.ProductTypeName:GenericFile

http://localhost:8080/solr/select/?q=CAS.ProductName:test.txt

http://localhost:8080/solr/select/?q=CAS.ProductName:test.txt

  • Using the OODT query tool:

...

Code Block
cd /usr/local/oodt/cas-filemgr/bin

./filemgr-client --url http://localhost:9000 --operation --ingestProduct --productName test.txt --productStructure Flat --productTypeName GenericFile --metadataFile file:///tmp/test.txt.met --refs file:///tmp/test.txt

./filemgr-client -op --deleteProductByName --productName test.txt --url http://localhost:9000

./filemgr-client -op --deleteProductById --productId 14324704-2afe-4267-acad-503baf3af1d4 --url http://localhost:9000

./filemgr-client -op --hasProduct --productName test.txt --url http://localhost:9000

./filemgr-client -op --getProductTypeByName --productTypeName GenericFile --url http://localhost:9000

./filemgr-client -op --getNumProducts --productTypeName GenericFile --url http://localhost:9000

./filemgr-client -op --getProductByName --productName test.txt --url http://localhost:9000

./filemgr-client -op --getProductById --productId d749a67d-d012-4f55-b5ec-b53b6a91c676 --url http://localhost:9000

./filemgr-client -op --dumpMetadata --productId d749a67d-d012-4f55-b5ec-b53b6a91c676 --url http://localhost:9000

./filemgr-client -op --getFirstPage --productTypeName GenericFile --url http://localhost:9000

./filemgr-client -op --getNextPage --curPage 1 --productTypeName GenericFile --url http://localhost:9000

./filemgr-client -op --getPrevPage --curPage 2 --productTypeName GenericFile --url http://localhost:9000

./filemgr-client -op --getLastPage --productTypeName GenericFile --url http://localhost:9000

...