Class SearchWithSortTask

  • All Implemented Interfaces:
    Cloneable

    public class SearchWithSortTask
    extends ReadTask
    Does sort search on specified field.
    • Constructor Detail

      • SearchWithSortTask

        public SearchWithSortTask​(PerfRunData runData)
    • Method Detail

      • setParams

        public void setParams​(String sortField)
        SortFields: field:type,field:type[,noscore][,nomaxscore]

        If noscore is present, then we turn off score tracking in TopFieldCollector. If nomaxscore is present, then we turn off maxScore tracking in TopFieldCollector.

        name:string,page:int,subject:string

        Overrides:
        setParams in class PerfTask
      • supportsParams

        public boolean supportsParams()
        Description copied from class: PerfTask
        Sub classes that support parameters must override this method to return true.
        Overrides:
        supportsParams in class PerfTask
        Returns:
        true iff this task supports command line params.
      • withRetrieve

        public boolean withRetrieve()
        Description copied from class: ReadTask
        Return true if, with search and results traversing, docs should be retrieved.
        Specified by:
        withRetrieve in class ReadTask
      • withSearch

        public boolean withSearch()
        Description copied from class: ReadTask
        Return true if search should be performed.
        Specified by:
        withSearch in class ReadTask
      • withTraverse

        public boolean withTraverse()
        Description copied from class: ReadTask
        Return true if, with search, results should be traversed.
        Specified by:
        withTraverse in class ReadTask
      • withWarm

        public boolean withWarm()
        Description copied from class: ReadTask
        Return true if warming should be performed.
        Specified by:
        withWarm in class ReadTask