Package org.terrier.realtime.matching
Class IncrementalSelectiveMostRecent
- java.lang.Object
-
- org.terrier.realtime.matching.IncrementalSelectiveMatching
-
- org.terrier.realtime.matching.IncrementalSelectiveMostRecent
-
public class IncrementalSelectiveMostRecent extends IncrementalSelectiveMatching
This class enables search over a subset of the shards in an incremental index. This is useful if the shard boundaries are relevant, e.g. represent time boundaries.Properties
- incremental.selectivematch.mostrecent - number of indices to select, defaults to 6
- Since:
- 4.0
- Author:
- Richard McCreadie
-
-
Constructor Summary
Constructors Constructor Description IncrementalSelectiveMostRecent()
Returns only the incremental.selectivematch.mostrecent indices.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Index>
getSelectedIndices(java.util.List<Index> indices)
Returns only the incremental.selectivematch.mostrecent indices.-
Methods inherited from class org.terrier.realtime.matching.IncrementalSelectiveMatching
get
-
-
-
-
Method Detail
-
getSelectedIndices
public java.util.List<Index> getSelectedIndices(java.util.List<Index> indices)
Returns only the incremental.selectivematch.mostrecent indices. (default: 6 most recent) incremental.selectivematch.mostrecent is checked during each call such that it can be updated on the fly.- Overrides:
getSelectedIndices
in classIncrementalSelectiveMatching
- Parameters:
indices
-- Returns:
- only the N most indices, as defined by the incremental.selectivematch.mostrecent property
-
-