Package org.terrier.matching.taat
Class Full
- java.lang.Object
-
- org.terrier.matching.BaseMatching
-
- org.terrier.matching.taat.Full
-
- All Implemented Interfaces:
Matching
public class Full extends BaseMatching
An exhaustive TAAT approach for matching documents to a query. This Matching strategy uses the PostingListManager for opening and scoring postings.- Since:
- 3.0
- Author:
- Nicola Tonellotto, Craig Macdonald
- See Also:
PostingListManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.terrier.matching.BaseMatching
BaseMatching.MatchingState
-
-
Field Summary
-
Fields inherited from class org.terrier.matching.BaseMatching
BASE_MATCHING_TAG, collectionStatistics, documentModifiers, dsmNamespace, IGNORE_LOW_IDF_TERMS, index, invertedIndex, lexicon, logger, MATCH_EMPTY_QUERY, NONMATCHING_TAG
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assignScores(BaseMatching.MatchingState state, int i, AccumulatorResultSet rs, IterablePosting postings)
java.lang.String
getInfo()
Return a human readable description of this Matching classprotected void
initialisePostings(BaseMatching.MatchingState plm)
ResultSet
match(java.lang.String queryNumber, MatchingQueryTerms queryTerms)
Get a ResultSet for the given query terms.-
Methods inherited from class org.terrier.matching.BaseMatching
finalise, initialise, initialiseState, setCollectionStatistics
-
-
-
-
Constructor Detail
-
Full
public Full(Index index)
Create a new Matching instance based on the specified index
-
-
Method Detail
-
getInfo
public java.lang.String getInfo()
Return a human readable description of this Matching class- Specified by:
getInfo
in interfaceMatching
- Specified by:
getInfo
in classBaseMatching
-
match
public ResultSet match(java.lang.String queryNumber, MatchingQueryTerms queryTerms) throws java.io.IOException
Get a ResultSet for the given query terms.- Specified by:
match
in interfaceMatching
- Specified by:
match
in classBaseMatching
- Parameters:
queryNumber
- - some ID of the queryqueryTerms
- - query terms to match- Returns:
- ResultSet - the matched results
- Throws:
java.io.IOException
- if a problem occurs during matching
-
assignScores
protected void assignScores(BaseMatching.MatchingState state, int i, AccumulatorResultSet rs, IterablePosting postings) throws java.io.IOException
- Throws:
java.io.IOException
-
initialisePostings
protected void initialisePostings(BaseMatching.MatchingState plm)
- Overrides:
initialisePostings
in classBaseMatching
-
-