public class FacetResults extends Object
| Constructor and Description |
|---|
FacetResults(List<Map<String,Object>> docs,
List<String> facetFields,
List<String> pivotFields,
Map<String,Object> facetFieldsFromResults,
Map<String,Object> facetPivotFromResults)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static FacetResults |
emptyResults()
A method for getting an empty facet result.
|
Map<String,Object> |
getAggregation()
Get the facetAggregations.
|
List<Map<String,Object>> |
getDocs()
Get the documents.
|
Map<String,Object> |
getPivotAggregation()
A method to return the first aggregation of the first field for the first pivot.field.
|
Map<String,Object> |
getPivotAggregation(String fpf) |
Map<String,Integer> |
getPivotAggregation(String fpf,
List<String> fieldsFilter)
Return the aggregate with field matching.
|
public FacetResults(List<Map<String,Object>> docs, List<String> facetFields, List<String> pivotFields, Map<String,Object> facetFieldsFromResults, Map<String,Object> facetPivotFromResults)
docs - the list of documentsfacetFields - the input list of facetspivotFields - the input list of facet pivot fieldsfacetFieldsFromResults - the facet field results fetched from the data servicefacetPivotFromResults - the pivot field results fetched from the data servicepublic Map<String,Object> getPivotAggregation()
public Map<String,Object> getPivotAggregation(String fpf)
fpf - the facet.pivot fieldpublic Map<String,Integer> getPivotAggregation(String fpf, List<String> fieldsFilter)
fpf - the facet.pivot field used in the searchfieldsFilter - a list ofpublic Map<String,Object> getAggregation()
public static FacetResults emptyResults()
"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"