You can get a histogram representation of the number of jobs associated with a given search. A search request, with histogram facets set, returns the search results and a count of all the jobs that match a particular query, broken down by the requested searchType.
For example, a histogram search could return the number of jobs per employment type (full-time, part-time, and so on) from a customer's set of jobs.
The Cloud Talent Solution Beta release (v3p1beta1) allows you to define histograms in a less structured, more flexible, and more intuitive way. The histogram representations do not change.
Benefits
The new structure of the histogram queries offers developers more intuitive ways of defining histogram requests, while also providing more clarity into the definition of buckets, ranges, etc.
Usage
The new histogram part of the search query replaces the old structured fields for defining the histogram.
Code Samples
The following code sample returns histogram results.
The histogramQuery
field is now a single string field that is an expression
that defines the histogram. For details on the functions available for
histogram queries, see HistogramQuery
.
Java
For more on installing and creating a Cloud Talent Solution client, refer to Cloud Talent Solution Client Libraries.
Python
For more on installing and creating a Cloud Talent Solution client, refer to Cloud Talent Solution Client Libraries.