|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.matching.BaseMatching org.terrier.matching.daat.Full
public class Full
Performs the matching of documents with a query, by first assigning scores to documents for each query term and modifying these scores with the appropriate modifiers. Documents are matched in a document-at-a-time fashion. In particular, the posting lists for all query terms are processed in parallel (but without threads). In comparision to TAAT matching, this reduces the memory consumption during matching, as documents which will not make the final retrieved set are discarded. After matching, the document score modifiers are applied if necessary. This Matching strategy uses the PostingListManager for opening and scoring postings.
PostingListManager
Field Summary |
---|
Fields inherited from class org.terrier.matching.BaseMatching |
---|
collectionStatistics, documentModifiers, dsmNamespace, IGNORE_LOW_IDF_TERMS, index, invertedIndex, lexicon, logger, MATCH_EMPTY_QUERY, numberOfRetrievedDocuments, queryTermsToMatchList, resultSet, RETRIEVED_SET_SIZE, totalTime, wm |
Constructor Summary | |
---|---|
Full(Index index)
Create a new Matching instance based on the specified index |
Method Summary | |
---|---|
protected void |
assignScore(int i,
CandidateResult cc)
assign the score for this posting to this candidate result. |
java.lang.String |
getInfo()
Return a human readable description of this Matching class |
protected void |
initialisePostings(MatchingQueryTerms queryTerms)
|
ResultSet |
match(java.lang.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 |
Methods inherited from class org.terrier.matching.BaseMatching |
---|
finalise, getTotalTime, initialise, setCollectionStatistics, updateEndTime, updateStartTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Full(Index index)
Method Detail |
---|
protected void initialisePostings(MatchingQueryTerms queryTerms)
initialisePostings
in class BaseMatching
public ResultSet match(java.lang.String queryNumber, MatchingQueryTerms queryTerms) throws java.io.IOException
match
in interface Matching
match
in class BaseMatching
queryNumber
- - some ID of the queryqueryTerms
- - query terms to match
java.io.IOException
- if a problem occurs during matchingprotected void assignScore(int i, CandidateResult cc) throws java.io.IOException
i
- which query term index this representscc
- the candidate result object for this document
java.io.IOException
protected final int selectMinimumDocId(it.unimi.dsi.fastutil.longs.LongPriorityQueue postingHeap)
public java.lang.String getInfo()
getInfo
in interface Matching
getInfo
in class BaseMatching
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |