@@ -506,6 +506,10 @@ getting_started_configure_settings: |-
506
506
getting_started_communicating_with_a_protected_instance : |-
507
507
client = Client('http://localhost:7700', 'apiKey')
508
508
client.index('movies').search()
509
+ getting_started_faceting : |-
510
+ client.index('movies').update_faceting_settings({'maxValuesPerFacet': 2})
511
+ getting_started_pagination : |-
512
+ client.index('movies').update_pagination_settings({'maxTotalHits': 500})
509
513
faceted_search_update_settings_1 : |-
510
514
client.index('movies').update_filterable_attributes([
511
515
'director',
@@ -665,6 +669,11 @@ settings_guide_pagination_1: |-
665
669
'maxTotalHits': 50
666
670
}
667
671
})
672
+ synonyms_guide_1 : |-
673
+ client.index('movies').update_synonyms({
674
+ 'great': ['fantastic'],
675
+ 'fantastic': ['great']
676
+ })
668
677
async_guide_filter_by_date_1 : |-
669
678
client.get_tasks({'afterEnqueuedAt': '2020-10-11T11:49:53.000Z'})
670
679
async_guide_multiple_filters_1 : |-
@@ -685,3 +694,21 @@ async_guide_filter_by_index_uids_1: |-
685
694
client.get_tasks({'indexUids': ['movies']})
686
695
async_guide_canceled_by_1 : |-
687
696
client.get_tasks({'canceledBy': ['9', '15']})
697
+ date_guide_index_1 : |-
698
+ import json
699
+
700
+ json_file = open('./games.json')
701
+ games = json.load(json_file)
702
+ client.index('games').add_documents(games)
703
+ date_guide_filterable_attributes_1 : |-
704
+ client.index('games').update_filterable_attributes(['release_timestamp'])
705
+ date_guide_filter_1 : |-
706
+ client.index('games').search('', {
707
+ 'filter': 'release_timestamp >= 1514761200 AND release_timestamp < 1672527600'
708
+ })
709
+ date_guide_sortable_attributes_1 : |-
710
+ client.index('games').update_sortable_attributes(['release_timestamp'])
711
+ date_guide_sort_1 : |-
712
+ client.index('games').search('', {
713
+ 'sort': ['release_timestamp:desc']
714
+ })
0 commit comments