Class 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IncrementalSelectiveMostRecent

        public IncrementalSelectiveMostRecent()
        Returns only the incremental.selectivematch.mostrecent indices. (default: 6 most recent)
    • 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 class IncrementalSelectiveMatching
        Parameters:
        indices -
        Returns:
        only the N most indices, as defined by the incremental.selectivematch.mostrecent property