Wolfgang Jeltsch schrieb:

[…]

Second, I don’t know how Lucene knows to what base directory the
relative paths in lucene_index.xml refer.  The example lucene_index.xml
contains paths starting with lenya/pubs/$MYPUB.
IndexManagerImpl:370

   if (!directory.startsWith(File.separator)) {
      directory = getServletContextPath() + File.separator + directory;
   }
But this would mean that the servlet context path would have to be
$HOME/src while lenya is installed in $HOME/apache/lenya-2.0.
Hmm, why should that be the case?

With Jetty, the servlet context is $LENYA_HOME/build/lenya/webapp.
If you deploy to Tomcat (using /lenya as servlet path), the servlet
context is $TOMCAT_HOME/webapps/lenya.

I’m talking about the directory layout used in the tutorial (at <http://lenya.apache.org/docs/2_0_x/tutorials/newpublication/index.html>). Lenya is installed there in $HOME/apache/lenya-2.0. The Lucene indexing stuff is intended to go into $HOME/src/lenya/pubs/$MYPUB/work/lucene/index.

Hmm, where does it say that? Actually it is intended to go into

$HOME/apache/lenya-2.0/build/lenya/webapp/lenya/pubs/$MYPUB/work/lucene/index

Another (probably better) option would be to keep it in

$HOME/src/lenya/data/$MYPUB/lucene/index

Or, if you don't keep the data in SVN, the whole structure should be changed to something like this:


$HOME/
  apache/
    lenya-2.0/             Lenya installation directory
      build/lenya/webapp/  Web application directory (servlet context)
  src/
    lenya/                 Lenya-related sources.
      pubs/                Your publications.
        $MYPUB/            Your first publication.
        $MYPUB2/
        …
      modules/             Your modules.
  data/                    Here you'll store your data:
    $MYPUB/
      content/             Content (documents, images, ...)
      access-control/      Access control data
        passwd/            Users, groups, etc.
        policies/          Policies (page permissions)
      lucene/              Lucene index
    $MYPUB2/
    …


-- Andreas


--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to