[15338] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|
| 2 |
|
---|
| 3 | <html>
|
---|
| 4 | <head>
|
---|
| 5 | <title>Installing Fedora Generic Search</title>
|
---|
| 6 | </head>
|
---|
| 7 | <body>
|
---|
| 8 | <a href="index.html">Back to index page</a>
|
---|
| 9 |
|
---|
| 10 | <h1>Installing Fedora Generic Search</h1>
|
---|
| 11 | In this document,
|
---|
| 12 | <ul>
|
---|
| 13 | <li>$FEDORA_HOME refers to the full path to your Fedora installation directory.<br /> </li>
|
---|
| 14 | <li>For a walkthrough on installing Fedora (and for links to the official Fedora instructions for installation) see <a href="3InstallingFedora.html">Installing Fedora</a>.</li>
|
---|
| 15 | </ul>
|
---|
| 16 |
|
---|
| 17 |
|
---|
| 18 | <ol>
|
---|
| 19 | <li><a href="http://drama.ramp.org.au/cgi-bin/trac.cgi/wiki/InstallingFedoraGSearch">The detailed installation instructions</a> which I followed were written by the Muradora team.
|
---|
| 20 | </li>
|
---|
| 21 |
|
---|
| 22 | <li>Once installed, the FedoraGSearch rest url will by default be at:
|
---|
| 23 | <pre>http://localhost:8080/fedoragsearch/rest</pre>
|
---|
| 24 | </li>
|
---|
| 25 |
|
---|
| 26 | <li>Next to the steps above, you will need to make some more changes in order to enable full-text indexing and searching of the Greenstone documents ingested into the Fedora repository.
|
---|
| 27 | <ol style="list-style-type:lower-alpha">
|
---|
| 28 | <li>Open the file:
|
---|
| 29 | <pre>$FEDORAHOME/tomcat/webapps/fedoragsearch/WEB-INF/classes/config/index/demoFoxmlToLucene.xslt</pre>
|
---|
| 30 | At present, Muradora's file allows all digital objects in your Fedora repository to be indexed and searchable. If you're alright with indexing just the Greenstone documents stored in Fedora's repository, then we'll add the following to the above file:
|
---|
| 31 | <pre> <xsl:if test="starts-with($PID,'greenstone')">
|
---|
| 32 | ...
|
---|
| 33 | </xsl:if>
|
---|
| 34 | </pre>
|
---|
| 35 | So that now the file contains:
|
---|
| 36 | <pre><xsl:if test="foxml:digitalObject/foxml:objectProperties/foxml:property[@NAME='http://www.w3.org/1999/02/22-rdf-syntax-ns#type' and @VALUE='FedoraObject']">
|
---|
| 37 | <b><xsl:if test="starts-with($PID,'greenstone')"> // ADDED THIS</b>
|
---|
| 38 | <!-- filter out annotations: -->
|
---|
| 39 | <!--
|
---|
| 40 | <xsl:choose>
|
---|
| 41 | <xsl:when test="foxml:digitalObject/foxml:datastream/foxml:datastreamVersion[last()]/foxml:xmlContent/rdf:RDF/rdf:Description/rel:isMemberOf[@rdf:resource='info:fedora/mura:annotations']">
|
---|
| 42 | </xsl:when> // CORRECTED typo in this comment
|
---|
| 43 | <xsl:otherwise>
|
---|
| 44 | -->
|
---|
| 45 | <xsl:apply-templates mode="activeDemoFedoraObject"/>
|
---|
| 46 | <!--
|
---|
| 47 | </xsl:otherwise>
|
---|
| 48 | </xsl:choose>
|
---|
| 49 | -->
|
---|
| 50 | <b></xsl:if> // ADDED THIS</b>
|
---|
| 51 | </xsl:if>
|
---|
| 52 | </pre>
|
---|
| 53 | </li>
|
---|
| 54 |
|
---|
| 55 | <li>In the file
|
---|
| 56 | <pre>
|
---|
| 57 | $FEDORAHOME/tomcat/webapps/fedoragsearch/WEB-INF/classes/config/index/index.properties</pre>
|
---|
| 58 | we're going to add fulltext (and label) to the list of fields that are indexed and are therefore searchable. We do this by appending
|
---|
| 59 | <pre>
|
---|
| 60 | ds.fulltext ds.label
|
---|
| 61 | </pre>
|
---|
| 62 | So that it now becomes:
|
---|
| 63 | <pre>fgsindex.defaultQueryFields = dc.description dc.title dc.creator dc.identifier ds.fulltext ds.label</pre>
|
---|
| 64 | The field ds.label and a document's full-text can now be searched and will appear in the search results. (Only a customisable snippet-size of a document's full-text will present in the results of a search.)
|
---|
| 65 | </li>
|
---|
| 66 |
|
---|
| 67 | <li>Finally, <b>an important note:</b> Fedora Generic Search only supports indexing and searching Fedora Digital Objects (Fedora repository contents) whose MIME-type is one of
|
---|
| 68 | <ul>
|
---|
| 69 | <li>text/html</li>
|
---|
| 70 | <li>text/plain</li>
|
---|
| 71 | <li>application/pdf</li>
|
---|
| 72 | </ul>
|
---|
| 73 | Text/xml is not accepted. (Therefore Greenstone documents exported to FedoraMETS and ingested into Fedora must be of one of the above MIME-types, else they will not be indexed by Fedora Generic Search.)
|
---|
| 74 | </li>
|
---|
| 75 | </ol>
|
---|
| 76 | </li>
|
---|
| 77 | </ol>
|
---|
| 78 |
|
---|
| 79 | </body>
|
---|
| 80 | </html>
|
---|