org.ceryle.wiki.search
Class DCLuceneSearchProvider

java.lang.Object
  extended by com.ecyrd.jspwiki.search.LuceneSearchProvider
      extended by org.ceryle.wiki.search.DCLuceneSearchProvider
All Implemented Interfaces:
SearchProvider, WikiProvider

public class DCLuceneSearchProvider
extends LuceneSearchProvider
implements SearchProvider

Extends LuceneSearchProvider to also index available DC-in-XHTML content.

Version:
$Id: DCLuceneSearchProvider.java,v 1.2 2007-06-15 12:10:27 altheim Exp $
Author:
Murray Altheim

Field Summary
static String DC_MAGIC_COOKIE
          Contains the magic cookie "DC" used a class attribute value, signalling that the element contents are a Dublin Core XHTML metadata record.
static String DC_PFX
          Contains the magic cookie "DC_" used a class attribute value prefix, signalling that the element contents are a Dublin Core XHTML metadata field.
static String DCTERMS_PFX
          Contains the magic cookie "DCTERMS_" used a class attribute value prefix, signalling that the element contents are a Dublin Core Terms XHTML metadata field.
static String PROPERTY_PROVIDER_CLASS
          Contains a WikiEngine property identifier for the search provider class.
 
Fields inherited from class com.ecyrd.jspwiki.search.LuceneSearchProvider
FLAG_CONTEXTS, LUCENE_ATTACHMENTS, LUCENE_AUTHOR, LUCENE_ID, LUCENE_OPTIMIZE_COUNT, LUCENE_PAGE_CONTENTS, LUCENE_PAGE_NAME, m_updates, PROP_LUCENE_ANALYZER
 
Fields inherited from interface com.ecyrd.jspwiki.WikiProvider
LATEST_VERSION
 
Constructor Summary
DCLuceneSearchProvider()
          Default constructor.
 
Method Summary
 void initialize(WikiEngine engine, Properties props)
           
protected  void luceneIndexPage(WikiPage page, String text, org.apache.lucene.index.IndexWriter writer)
           
 
Methods inherited from class com.ecyrd.jspwiki.search.LuceneSearchProvider
doFullLuceneReindex, findPages, findPages, getEngine, getProviderInfo, pageRemoved, reindexPage, updateLuceneIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ecyrd.jspwiki.search.SearchProvider
findPages, pageRemoved, reindexPage
 
Methods inherited from interface com.ecyrd.jspwiki.WikiProvider
getProviderInfo
 

Field Detail

DC_MAGIC_COOKIE

public static final String DC_MAGIC_COOKIE
Contains the magic cookie "DC" used a class attribute value, signalling that the element contents are a Dublin Core XHTML metadata record.

See Also:
Constant Field Values

DC_PFX

public static final String DC_PFX
Contains the magic cookie "DC_" used a class attribute value prefix, signalling that the element contents are a Dublin Core XHTML metadata field.

See Also:
Constant Field Values

DCTERMS_PFX

public static final String DCTERMS_PFX
Contains the magic cookie "DCTERMS_" used a class attribute value prefix, signalling that the element contents are a Dublin Core Terms XHTML metadata field.

See Also:
Constant Field Values

PROPERTY_PROVIDER_CLASS

public static final String PROPERTY_PROVIDER_CLASS
Contains a WikiEngine property identifier for the search provider class. The value is "org.ceryle.wiki.search.DCLuceneSearchProvider".

See Also:
Constant Field Values
Constructor Detail

DCLuceneSearchProvider

public DCLuceneSearchProvider()
Default constructor.

Method Detail

initialize

public void initialize(WikiEngine engine,
                       Properties props)
                throws NoRequiredPropertyException,
                       IOException
Specified by:
initialize in interface WikiProvider
Overrides:
initialize in class LuceneSearchProvider
Throws:
NoRequiredPropertyException
IOException

luceneIndexPage

protected void luceneIndexPage(WikiPage page,
                               String text,
                               org.apache.lucene.index.IndexWriter writer)
                        throws IOException
Overrides:
luceneIndexPage in class LuceneSearchProvider
Throws:
IOException


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.