my version doesn't have an elapsed-time attribute on it, but otherwise it's the same. am i supposed to generate this file on my own, or is that something the index transformer takes care of?

here's a sample:

<?xml version="1.0" encoding="UTF-8"?>
<lucene:index analyzer="org.apache.lucene.analysis.standard.StandardAnalyzer" create="false"
directory="index" merge-factor="20" xmlns:link="urn:berkeley:cde:portal:link"
xmlns:lucene="http://apache.org/cocoon/lucene/1.0"; xmlns:meta="urn:berkeley:cde:portal:metadata"
xmlns:pc="urn:berkeley:cde:portal:portalcontent" xmlns:toc="urn:berkeley:sims:cde:portal:toc"
xmlns:txt="urn:berkeley:cde:portal:structuredtext" xmlns:xhtml="http://www.w3.org/1999/xhtml"; xmlns:xlink="http://www.w3.org/1999/xlink";>
<lucene:document url="site/index.xml">
<PortalContent xmlns="urn:berkeley:cde:portal:portalcontent"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="urn:berkeley:cde:portal:portalcontent ../../xsd/shared/PortalContent.xsd">
<Metadata xmlns="urn:berkeley:cde:portal:metadata">


...



On Thursday, August 14, 2003, at 10:15 PM, Conal Tuohy wrote:

Hi Bill

What's the content of xml/siteindex.xml look like? Particularly, the
<lucene:document> element. I suggest you check that it looks like the sample
page on the Wiki.


Con

-----Original Message-----
From: Bill French [mailto:[EMAIL PROTECTED]
Sent: Friday, 15 August 2003 15:23
To: [EMAIL PROTECTED]
Subject: Re: another question on search


thank you for your help, con.


right now, i've got this in my sitemap:

                        <!-- generate index -->
                        <map:match pattern="genindex">
                                <map:generate
src="xml/siteindex.xml" type="file"/>
                                <map:transform type="index"/>
                                <map:serialize type="xml"/>
                        </map:match>

                        <!-- search, take 2 -->
                        <map:match pattern="search">
                                <map:generate type="search"/>
                                <map:transform
src="xsl/xhtml/search/searchresults.xsl"/>
                                <map:serialize type="xhtml"/>
                        </map:match>

pointing my browser to localhost:8080/genindex gives me the following
error:

Internal Server Error

Message: Failed to execute pipeline.

Description: org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: java.lang.NullPointerException
Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet

Request URI
genindex

cause
java.lang.NullPointerException

request-uri
/genindex

siteindex.xml is a file i generated statically on my own,
based on all
of my xml content docs. hitting search now returns just the following:

<?xml version="1.0" encoding="UTF-8"?>

do i want to be generating my index as i am above?

i really appreciate all your help. i'm new to cocoon and some of the
concepts are still a little bewildering. ;)

thanks,

--bill



On Thursday, August 14, 2003, at 07:56 PM, Conal Tuohy wrote:

Hi Bill.

Yes you are confused: you should have 2 distinct pipelines: one to
create or update the index (using the LuceneIndexTransformer) and a
separate pipeline to search the index (using SearchGenerator).

Con

        -----Original Message-----
        From: Bill French [mailto:[EMAIL PROTECTED]
        Sent: Fri 15/08/2003 12:59 p.m.
        To: [EMAIL PROTECTED]
        Cc:
        Subject: another question on search






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




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


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



Reply via email to