Skip to content

Commit 6bc15fa

Browse files
authored
edits to fit MS style
1 parent 48adb09 commit 6bc15fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/search/search-more-like-this.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ You cannot use `MoreLikeThis` on searchable sub-fields in a [complex type](searc
2626

2727
## Examples
2828

29-
All examples below use the [hotels sample from Quickstart](search-get-started-portal.md).
29+
All following examples use the hotels sample from [Quickstart: Create a search index in the Azure portal](search-get-started-portal.md).
3030

31-
### Simple Query
31+
### Simple query
3232

3333
The following query finds documents whose description fields are most similar to the field of the source document as specified by the `moreLikeThis` parameter:
3434

@@ -47,17 +47,17 @@ POST /indexes/hotels-sample-index/docs/search?api-version=2019-05-06-Preview
4747
}
4848
```
4949

50-
### Applying Filters
50+
### Apply filters
5151

5252
`MoreLikeThis` can be combined with other common query parameters like `$filter`. For instance, the query can be restricted to only hotels whose category is 'Budget' and where the rating is higher than 3.5:
5353

5454
```
5555
GET /indexes/hotels-sample-index/docs?moreLikeThis=20&searchFields=Description&$filter=(Category eq 'Budget' and Rating gt 3.5)&api-version=2019-05-06-Preview
5656
```
5757

58-
### Selecting Fields and Limiting Results
58+
### Select fields and limit results
5959

60-
The `$top` selector can be used to limit how many results should be returned in a `MoreLikeThis` query. Also, fields can be selected with `$select`. Here the top 3 hotels are selected along with their Id, Name and Rating:
60+
The `$top` selector can be used to limit how many results should be returned in a `MoreLikeThis` query. Also, fields can be selected with `$select`. Here the top three hotels are selected along with their ID, Name, and Rating:
6161

6262
```
6363
GET /indexes/hotels-sample-index/docs?moreLikeThis=20&searchFields=Description&$filter=(Category eq 'Budget' and Rating gt 3.5)&$top=3&$select=HotelId,HotelName,Rating&api-version=2019-05-06-Preview

0 commit comments

Comments
 (0)