Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Fix issue DATASOLR-323 #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*
* @param <T>
* @author David Webb
* @author masrivas
* @since 2.1.0
*/
public interface FacetQueryResult<T> {
Expand Down Expand Up @@ -55,6 +56,12 @@ public interface FacetQueryResult<T> {
* @since 1.5
*/
Page<FacetFieldEntry> getRangeFacetResultPage(String fieldname);

/**
* @return Collection holding faceting result pages
*/
Collection<Page<FacetFieldEntry>> getFacetRangeResultPages();


/**
* Get Range Facet results for a given field with given name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
* @author Christoph Strobl
* @author Francisco Spaeth
* @author David Webb
* @author masrivas
*/
public class SolrResultPage<T> extends PageImpl<T>
implements FacetPage<T>, HighlightPage<T>, FacetAndHighlightPage<T>, ScoredPage<T>, GroupPage<T>, StatsPage<T> {
Expand Down Expand Up @@ -283,4 +284,9 @@ public Map<String, FieldStatsResult> getFieldStatsResults() {
return this.fieldStatsResults;
}

@Override
public Collection<Page<FacetFieldEntry>> getFacetRangeResultPages() {
return Collections.unmodifiableCollection(this.facetRangeResultPages.values());
}

}