Skip to content

Commit 2a1e27c

Browse files
Merge pull request #3251 from HeidiSteen/heidist-facets
misc edits
2 parents 2cf10ab + 8923e4f commit 2a1e27c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/search/search-faceted-navigation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Recall that facets are calculated from results in a query response. You only get
161161

162162
1. Facets are configured at query-time. Use the [Search POST](/rest/api/searchservice/documents/search-post) or [Search GET](/rest/api/searchservice/documents/search-get) request, or an equivalent Azure SDK API, to specify facets.
163163

164-
1. Set facet query parameters in the request. In Search POST, facets are an array of facet expressions to apply to the search query. Each facet expression contains a field name, optionally followed by a comma-separated list of name:value pairs. Valid facet parameters are `count`, `sort`, `values`, `interval`, and `timeoffset`.
164+
1. Set facet query parameters in the request. In Search POST, `facets` are an array of facet expressions to apply to the search query. Each facet expression contains a field name, optionally followed by a comma-separated list of name-value pairs. Valid facet parameters are `count`, `sort`, `values`, `interval`, and `timeoffset`.
165165

166166
| Facet parameter | Description and usage |
167167
|-----------------|-----------------------|
@@ -200,9 +200,9 @@ Each range is built using 0 as a starting point, a value from the list as an end
200200

201201
### Distinct values example
202202

203-
You can formulate a query that returns a distinct value count for each "facetable" field. This example formulates a query that sets `top` to zero, returning just the counts, with no results.
203+
You can formulate a query that returns a distinct value count for each "facetable" field. This example formulates an empty or unqualified query (`"search": "*"`) that matches on all documents, but by setting `top` to zero, you get just the counts, with no results.
204204

205-
For brevity, it includes just two fields marked as "facetable" in the hotels sample index.
205+
For brevity, this query includes just two fields marked as "facetable" in the hotels sample index.
206206

207207
```http
208208
POST https://{{service_name}}.search.windows.net/indexes/hotels/docs/search?api-version={{api_version}}

0 commit comments

Comments
 (0)