File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -483,6 +483,16 @@ geosearch_guide_sort_usage_2: |-
483
483
client.index('restaurants').search('', {
484
484
'sort': ['_geoPoint(48.8583701,2.2922926):asc', 'rating:desc']
485
485
})
486
+ document_guide_create_index_primary_key : |-
487
+ client.create_index('movies', {'primaryKey': 'reference_number'})
488
+ document_guide_add_document_primary_key : |-
489
+ client.index('movies').add_documents([{
490
+ 'id': 287947,
491
+ 'title': 'Shazam',
492
+ 'poster': 'https://image.tmdb.org/t/p/w1280/xnopI5Xtky18MPhK40cZAGAOVeV.jpg',
493
+ 'overview': 'A boy is given the ability to become an adult superhero in times of need with a single magic word.',
494
+ 'release_date': '2019-03-23'
495
+ }], reference_number)
486
496
security_guide_search_key_1 : |-
487
497
client = Client('http://127.0.0.1:7700', 'apiKey')
488
498
client.index('patient_medical_records').search()
You can’t perform that action at this time.
0 commit comments