Skip to content

Commit 1e161fd

Browse files
committed
chore: fix readme with automated script
1 parent 4d5107d commit 1e161fd

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

README.md

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -138,22 +138,18 @@ println!("{:?}", client.index("movies_2").search().with_query("caorl").execute::
138138
```
139139

140140
Output:
141-
142141
```
143142
[Movie { id: 1, title: String::from("Carol"), genres: vec!["Romance", "Drama"] }]
144143
```
145144

146145
Json output:
147-
148146
```json
149147
{
150-
"hits": [
151-
{
152-
"id": 1,
153-
"title": "Carol",
154-
"genres": ["Romance", "Drama"]
155-
}
156-
],
148+
"hits": [{
149+
"id": 1,
150+
"title": "Carol",
151+
"genres": ["Romance", "Drama"]
152+
}],
157153
"offset": 0,
158154
"limit": 10,
159155
"processingTimeMs": 1,
@@ -175,24 +171,23 @@ println!("{:?}", search_result.hits);
175171
```
176172

177173
Json output:
178-
179174
```json
180175
{
181-
"hits": [
182-
{
183-
"id": 6,
184-
"title": "Philadelphia",
185-
"_formatted": {
186-
"id": 6,
187-
"title": "<em>Phil</em>adelphia",
188-
"genre": ["Drama"]
189-
}
190-
}
191-
],
192-
"offset": 0,
193-
"limit": 20,
194-
"processingTimeMs": 0,
195-
"query": "phil"
176+
"hits": [
177+
{
178+
"id": 6,
179+
"title": "Philadelphia",
180+
"_formatted": {
181+
"id": 6,
182+
"title": "<em>Phil</em>adelphia",
183+
"genre": ["Drama"]
184+
}
185+
}
186+
],
187+
"offset": 0,
188+
"limit": 20,
189+
"processingTimeMs": 0,
190+
"query": "phil"
196191
}
197192
```
198193

@@ -227,7 +222,6 @@ println!("{:?}", search_result.hits);
227222
```
228223

229224
Json output:
230-
231225
```json
232226
{
233227
"hits": [

0 commit comments

Comments
 (0)