Welcome to Cocoon XML Search using Lucene

Lucene Logo

XML Search

Welcome to Cocoon XML Search. This page introduces Cocoon searching and offers the following samples:

Creating an Index

You must create a Lucene index first, before you can do the searching. You can create a Lucene index either by crawling, or by using LuceneIndexTransformer.

Creating Index By Crawling

Create an index by specifying a base url from which to start crawling (the indexer will follow the links to build its content). The base url should be cocoon-view aware of content-labels links, and content. For example you might use the base URL http://localhost:8888/blocks/cocoon-lucene-sample/welcome

This following page allows you to create an index, named index.


Create an index by specifying a base url from which to start crawling (the indexer will follow the links to build its content). The base url should be cocoon-view aware of content-labels links, and content. For example you might use the base URL http://localhost:8888/blocks/cocoon-core-main-sample/

This following page allows you to create2 an index, named index2.

Creating Index By Transformer

This transformer reads a document with elements in the namespace http://apache.org/cocoon/lucene/1.0, and creates a new Lucene Index, or updates an existing one.

This following page allows you to create an index, named index-transformer.

Searching

If you have created a Lucene index, you can search the created index.

Searching Index

Enter a query and search the Lucene index that you have created - using Cocoon Generators.

Searching Index2

Enter a query and search the Lucene index2 that you have created - using Cocoon Generators.

Searching Index-Transformer

Enter a query and search the Lucene index-transformer that you have created - using Cocoon Generators.

Internals

Cocoon XML search uses the Apache Lucene indexing and search engine. The Cocoon documentation explains how it is implemented within Cocoon. Look behind the scenes of this example to find out more.