public class Full extends BaseMatching
PostingListManager
collectionStatistics, documentModifiers, dsmNamespace, IGNORE_LOW_IDF_TERMS, index, invertedIndex, lexicon, logger, MATCH_EMPTY_QUERY, numberOfRetrievedDocuments, queryTermsToMatchList, resultSet, RETRIEVED_SET_SIZE, totalTime, wm
Constructor and Description |
---|
Full(Index index)
Create a new Matching instance based on the specified index
|
Modifier and Type | Method and Description |
---|---|
protected void |
assignScore(int i,
CandidateResult cc)
assign the score for this posting to this candidate result.
|
String |
getInfo()
Return a human readable description of this Matching class
|
protected void |
initialisePostings(MatchingQueryTerms queryTerms) |
protected CandidateResult |
makeCandidateResult(int currentDocId) |
protected CandidateResultSet |
makeResultSet(Queue<CandidateResult> candidateResultList) |
ResultSet |
match(String queryNumber,
MatchingQueryTerms queryTerms)
Get a ResultSet for the given query terms.
|
protected int |
selectMinimumDocId(it.unimi.dsi.fastutil.longs.LongPriorityQueue postingHeap)
returns the docid of the lowest posting
|
finalise, getTotalTime, initialise, setCollectionStatistics, updateEndTime, updateStartTime
public Full(Index index)
protected void initialisePostings(MatchingQueryTerms queryTerms)
initialisePostings
in class BaseMatching
public ResultSet match(String queryNumber, MatchingQueryTerms queryTerms) throws IOException
match
in interface Matching
match
in class BaseMatching
queryNumber
- - some ID of the queryqueryTerms
- - query terms to matchIOException
- if a problem occurs during matchingprotected CandidateResultSet makeResultSet(Queue<CandidateResult> candidateResultList)
protected CandidateResult makeCandidateResult(int currentDocId)
protected void assignScore(int i, CandidateResult cc) throws IOException
i
- which query term index this representscc
- the candidate result object for this documentIOException
protected final int selectMinimumDocId(it.unimi.dsi.fastutil.longs.LongPriorityQueue postingHeap)
public String getInfo()
getInfo
in interface Matching
getInfo
in class BaseMatching
Terrier 4.0. Copyright © 2004-2014 University of Glasgow