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
Copy file name to clipboardExpand all lines: articles/search/search-faceted-navigation-examples.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -451,7 +451,7 @@ To return this hierarchy, create a query where Category and Rating are siblings
451
451
}
452
452
```
453
453
454
-
If you remove the innermost parentheses, Category and Rating are no longer siblings.
454
+
If you remove the innermost parentheses, Category and Rating are no longer siblings because the precedence rules mean that the `>` operator is evaluated before `;`.
455
455
456
456
```json
457
457
{
@@ -484,7 +484,7 @@ Facet filtering enables you to constrain the facet values returned to those matc
484
484
*`includeTermFilter` filters the facet values to those that match the regular expression
485
485
*`excludeTermFilter` filters the facet values to those that don't match the regular expression
486
486
487
-
If a facet string satisfies both conditions, the `excludeTermFilter` takes precedence because the set of bucket strings are first evaluated with `includeTermFilter` and then excluded with `excludeTermFilter`.
487
+
If a facet string satisfies both conditions, the `excludeTermFilter` takes precedence because the set of bucket strings is first evaluated with `includeTermFilter` and then excluded with `excludeTermFilter`.
488
488
489
489
Only those facet values that match the regular expression are returned. You can combine these parameters with other facet options (for example, `count`, `sort`, and [hierarchical faceting](#facet-hierarchy-example)) on string fields.
490
490
@@ -604,7 +604,7 @@ Starting in [2025-03-01-preview REST API](/rest/api/searchservice/operation-grou
604
604
605
605
Facet aggregations allow you to compute metrics from facet values. The aggregation capability works alongside the existing faceting options. The only supported metric is `sum`. Adding `metric: sum` to a numeric facet aggregates all the values of each bucket.
606
606
607
-
You can add a default value if an aggregation is null: `"facets": [ "Rooms/SleepsCount, metric: sum, default:2"]`. If a room has a null value for the Rooms/SleepsCount field, the default substitutes for the missing value.
607
+
You can add a default value to use if a document contains a null for that field: `"facets": [ "Rooms/SleepsCount, metric: sum, default:2"]`. If a room has a null value for the Rooms/SleepsCount field, the default substitutes for the missing value.
608
608
609
609
You can sum any facetable field of a numeric data type (except vectors and geographic coordinates).
0 commit comments