org.creativecommons.nutch
Class CCIndexingFilter
java.lang.Object
org.creativecommons.nutch.CCIndexingFilter
- All Implemented Interfaces:
- IndexingFilter
- public class CCIndexingFilter
- extends Object
- implements IndexingFilter
Adds basic searchable fields to a document.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final Logger LOG
FIELD
public static String FIELD
- The name of the document field we use.
CCIndexingFilter
public CCIndexingFilter()
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.