Companion

object Companion

Functions

Link copied to clipboard
fun date(field: String, ranges: List<DateRange>, size: Int = ranges.size, name: String = field): DateFacet

Counts the search results whose value for field is within one of the pre-defined ranges.

Link copied to clipboard
fun numeric(field: String, ranges: List<NumericRange>, size: Int = ranges.size, name: String = field): NumericFacet

Counts the search results whose value for field is within one of the pre-defined ranges.

Link copied to clipboard
fun term(field: String, size: Int, name: String = field): TermFacet

Finds the size most frequent values for field among all documents matching the search query.