I have built a site which I want to index with Lucene.
I am using the create-index.xsp file in the $COCOON-ROOT/search directory to
build my index.
I have added the following to cocoon.xconf:
<cocoon-crawler logger="core.search.crawler">
<exclude>.*/search/.*</exclude>
<link-view-query>cocoon-view=lucene-links</link-view-query>
</cocoon-crawler>
<lucene-xml-indexer logger="core.search.lucene">
<store-fields>body</store-fields>
<content-view-query>cocoon-view=lucene-content</content-view-query>
</lucene-xml-indexer>
I've set up a view lucene-links which works, giving back just links from a page.
I've set up a view lucene-content just giving back the content. The content is like:
<page>
<links>....list of links</links>
<body>... the body content ...</body>
</page>
I have had it partially working (indexing both links and body), but now whenever I
run create-index, it fails with a Cannot parse!: org.xml.sax.SAXParseException:
Premature end of file.
Any ideas what I might be doing wrong?
Regards, Upayavira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]