Added by Bart van der Schans, last edited by Jasha Joachimsthal on Sep 27, 2008  (view change)

Labels:

slide slide Delete
repository repository Delete
configuration configuration Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Create config path

By default the slide config dir is config/slide. To create the namespace "mynamespace" in config/slide/mynamespace type:

$ mkdir config/slide/mynamespace

Copy extractors

The next step is to copy the default extractors files to the directory config/slide/mynamespace

$ cp config/slide/extractors.xml config/slide/mynamespace/.

For the options in the extractors.xml file read the extractors documentation.

Create store definition

Now create the config/slide/mynamespace/definition.xml file. This file defines the storage mechanism for slide. For an example look at the separate pages:

Add namespace to domain

The last step is to add the new namespace "mynamespace" to the config/domain.xml file. Add the following lines to the file:

<namespace name="mynamespace">
  <definition src="config/slide/mynamespace/definition.xml"></definition>
  <configuration src="config/slide/configuration.xml"></configuration>
  <data src="config/slide/data.xml"></data>
  <extractors src="config/slide/mynamespace/extractors.xml"></extractors>
  <indexer>
    <indexpath>work/slide_indices/mynamespace</indexpath>
    <cron>0/5 * * * * ?</cron>
  </indexer>
</namespace>
Don't put the pointer to the events.xml inside your namespace. It must be at the slide level.

See 06. Using DASL Queries#SlideNamespaceConfiguration in the CMS documentation how to set up a faster indexing and search engine in a namespace.

Test new namespace

After the server started open a browser and goto:

http://localhost:60000/mynamespace or to hostname where you installed the repository. The port can differ if you changed it in config/jetty.xml.

The sample namespace configuration has the indexer cron interval set to 15 minutes. I suggest setting it to 5 seconds so that changes are visible in the frontend (almost) immediately.

Thanks Niels, 15 minutes is indeed too long in most cases.