Skip to content

Commit

Permalink
docs(atomic,headless): update filter facet count documentation (#4980)
Browse files Browse the repository at this point in the history
[DOC-15519](https://coveord.atlassian.net/browse/DOC-15519)

Based on the discussion in DOC-15519, a note was added to the
filterFacetCount field to caution that the number shown was only an
estimate and could display incorrect values. Occurrences of the field
have been updated in both Headless and Atomic.


[DOC-15519]:
https://coveord.atlassian.net/browse/DOC-15519?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: GitHub Actions Bot <>
  • Loading branch information
jsmith2-coveo authored Feb 21, 2025
1 parent 3f264d0 commit a783022
Show file tree
Hide file tree
Showing 24 changed files with 92 additions and 34 deletions.
44 changes: 22 additions & 22 deletions packages/atomic/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export namespace Components {
*/
"filterByBasePath": boolean;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount": boolean;
/**
Expand Down Expand Up @@ -237,7 +237,7 @@ export namespace Components {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount": boolean;
/**
Expand Down Expand Up @@ -856,7 +856,7 @@ export namespace Components {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount": boolean;
/**
Expand Down Expand Up @@ -1165,7 +1165,7 @@ export namespace Components {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount": boolean;
/**
Expand Down Expand Up @@ -1331,7 +1331,7 @@ export namespace Components {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount": boolean;
/**
Expand Down Expand Up @@ -1613,7 +1613,7 @@ export namespace Components {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount": boolean;
/**
Expand Down Expand Up @@ -1916,7 +1916,7 @@ export namespace Components {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount": boolean;
/**
Expand Down Expand Up @@ -2426,7 +2426,7 @@ export namespace Components {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount": boolean;
/**
Expand Down Expand Up @@ -2489,7 +2489,7 @@ export namespace Components {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount": boolean;
/**
Expand Down Expand Up @@ -3499,7 +3499,7 @@ export namespace Components {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount": boolean;
/**
Expand Down Expand Up @@ -3776,7 +3776,7 @@ export namespace Components {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount": boolean;
/**
Expand Down Expand Up @@ -6378,7 +6378,7 @@ declare namespace LocalJSX {
*/
"filterByBasePath"?: boolean;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount"?: boolean;
/**
Expand Down Expand Up @@ -6466,7 +6466,7 @@ declare namespace LocalJSX {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount"?: boolean;
/**
Expand Down Expand Up @@ -7053,7 +7053,7 @@ declare namespace LocalJSX {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount"?: boolean;
/**
Expand Down Expand Up @@ -7361,7 +7361,7 @@ declare namespace LocalJSX {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount"?: boolean;
/**
Expand Down Expand Up @@ -7511,7 +7511,7 @@ declare namespace LocalJSX {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount"?: boolean;
/**
Expand Down Expand Up @@ -7781,7 +7781,7 @@ declare namespace LocalJSX {
*/
"field"?: string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount"?: boolean;
/**
Expand Down Expand Up @@ -8071,7 +8071,7 @@ declare namespace LocalJSX {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount"?: boolean;
/**
Expand Down Expand Up @@ -8567,7 +8567,7 @@ declare namespace LocalJSX {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount"?: boolean;
/**
Expand Down Expand Up @@ -8630,7 +8630,7 @@ declare namespace LocalJSX {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount"?: boolean;
/**
Expand Down Expand Up @@ -9587,7 +9587,7 @@ declare namespace LocalJSX {
*/
"field": string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount"?: boolean;
/**
Expand Down Expand Up @@ -9874,7 +9874,7 @@ declare namespace LocalJSX {
*/
"field"?: string;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
* Whether to exclude the parents of folded results when estimating the result count for each facet value. Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
"filterFacetCount"?: boolean;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ export class AtomicInsightFacet
@Prop({reflect: true}) public headingLevel = 0;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
@Prop({reflect: true}) public filterFacetCount = true;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ export class AtomicInsightNumericFacet
@Prop({reflect: true}) public headingLevel = 0;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
@Prop({reflect: true}) public filterFacetCount = true;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export class AtomicInsightTimeframeFacet
@Prop({reflect: true}) public headingLevel = 0;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
@Prop({reflect: true}) public filterFacetCount = true;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ export class AtomicCategoryFacet implements InitializableComponent {
@Prop({reflect: true}) public headingLevel = 0;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
@Prop({reflect: true}) public filterFacetCount = true;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ export class AtomicColorFacet implements InitializableComponent {
@Prop({reflect: true}) public headingLevel = 0;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
@Prop({reflect: true}) public filterFacetCount = true;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ export class AtomicFacet implements InitializableComponent {
@Prop({reflect: true}) public headingLevel = 0;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
@Prop({reflect: true}) public filterFacetCount = true;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ export class AtomicNumericFacet implements InitializableComponent {
@Prop({reflect: true}) public headingLevel = 0;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
@Prop({reflect: true}) public filterFacetCount = true;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ export class AtomicRatingFacet implements InitializableComponent {
@Prop({reflect: true}) public headingLevel = 0;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
@Prop({reflect: true}) public filterFacetCount = true;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ export class AtomicRatingRangeFacet implements InitializableComponent {
@Prop({reflect: true}) public headingLevel = 0;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
@Prop({reflect: true}) public filterFacetCount = true;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ export class AtomicSegmentedFacet implements InitializableComponent {

/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
@Prop({reflect: true}) public filterFacetCount = true;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ export class AtomicTimeframeFacet implements InitializableComponent {
@Prop({reflect: true}) public headingLevel = 0;
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*/
@Prop({reflect: true}) public filterFacetCount = true;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,16 @@ export interface CategoryFacetOptions {
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*
* @defaultValue `true`
*/
filterFacetCount?: boolean;

/**
* The maximum number of results to scan in the index to ensure that the facet lists all of the potential facet values.
*
* **Note:** A high `injectionDepth` may reduce facet request performance.
* Note: A high `injectionDepth` may reduce facet request performance.
*
* Minimum: `0`
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ export interface FacetOptions {
/**
* Whether to exclude the parents of folded results when estimating the result count for each facet value.
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*
* @defaultValue `true`
*/
filterFacetCount?: boolean;

/**
* The maximum number of results to scan in the index to ensure that the facet lists all potential facet values.
*
* Note: A high injectionDepth may negatively impact the facet request performance.
* Note: A high `injectionDepth` may negatively impact the facet request performance.
*
* Minimum: `0`
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@ export interface DateFilterOptions {
/**
* Whether to exclude folded result parents when estimating the result count for each facet value.
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*
* @defaultValue `true`
*/
filterFacetCount?: boolean;

/**
* The maximum number of results to scan in the index to ensure that the facet lists all potential facet values.
*
* Note: A high injectionDepth may negatively impact the facet request performance.
* Note: A high `injectionDepth` may negatively impact the facet request performance.
*
* Minimum: `0`
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,16 @@ export interface DateFacetOptions {
/**
* Whether to exclude folded result parents when estimating the result count for each facet value.
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*
* @defaultValue `true`
*/
filterFacetCount?: boolean;

/**
* The maximum number of results to scan in the index to ensure that the facet lists all potential facet values.
*
* Note: A high injectionDepth may negatively impact the facet request performance.
* Note: A high `injectionDepth` may negatively impact the facet request performance.
*
* Minimum: `0`
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@ export interface NumericFilterOptions {
/**
* Whether to exclude folded result parents when estimating the result count for each facet value.
*
* Note: Resulting count is only an estimation, in some cases this value could be incorrect.
*
* @defaultValue `true`
*/
filterFacetCount?: boolean;

/**
* The maximum number of results to scan in the index to ensure that the facet lists all potential facet values.
*
* Note: A high injectionDepth may negatively impact the facet request performance.
* Note: A high `injectionDepth` may negatively impact the facet request performance.
*
* Minimum: `0`
*
Expand Down
Loading

0 comments on commit a783022

Please sign in to comment.