Skip to content

Commit e4b45df

Browse files
author
Luis Cabrera
authored
Capitalize Preview
1 parent b164693 commit e4b45df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/search/index-similarity-and-scoring.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ By default, the score of a document is calculated based on statistical propertie
4040
If you prefer to compute the score based on the statistical properties across all shards, you can do so by adding *scoringStatistics=global* as a [query parameter](https://docs.microsoft.com/rest/api/searchservice/search-documents) (or add *"scoringStatistics": "global"* as a body parameter of the [query request](https://docs.microsoft.com/rest/api/searchservice/search-documents)).
4141

4242
```http
43-
GET https://[service name].search.windows.net/indexes/[index name]/docs?scoringStatistics=global&api-version=2019-05-06-preview&search=[search term]
43+
GET https://[service name].search.windows.net/indexes/[index name]/docs?scoringStatistics=global&api-version=2019-05-06-Preview&search=[search term]
4444
Content-Type: application/json
4545
api-key: [admin or query key]
4646
```
4747
Using scoringStatistics will ensure that all shards in the same replica provide the same results. That said, different replicas may be slightly different from one another as they are always getting updated with the latest changes to your index. In some scenarios, you may want your users to get more consistent results during a "query session". In such scenarios, you can provide a `sessionId` as part of your queries.
4848

4949
```http
50-
GET https://[service name].search.windows.net/indexes/[index name]/docs?sessionId=[string]&api-version=2019-05-06-preview&search=[search term]
50+
GET https://[service name].search.windows.net/indexes/[index name]/docs?sessionId=[string]&api-version=2019-05-06-Preview&search=[search term]
5151
Content-Type: application/json
5252
api-key: [admin or query key]
5353
```

0 commit comments

Comments
 (0)