You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The usual purpose of a full-text search engine is to return a small number of documents matching your query.
862
+
863
+
Facets provide aggregated data based on a search query. In the simplest case, a terms facet can return facet counts for various facet values for a specific field. ElasticSearch supports more facet implementations, such as statistical or date histogram facets.
864
+
865
+
The field used for facet calculations must be of type numeric, date/time or be analyzed as a single token - see the Mapping guide for details on the analysis process.
866
+
You can give the facet a custom name and return multiple facets in one request.
Allow to specify field facets that return the N most frequent terms.
872
+
873
+
Ordering: Allow to control the ordering of the terms facets, to be ordered by count, term, reverse_count or reverse_term. The default is count.
874
+
All Terms: Allow to get all the terms in the terms facet, ones that do not match a hit, will have a count of 0. Note, this should not be used with fields that have many terms.
875
+
Excluding Terms: It is possible to specify a set of terms that should be excluded from the terms facet request result.
876
+
Regex Patterns: The terms API allows to define regex expression that will control which terms will be included in the faceted list.
Range facet allow to specify a set of ranges and get both the number of docs (count) that fall within each range, and aggregated data either based on the field, or using another field.
0 commit comments