source: trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/indexers/IndexerInterface.java@ 6349

Last change on this file since 6349 was 6349, checked in by cs025, 20 years ago

Modified indexerinterface to allow easier configuration, improved MG section handling.

  • Property svn:keywords set to Author Date Id Revision
File size: 778 bytes
Line 
1package org.greenstone.gsdl3.gs3build.indexers;
2
3import org.greenstone.gsdl3.gs3build.doctypes.DocumentID;
4import org.greenstone.gsdl3.gs3build.doctypes.DocumentInterface;
5
6public interface IndexerInterface
7{
8 public static final String DOCUMENT_LEVEL = "document";
9 public static final String SECTION_LEVEL = "section";
10 public static final String PARAGRAPH_LEVEL = "paragraph";
11
12 public static final String GS2_INDEX_LABEL = "Index";
13
14 public boolean configure(String label, String value);
15 public boolean addIndex(String level, String field);
16 public boolean startPass(int passNumber);
17 public boolean indexDocument(DocumentID id, DocumentInterface document);
18 public boolean endPass(int passNumber);
19 public void tidyup();
20 public int getNumberOfPasses();
21}
Note: See TracBrowser for help on using the repository browser.