Class LucenePositionalIndex<C>
java.lang.Object
es.uam.eps.ir.relison.content.index.AbstractIndex<C>
es.uam.eps.ir.relison.content.index.lucene.LuceneIndex<C>
es.uam.eps.ir.relison.content.index.lucene.LucenePositionalIndex<C>
- Type Parameters:
C
- type of the contents.
- All Implemented Interfaces:
DocumentMap<C>
,Index<C>
public class LucenePositionalIndex<C> extends LuceneIndex<C>
Lucene implementation of a positional index.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LucenePositionalIndex(java.lang.String path, org.ranksys.formats.parsing.Parser<C> cParser)
Constructor. -
Method Summary
Modifier and Type Method Description PostingsList
getPostings(java.lang.String term)
Obtains the posting list of a term.Methods inherited from class es.uam.eps.ir.relison.content.index.lucene.LuceneIndex
getAllTerms, getDocFreq, getTotalFreq, numDocs
Methods inherited from class es.uam.eps.ir.relison.content.index.AbstractIndex
getContent, getContentId, loadContents
-
Constructor Details
-
LucenePositionalIndex
public LucenePositionalIndex(java.lang.String path, org.ranksys.formats.parsing.Parser<C> cParser) throws java.io.IOExceptionConstructor.- Parameters:
path
- Path to the index.cParser
- content parser.- Throws:
java.io.IOException
- if something fails while reading the index.
-
-
Method Details
-
getPostings
Description copied from interface:Index
Obtains the posting list of a term.- Specified by:
getPostings
in interfaceIndex<C>
- Overrides:
getPostings
in classLuceneIndex<C>
- Parameters:
term
- the term to look up.- Returns:
- the posting list of the term.
- Throws:
java.io.IOException
- if something fails while reading the posting list.
-