cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira" ...@upaya.co.uk>
Subject Lucene index building
Date Mon, 17 Mar 2003 23:47:48 GMT
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: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message