====== Fedora Generic Search Service Version 2.6 ====== * compatible with Fedora Version 3.6.2 * compatibility with Lucene 4.2.0, Solr 4.2.0, and Tika 1.3 * easier configuration of GSearch for Islandora \\ apt-get install ant apt-get install unzip nano -w /usr/local/fedora/server/config/fedora-users.xml administrator wget http://garr.dl.sourceforge.net/project/fedora-commons/services/3.6/fedoragsearch-2.6.zip unzip fedoragsearch-2.6.zip cp fedoragsearch-2.6/fedoragsearch.war /var/lib/tomcat7/webapps/ cp -R /var/lib/tomcat7/webapps/fedoragsearch/FgsConfig ./ cd FgsConfig/ ant generateIndexingXslt cp fgsconfig-basic-for-islandora.properties fgsconfig-basic-for-islandora.properties.ORI nano -w fgsconfig-basic-for-islandora.properties # file.name=fgsconfig-basic-for-islandora.properties # This is a version of fgsconfig-basic.properties tailored for islandora # These properties are used by running from command line: # >ant -f fgsconfig-basic.xml -Dlocal.FEDORA_HOME=$FEDORA_HOME -propertyfile fgsconfig-basic-for-islandora.properties # Be sure you have permissions to write to finalConfigPath. # You must tailor the lines between #>>>>>>>>>> and #<<<<<<<<<< # configDisplayName is displayed on the admin pages, so you know, which set of config files is in action. # configDisplayName is also used as directory name of the config within the FgsConfigTemplate directory. configDisplayName=configForIslandora # gsearchBase is used for SOAP deployment. gsearchBase=http://fc2.to.cnr.it:8080 # gsearchAppName is used for SOAP deployment. gsearchAppName=fedoragsearch # gsearchUser is used for SOAP deployment. gsearchUser=fgsAdmin # gsearchPass is used for SOAP deployment. #>>>>>>>>>> gsearchPass=***** #<<<<<<<<<< # finalConfigPath must be in the classpath of the web server, must be an absolute path. #>>>>>>>>>> #finalConfigPath=${local.FEDORA_HOME}/tomcat/webapps/fedoragsearch/WEB-INF/classes finalConfigPath=/var/lib/tomcat7/webapps/fedoragsearch/WEB-INF/classes #<<<<<<<<<< # At startup, GSearch will find the file log4j.xml in tomcat classpath. # logFilePath is where to find the log file. logFilePath=${local.FEDORA_HOME}/server/logs # logLevel can be DEBUG, INFO, WARN, ERROR, FATAL. logLevel=DEBUG # namesOfRepositories separated by space. namesOfRepositories=FgsRepos # namesOfIndexes separated by space. namesOfIndexes=FgsIndex # Assuming there is one repository: # fedoraBase is base url of the repository. #>>>>>>>>>> fedoraBase=http://fc2.to.cnr.it:8080 #<<<<<<<<<< # fedoraAppName is Fedora app name of this repository. fedoraAppName=fedora # fedoraUser is the user name to access this repository. fedoraUser=fedoraAdmin # fedoraPass is the password to access this repository. #>>>>>>>>>> fedoraPass=***** #<<<<<<<<<< # fedoraVersion is the Fedora version of this repository. fedoraVersion=3.6 #objectStoreBase must be the location of the objects of this repository. #>>>>>>>>>> objectStoreBase=${local.FEDORA_HOME}/data/objectStore #<<<<<<<<<< #Assuming there is one index: # indexEngine is Lucene, Solr, or Zebra. indexEngine=Solr # FgsIndex: indexBase is the server base url, in case of Solr or Zebra. indexBase=http://fc2.to.cnr.it:8080/solr # FgsIndex: indexDir is the path to the index. indexDir=/srv/solr/data/index # FgsIndex: indexingDocXslt is the name of the indexing stylesheet. indexingDocXslt=foxmlToSolr nano -w FgsConfigReposTemplate/repositoryInfo.xml First AAA repository test. http://devbioinfo.to.cnr.it/doku.php?id=repo:start fc2 Repository for V2P2 Project Giancarlo Birello, UIT@Ceris g.birello@ceris.cnr.it nano -w FgsConfigIndexTemplate/Solr/indexInfo.xml The contents of this page is just an example, you may edit it in indexInfo.xml, and it is displayed by the getIndexInfo operation with the adminGetIndexInfoToHtml.xslt stylesheet. FgsIndex ISLANDORA index on Solr http://lucene.apache.org/ Solr Apache Lucene project The Apache Solr project develops open-source search software. solr lucene apache open-source search software http://solr.apache.org/solr_green_300.gif See e.g. http://lucene.apache.org/java/docs/queryparsersyntax.html dc.title:fedora AND dc.creator:"thornton staples" PID, repositoryName,
property.label, property.contentModel, property.createdDate,
property.lastModifiedDate, property.state, property.type,
dc.creator, dc.date, dc.description, dc.format, dc.identifier,
dc.publisher, dc.relations, dc.right, dc.source,
dc.subject, dc.title,
DS2.text,
others depending on the indexing stylesheet.
Apache Lucene Solr project info@lucene.apache.org/solr The Apache Lucene Solr project © 2005, The Apache Lucene Solr project, All Rights Reserved
export FEDORA_HOME=/usr/local/fedora ant -f fgsconfig-basic.xml -Dlocal.FEDORA_HOME=$FEDORA_HOME -propertyfile fgsconfig-basic-for-islandora.properties Buildfile: /home/user/FgsConfig/fgsconfig-basic.xml configFgsBasic: configFgsRoot: [delete] Deleting directory /home/user/FgsConfig/configForIslandora/fgsconfigFinal [mkdir] Created dir: /home/user/FgsConfig/configForIslandora/fgsconfigFinal [copy] Copying 22 files to /home/user/FgsConfig/configForIslandora/fgsconfigFinal configFgsRepos: [mkdir] Created dir: /home/user/FgsConfig/configForIslandora/fgsconfigFinal/repository/FgsRepos [copy] Copying 3 files to /home/user/FgsConfig/configForIslandora/fgsconfigFinal/repository/FgsRepos configFgsIndex: [mkdir] Created dir: /home/user/FgsConfig/configForIslandora/fgsconfigFinal/index/FgsIndex [copy] Copying 20 files to /home/user/FgsConfig/configForIslandora/fgsconfigFinal/index/FgsIndex [copy] Copying 1 file to /home/user/FgsConfig/configForIslandora/fgsconfigFinal [delete] Deleting directory /var/lib/tomcat7/webapps/fedoragsearch/WEB-INF/classes/fgsconfigFinal [mkdir] Created dir: /var/lib/tomcat7/webapps/fedoragsearch/WEB-INF/classes/fgsconfigFinal [copy] Copying 46 files to /var/lib/tomcat7/webapps/fedoragsearch/WEB-INF/classes/fgsconfigFinal BUILD SUCCESSFUL Total time: 1 second cd /usr/local/solr/islandora/conf/ cp /var/lib/tomcat7/webapps/fedoragsearch/WEB-INF/classes/fgsconfigFinal/index/FgsIndex/conf/schema-4.2.0-for-fgs-2.6.xml ./ mv schema.xml schema.xml.ORI cp schema-4.2.0-for-fgs-2.6.xml schema.xml service tomcat7 restart \\ \\ **TEST installation** * Ingest object (FOXML) by Fedora admin page: http://fc2.to.cnr.it:8080/fedora/admin/ * Open fedoragsearch admin page and browseIndex: http://fc2.to.cnr.it:8080/fedoragsearch/rest?operation=browseIndex * Open Solr admin page, Core admin, Reload: http://fc2.to.cnr.it:8080/solr/