@@ -44,6 +44,14 @@ search_parameter_guide_facet_stats_1: |-
44
44
await client.index('movie_ratings').search('Batman', facets: ['genres', 'rating']);
45
45
faceted_search_1 : |-
46
46
await client.index('books').search('', facets: ['genres', 'rating', 'language']);
47
+ filtering_guide_nested_1 : |-
48
+ await client.index('movie_ratings').search('thriller', {
49
+ filter: 'rating.users >= 90'
50
+ })
51
+ sorting_guide_sort_nested_1 : |-
52
+ await client.index('books').search('science fiction', {
53
+ sort: ["rating.users:asc"],
54
+ })
47
55
async_guide_filter_by_date_1 : |-
48
56
await client.getTasks(params: TasksQuery(afterEnqueuedAt: DateTime(2020, 10, 11, 11, 49, 53)));
49
57
async_guide_multiple_filters_1 : |-
@@ -105,8 +113,6 @@ reset_pagination_settings_1: |-
105
113
get_faceting_settings_1 : |-
106
114
update_faceting_settings_1 : |-
107
115
reset_faceting_settings_1 : |-
108
- >>>>>>>>>>> REMOVE_ME settings_guide_faceting_1: |-
109
- >>>>>>>>>>> REMOVE_ME settings_guide_pagination_1: |-
110
116
get_one_index_1 : |-
111
117
await client.getIndex('movies');
112
118
list_all_indexes_1 : |-
@@ -258,16 +264,12 @@ get_health_1: |-
258
264
await client.health();
259
265
get_version_1 : |-
260
266
await client.getVersion();
261
- >>>>>>>>>>>>>>>> UPDATE_ME distinct_attribute_guide_1 (use distinct attribute route): |-
262
- await client
263
- .index('jackets')
264
- .updateSettings(IndexSettings(distinctAttribute : ' product_id' ));
265
- >>>>>>>>>>>>>>>> UPDATE_ME field_properties_guide_searchable_1 (use searchable attribute route): |-
266
- await client.index('movies').updateSettings(
267
- IndexSettings(searchableAttributes : ['title', 'overview', 'genres']));
268
- >>>>>>>>>>>>>>>> UPDATE_ME field_properties_guide_displayed_1 (use displayed attribute route): |-
269
- await client.index('movies').updateSettings(IndexSettings(
270
- displayedAttributes : ['title', 'overview', 'genres', 'release_date']));
267
+ distinct_attribute_guide_1 : |-
268
+ await client.index('jackets').updateDistinctAttribute('product_id');
269
+ field_properties_guide_searchable_1 : |-
270
+ await client.index('movies').updateSearchableAttributes(['title', 'overview', 'genres']);
271
+ field_properties_guide_displayed_1 : |-
272
+ await client.index('movies').updateDisplayedAttributes(['title', 'overview', 'genres', 'release_date']);
271
273
filtering_guide_1 : |-
272
274
await await client
273
275
.index('movies')
@@ -303,40 +305,6 @@ search_parameter_guide_highlight_1: |-
303
305
.search('winter feast', attributesToHighlight: ['overview']);
304
306
search_parameter_guide_show_matches_position_1 : |-
305
307
await client.index('movies').search('winter feast', showMatchesPosition: true);
306
- >>>>>>>>>>> REMOVE_ME settings_guide_synonyms_1: |-
307
- await client.index('tops').updateSettings(IndexSettings(synonyms : {
308
- ' sweater ' : ['jumper'],
309
- ' jumper ' : ['sweater']
310
- }));
311
- >>>>>>>>>>> REMOVE_ME settings_guide_stop_words_1: |-
312
- await client
313
- .index('movies')
314
- .updateSettings(IndexSettings(stopWords : ['the', 'a', 'an']));
315
- >>>>>>>>>>> REMOVE_ME settings_guide_ranking_rules_1: |-
316
- await client.index('movies').updateSettings(IndexSettings(rankingRules : [
317
- ' words' ,
318
- ' typo' ,
319
- ' proximity' ,
320
- ' attribute' ,
321
- ' sort' ,
322
- ' exactness' ,
323
- ' release_date:asc' ,
324
- ' rank:desc'
325
- ]));
326
- >>>>>>>>>>> REMOVE_ME settings_guide_distinct_1: |-
327
- await client
328
- .index('jackets')
329
- .updateSettings(IndexSettings(distinctAttribute : ' product_id' ));
330
- >>>>>>>>>>> REMOVE_ME settings_guide_searchable_1: |-
331
- await client.index('movies').updateSettings(
332
- IndexSettings(searchableAttributes : ['title', 'overview', 'genres']));
333
- >>>>>>>>>>> REMOVE_ME settings_guide_displayed_1: |-
334
- await client.index('movies').updateSettings(IndexSettings(
335
- displayedAttributes : ['title', 'overview', 'genres', 'release_date']));
336
- >>>>>>>>>>> REMOVE_ME settings_guide_sortable_1: |-
337
- await client
338
- .index('books')
339
- .updateSettings(IndexSettings(sortableAttributes : ['author', 'price']));
340
308
add_movies_json_1 : |-
341
309
import 'dart:io';
342
310
import 'dart:convert';
0 commit comments