Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Fedora 3.0 compatibility
  • Added an update listener which uses the Fedora Messaging Client to listen for updates being performed through API-M. These update messages contain the information needed to perform index updates, thereby keeping GSearch up-to-date with the Fedora repository.
  • Enhanced the sortFields parameter to gfindObjects for Lucene, sorting search results by a custom Comparator class, see the index.properties file in configTestOnLucene and the test class dk.defxws.fedoragsearch.test.ComparatorSourceTest.
  • Enhanced the fromFoxmlFiles action of updateIndex for Lucene, so that all files are attempted to be indexed, even though one or more may fail, in which case log messages are given. Before, one failure would cause abortion.

...

  • Added a plugin for the Apache Solr search server.
  • Added easier configuration, so that you need only edit one file with property values, then run it with ant.
  • Updated to Lucene version 2.3.0.
  • Wiki Markup
    Added params to indexing in the format: ...&indexDocXslt=\[xslt-name\]\[(paramname1=value1\[,paramname2=value2\[,...\]\])\] Use the parameters at indexing time by putting xsl:param statement in the indexing xslt stylesheet, like this: <xsl:param name="someparamname" select="defaultvalue"/>
  • Added optimize options for Lucene indexing:
    fgsindex.mergeFactor and fgsindex.maxBufferedDocs will affect performance, see the index.properties file in configTestOnLucene. Also added ...?operation=updateIndex&action=optimize which will perform IndexWriter.optimize() which merges all segments together into a single segment, optimizing an index for search. Removed the optimize() call after each updateIndex.
  • Added untokenizedFields property to Lucene index.properties files. Adding the property with a list of all untokenized fields will ensure that they all select the appropriate analyzer.
  • Added a sortFields parameter to gfindObjects for Lucene, sorting search results as specified, see the index.properties file in configTestOnLucene.
  • Added properties snippetBegin and snippetEnd, making highlight code configurable, see the index.properties file in configTestOnLucene.
  • Added property for custom URIResolver used by xslt transformers for basic auth and SSL, see the example dk.defxws.fedoragsearch.server.URIResolverImpl class and the index.properties file in configTestOnLucene.
  • Removed encoding of special characters in indexFields. Snippets now show special characters without modification. Indexes should be reindexed.

...

To install the service:

  • Deploy fedoragsearch.war to the webapps directory of your web server, e.g. the tomcat Tomcat supplied with Fedora, or similar. You may rename the .war file, before you copy it into the webapps directory, in order to give it another webapp name.
  • Edit the configuration settings.

...

  • gSearchRESTURL - The REST endpoint for GSearch, for example, http://localhost:8080/fedoragsearch/restImage Removed
  • gSearchUsername - If GSearch is protected by authentication, this is the username that Fedora should use to authenticate.
  • gSearchPassword - The password for the above user, if applicable

...