org.creativecommons.nutch
Class CCIndexingFilter

java.lang.Object
  extended byorg.creativecommons.nutch.CCIndexingFilter
All Implemented Interfaces:
IndexingFilter

public class CCIndexingFilter
extends Object
implements IndexingFilter

Adds basic searchable fields to a document.


Field Summary
static String FIELD
          The name of the document field we use.
static Logger LOG
           
 
Fields inherited from interface net.nutch.indexer.IndexingFilter
X_POINT_ID
 
Constructor Summary
CCIndexingFilter()
           
 
Method Summary
 void addUrlFeatures(Document doc, String urlString)
          Add the features represented by a license URL.
 Document filter(Document doc, Parse parse, FetcherOutput fo)
          Adds fields or otherwise modifies the document that will be indexed for a parse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final Logger LOG

FIELD

public static String FIELD
The name of the document field we use.

Constructor Detail

CCIndexingFilter

public CCIndexingFilter()
Method Detail

filter

public Document filter(Document doc,
                       Parse parse,
                       FetcherOutput fo)
                throws IndexingException
Description copied from interface: IndexingFilter
Adds fields or otherwise modifies the document that will be indexed for a parse.

Specified by:
filter in interface IndexingFilter
Throws:
IndexingException

addUrlFeatures

public void addUrlFeatures(Document doc,
                           String urlString)
Add the features represented by a license URL. Urls are of the form "http://creativecommons.org/licenses/xx-xx/xx/xx", where "xx" names a license feature.



Copyright © 2004 The Nutch Organization.