public class FacetResults
extends java.lang.Object
Constructor and Description |
---|
FacetResults(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> docs,
java.util.List<java.lang.String> facetFields,
java.util.List<java.lang.String> pivotFields,
java.util.Map<java.lang.String,java.lang.Object> facetFieldsFromResults,
java.util.Map<java.lang.String,java.lang.Object> facetPivotFromResults)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static FacetResults |
emptyResults()
A method for getting an empty facet result.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAggregation()
Get the facetAggregations.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getDocs()
Get the documents.
|
java.util.Map<java.lang.String,java.lang.Object> |
getPivotAggregation()
A method to return the first aggregation of the first field for the first pivot.field.
|
java.util.Map<java.lang.String,java.lang.Object> |
getPivotAggregation(java.lang.String fpf) |
java.util.Map<java.lang.String,java.lang.Integer> |
getPivotAggregation(java.lang.String fpf,
java.util.List<java.lang.String> fieldsFilter)
Return the aggregate with field matching.
|
public FacetResults(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> docs, java.util.List<java.lang.String> facetFields, java.util.List<java.lang.String> pivotFields, java.util.Map<java.lang.String,java.lang.Object> facetFieldsFromResults, java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,java.lang.Object> getPivotAggregation()
public java.util.Map<java.lang.String,java.lang.Object> getPivotAggregation(java.lang.String fpf)
fpf
- the facet.pivot fieldpublic java.util.Map<java.lang.String,java.lang.Integer> getPivotAggregation(java.lang.String fpf, java.util.List<java.lang.String> fieldsFilter)
fpf
- the facet.pivot field used in the searchfieldsFilter
- a list ofpublic java.util.Map<java.lang.String,java.lang.Object> getAggregation()
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getDocs()
public static FacetResults emptyResults()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"