public class FacetHelper extends Object
Modifier | Constructor and Description |
---|---|
protected |
FacetHelper()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static Facet |
dateRange(String name,
String field,
String dateFormat,
List<RangeFacetValue> ranges)
Create a date range facet
|
static Facet |
filters(String name,
Map<String,Query> filters)
Create a filters facet
|
static Facet |
terms(String name,
String field,
Integer size,
FacetOrder order)
Create a facet
|
public static final Facet terms(String name, String field, Integer size, FacetOrder order) throws InvalidCreateOperationException
name
- name of the facetfield
- field of facet datasize
- size of the facetorder
- order of the facetInvalidCreateOperationException
- when creating facet errorspublic static final Facet dateRange(String name, String field, String dateFormat, List<RangeFacetValue> ranges) throws InvalidCreateOperationException
name
- name of the facetfield
- field of facet datadateFormat
- the date format for the ranges of the facetranges
- InvalidCreateOperationException
public static final Facet filters(String name, Map<String,Query> filters) throws InvalidCreateOperationException
name
- name of the facetfilters
- map of named filer queriesInvalidCreateOperationException
- when creating facet errorsCopyright © 2018 Vitam. All rights reserved.