atom feed23 messages in org.apache.lenya.userRe: getting rid of unwanted resource ...
FromSent OnAttachments
Wolfgang JeltschJun 7, 2008 1:20 pm 
Andreas HartmannJun 9, 2008 1:13 am 
Wolfgang JeltschJun 13, 2008 6:02 am 
Andreas HartmannJun 13, 2008 6:17 am 
Wolfgang JeltschJun 13, 2008 7:20 am 
Andreas HartmannJun 13, 2008 7:39 am 
Wolfgang JeltschJun 13, 2008 7:51 am 
Wolfgang JeltschJun 15, 2008 1:46 pm 
Wolfgang JeltschJun 15, 2008 1:57 pm 
Wolfgang JeltschJun 15, 2008 2:06 pm 
Andreas HartmannJun 16, 2008 2:10 am 
Andreas HartmannJun 16, 2008 2:28 am 
Andreas HartmannJun 16, 2008 2:37 am 
Andreas HartmannJun 16, 2008 2:39 am 
Wolfgang JeltschJun 22, 2008 9:54 am 
Wolfgang JeltschJun 22, 2008 9:59 am 
Andreas HartmannJun 22, 2008 11:01 am 
Andreas HartmannJun 22, 2008 11:04 am 
Wolfgang JeltschJun 22, 2008 1:07 pm 
Wolfgang JeltschJun 22, 2008 1:10 pm 
solp...@apache.orgJun 24, 2008 10:47 am 
Andreas HartmannJun 25, 2008 1:52 am 
Andreas HartmannJun 25, 2008 2:13 am 
Subject:Re: getting rid of unwanted resource types
From:Andreas Hartmann (andr@apache.org)
Date:Jun 25, 2008 2:13:48 am
List:org.apache.lenya.user

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