Skip to content

Commit d7768f2

Browse files
committed
incorporated feedback
1 parent 3c3f884 commit d7768f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/search/search-faceted-navigation-examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ To return this hierarchy, create a query where Category and Rating are siblings
451451
}
452452
```
453453

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 `;`.
455455

456456
```json
457457
{
@@ -484,7 +484,7 @@ Facet filtering enables you to constrain the facet values returned to those matc
484484
* `includeTermFilter` filters the facet values to those that match the regular expression
485485
* `excludeTermFilter` filters the facet values to those that don't match the regular expression
486486

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`.
488488

489489
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.
490490

@@ -604,7 +604,7 @@ Starting in [2025-03-01-preview REST API](/rest/api/searchservice/operation-grou
604604

605605
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.
606606

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.
608608

609609
You can sum any facetable field of a numeric data type (except vectors and geographic coordinates).
610610

0 commit comments

Comments
 (0)