Joern Nettingsmeier wrote:
felix, doug, many thanks for your replies.

Doug Chestnut wrote:
Hi Joern,
Did you try the "New publication" usecase?  When I make a new
publication [using the default pub as a template], the
indexing/searching works without having to make any manual config edits.

yes, originally i did. i must have messed something up while trying to
customize my publication. yesterday night, i started over from scratch,
and when i tried again, i could not reproduce the problem. sorry for the
noise.


hi everyone!

as reported before, i still have problems with non-existent search indices in lenya 1.4. when i create a new publication as doug suggests, everything works, but as soon as i add my own modifications, the indexer breaks, and i don't know why.

this makes the cms pretty much un-usable, since almost every action in the authoring interface triggers the indexer.

the error i get is this:

<quote>
message: index unidue-authoring doesn't exist

org.apache.cocoon.ProcessingException: Error calling flowscript function executeUsecase at file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/lenya/usecases/usecases.js:284:-1 at <map:call> - file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/lenya/usecases/usecase.xmap:93:46 at <map:mount> - file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/lenya/usecase.xmap:56:128 at <map:mount> - file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/global-sitemap.xmap:299:105 at <map:mount> - file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/sitemap.xmap:526:106

cause: org.apache.cocoon.components.search.IndexException: message: index unidue-authoring doesn't exist
</quote>

but my indexer configuration has not been changed, and the index is there:
<index analyzer="stopword_en" directory="/local/lenya-build/lenya_1_4_X/build/lenya/webapp/lenya/pubs/unidue/work/lucene/index/authoring/index" id="unidue-authoring">

i don't see how my modifications would break the indexing.
here's what i did:

* add a local page2xhtml.xsl, and a usecase.xmap to apply alternate stylesheets

* override lenya/modules/sitetree/navigation/menu.xsl

* modify the ac to be independent from the default publication,

* comment out all resource types except for "xhtml" and "search" in publication.xconf


what am i doing wrong? what does the error message mean?

what files should be in work/lucene?

why do i not get a "search" subdirectory like the default pub has?

is there a way to create this index manually, perhaps by crawling from the command line? i read about an ant-task for this in lenya 1.2, but it is no longer included in 1.4.

any help is appreciated.


best,

jörn



for the record, here is the last part of the stack trace:

<quote>
org.apache.cocoon.components.search.IndexException: message: index unidue-authoring doesn't exist at org.apache.cocoon.components.search.components.impl.IndexManagerImpl.getIndex(IndexManagerImpl.java:186)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.avalon.excalibur.component.ComponentProxyGenerator$ComponentInvocationHandler.invoke(ComponentProxyGenerator.java:143)
        at $Proxy17.getIndex(Unknown Source)
at org.apache.cocoon.transformation.LuceneIndexTransformer2.initIndexer(LuceneIndexTransformer2.java:511) at org.apache.cocoon.transformation.LuceneIndexTransformer2.startElement(LuceneIndexTransformer2.java:282) at org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:83) at org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:204) at org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277) at org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler.java:348) at org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler.java:318)
</quote>



--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736

--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736

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

Reply via email to