KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > indexer > IndexingFilter


1 /* Copyright (c) 2004 The Nutch Organization. All rights reserved. */
2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */
3
4 package net.nutch.indexer;
5
6 import org.apache.lucene.document.Document;
7 import net.nutch.parse.Parse;
8 import net.nutch.fetcher.FetcherOutput;
9
10 /** Extension point for indexing. Permits one to add metadata to the indexed
11  * fields. All plugins found which implement this extension point are run
12  * sequentially on the parse.
13  */

14 public interface IndexingFilter {
15   /** The name of the extension point. */
16   final static String JavaDoc X_POINT_ID = IndexingFilter.class.getName();
17
18   /** Adds fields or otherwise modifies the document that will be indexed for a
19    * parse. */

20   Document filter(Document doc, Parse parse, FetcherOutput fo)
21     throws IndexingException;
22 }
23
Popular Tags