public class TRECIndexing extends BatchIndexing
Properties:
BatchIndexing.Command
Modifier and Type | Field and Description |
---|---|
protected Collection |
collectionTREC
The collection to index.
|
blocks, logger, path, prefix
Constructor and Description |
---|
TRECIndexing()
A default constructor that initialised the data structures
to use for indexing.
|
TRECIndexing(String _path,
String _prefix) |
TRECIndexing(String _path,
String _prefix,
Collection c)
A constructor that initialised the data structures
to use for indexing.
|
TRECIndexing(String _path,
String _prefix,
String collectionSpec)
A constructor that initialised the data structures
to use for indexing.
|
Modifier and Type | Method and Description |
---|---|
void |
index()
Calls the method index(Collection[]) of the
class Indexer in order to build the data
structures for a set of collections.
|
protected Collection |
loadCollection(String collectionSpec) |
protected Indexer |
loadIndexer(String pa,
String pr) |
static void |
main(String[] args)
Used for testing purposes.
|
protected Collection collectionTREC
public TRECIndexing(String _path, String _prefix, String collectionSpec)
_path
- Absolute path to where the index should be created_prefix
- Prefix of the index files, usually "data"public TRECIndexing(String _path, String _prefix, Collection c)
_path
- Absolute path to where the index should be created_prefix
- Prefix of the index files, usually "data"public TRECIndexing()
protected Collection loadCollection(String collectionSpec)
public void index()
index
in class BatchIndexing
public static void main(String[] args)
args
- the command line arguments.Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow