Class GroupedSearchRequest

java.lang.Object
org.apache.maven.index.AbstractSearchRequest
org.apache.maven.index.GroupedSearchRequest

public class GroupedSearchRequest extends AbstractSearchRequest
A grouped search request. This kinds of request is not pageable, since order of incoming hits are not defined, hence paging between Document hits makes no sense, would produce unpredictable (and probably not meaningful) results.
See Also:
  • Constructor Details

    • GroupedSearchRequest

      public GroupedSearchRequest(org.apache.lucene.search.Query query, Grouping grouping)
    • GroupedSearchRequest

      public GroupedSearchRequest(org.apache.lucene.search.Query query, Grouping grouping, Comparator<String> groupKeyComparator)
    • GroupedSearchRequest

      public GroupedSearchRequest(org.apache.lucene.search.Query query, Grouping grouping, IndexingContext context)
    • GroupedSearchRequest

      public GroupedSearchRequest(org.apache.lucene.search.Query query, Grouping grouping, Comparator<String> groupKeyComparator, IndexingContext context)
  • Method Details

    • getGrouping

      public Grouping getGrouping()
    • setGrouping

      public void setGrouping(Grouping grouping)
    • getGroupKeyComparator

      public Comparator<String> getGroupKeyComparator()
    • setGroupKeyComparator

      public void setGroupKeyComparator(Comparator<String> groupKeyComparator)