Last change
on this file since 6736 was 6736, checked in by cs025, 20 years ago |
Added factory method, abstract indexer. Also modified Manager and
Interface to support naming of indexers, and MG and MGPP altered
accordingly.
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
996 bytes
|
Line | |
---|
1 | package org.greenstone.gsdl3.gs3build.indexers;
|
---|
2 |
|
---|
3 | import org.greenstone.gsdl3.gs3build.doctypes.DocumentID;
|
---|
4 | import org.greenstone.gsdl3.gs3build.doctypes.DocumentInterface;
|
---|
5 |
|
---|
6 | public 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 String getIndexType();
|
---|
15 | public String getName();
|
---|
16 | public int getNumberOfPasses();
|
---|
17 | // TODO: add a function call to provide appropriate XML for the service description
|
---|
18 | public void tidyup();
|
---|
19 |
|
---|
20 | public boolean configure(String label, String value);
|
---|
21 | public boolean configure(org.w3c.dom.Node node);
|
---|
22 | public boolean addIndex(String name, String level, String field);
|
---|
23 |
|
---|
24 | public boolean startPass(int passNumber);
|
---|
25 | public boolean indexDocument(DocumentID id, DocumentInterface document);
|
---|
26 | public boolean endPass(int passNumber);
|
---|
27 |
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.