|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.indexing.Indexer uk.ac.gla.terrier.indexing.BlockIndexer
public class BlockIndexer
An indexer that saves block information for the indexed terms. Block information is usualy recorded in terms of relative term positions (position 1, positions 2, etc), however, since 2.2, Terrier supports the presence of "marker terms" during indexing which are used to increment the block counter. Properties:
Markered Blocks
Markers are terms (artificially inserted or otherwise into the term stream that are used to denote when the block counter should
be incremented. This functionality is enabled using the block.delimiters.enabled property, while the terms are specified using a comma delimited fashion with the
block.delimiters property. The following lists the properties:
Constructor Summary | |
---|---|
BlockIndexer(java.lang.String pathname,
java.lang.String prefix)
Constructs an instance of this class, where the created data structures are stored in the given path, with the given prefix on the filenames. |
Method Summary | |
---|---|
void |
createDirectIndex(Collection[] collections)
For the given collection, it iterates through the documents and creates the direct index, document index and lexicon, using information about blocks and possibly fields. |
void |
createInvertedIndex()
Creates the inverted index from the already created direct index, document index and lexicon. |
Methods inherited from class uk.ac.gla.terrier.indexing.Indexer |
---|
index, isUTFIndexing, main, merge, merge, useFieldInformation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockIndexer(java.lang.String pathname, java.lang.String prefix)
pathname
- String the path in which the created data structures will be savedprefix
- String the prefix on the filenames of the created data structuresMethod Detail |
---|
public void createDirectIndex(Collection[] collections)
createDirectIndex
in class Indexer
collections
- Collection[] the collection to index.Indexer.createDirectIndex(uk.ac.gla.terrier.indexing.Collection[])
public void createInvertedIndex()
createInvertedIndex
in class Indexer
Indexer.createInvertedIndex()
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |