From 55957906e6e944de51fdc60c7b70368b7ca3b2eb Mon Sep 17 00:00:00 2001 From: mk1107 Date: Mon, 11 Oct 2021 20:03:11 +0530 Subject: [PATCH 1/3] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b97eb2f4..a655a6d8 100644 --- a/README.md +++ b/README.md @@ -75,12 +75,12 @@ client = meilisearch.Client('http://127.0.0.1:7700', 'masterKey') index = client.index('movies') documents = [ - { id: 1, title: 'Carol', genres: ['Romance', 'Drama'] }, - { id: 2, title: 'Wonder Woman', genres: ['Action', 'Adventure'] }, - { id: 3, title: 'Life of Pi', genres: ['Adventure', 'Drama'] }, - { id: 4, title: 'Mad Max: Fury Road', genres: ['Adventure', 'Science Fiction'] }, - { id: 5, title: 'Moana', genres: ['Fantasy', 'Action']}, - { id: 6, title: 'Philadelphia', genres: ['Drama'] }, + { "id": 1, "title": "Carol", "genres": ["Romance", "Drama"] }, + { "id": 2, "title": "Wonder Woman", "genres": ["Action", "Adventure"] }, + { "id": 3, "title": "Life of Pi", "genres": ["Adventure", "Drama"] }, + { "id": 4, "title": "Mad Max: Fury Road", "genres": ["Adventure", "Science Fiction"] }, + { "id": 5, "title": "Moana", "genres": ["Fantasy", "Action"]}, + { "id": 6, "title": "Philadelphia", "genres": ["Drama"] }, ] # If the index 'movies' does not exist, MeiliSearch creates it when you first add the documents. From 3f67eb5e50b801abde35d6e8918190b68167a423 Mon Sep 17 00:00:00 2001 From: mk1107 Date: Mon, 11 Oct 2021 22:11:45 +0530 Subject: [PATCH 2/3] Update README.md --- README.md | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index a655a6d8..ed6b8101 100644 --- a/README.md +++ b/README.md @@ -75,12 +75,12 @@ client = meilisearch.Client('http://127.0.0.1:7700', 'masterKey') index = client.index('movies') documents = [ - { "id": 1, "title": "Carol", "genres": ["Romance", "Drama"] }, - { "id": 2, "title": "Wonder Woman", "genres": ["Action", "Adventure"] }, - { "id": 3, "title": "Life of Pi", "genres": ["Adventure", "Drama"] }, - { "id": 4, "title": "Mad Max: Fury Road", "genres": ["Adventure", "Science Fiction"] }, - { "id": 5, "title": "Moana", "genres": ["Fantasy", "Action"]}, - { "id": 6, "title": "Philadelphia", "genres": ["Drama"] }, + { 'id': 1, 'title': 'Carol', 'genres': ['Romance', 'Drama'] }, + { 'id': 2, 'title': 'Wonder Woman', 'genres': ['Action', 'Adventure'] }, + { 'id': 3, 'title': 'Life of Pi', 'genres': ['Adventure', 'Drama'] }, + { 'id': 4, 'title': 'Mad Max: Fury Road', 'genres': ['Adventure', 'Science Fiction'] }, + { 'id': 5, 'title': 'Moana', 'genres': ['Fantasy', 'Action']}, + { 'id': 6, 'title': 'Philadelphia', 'genres': ['Drama'] }, ] # If the index 'movies' does not exist, MeiliSearch creates it when you first add the documents. @@ -100,17 +100,17 @@ Output: ```json { - "hits": [ + 'hits': [ { - "id": 1, - "title": "Carol", - "genre": ["Romance", "Drama"] + 'id': 1, + 'title': 'Carol', + 'genre': ['Romance', 'Drama'] } ], - "offset": 0, - "limit": 20, - "processingTimeMs": 1, - "query": "caorl" + 'offset': 0, + 'limit': 20, + 'processingTimeMs': 1, + 'query': 'caorl' } ``` @@ -131,21 +131,21 @@ JSON output: ```json { - "hits": [ + 'hits': [ { - "id": 6, - "title": "Philadelphia", - "_formatted": { - "id": 6, - "title": "Philadelphia", - "genre": ["Drama"] + 'id': 6, + 'title': 'Philadelphia', + '_formatted': { + 'id': 6, + 'title': 'Philadelphia', + 'genre': ['Drama'] } } ], - "offset": 0, - "limit": 20, - "processingTimeMs": 0, - "query": "phil" + 'offset': 0, + 'limit': 20, + 'processingTimeMs': 0, + 'query': 'phil' } ``` From 6e2e6f68dd122633a4b7cf44eb1647d8a54abd69 Mon Sep 17 00:00:00 2001 From: mk1107 Date: Mon, 11 Oct 2021 22:51:24 +0530 Subject: [PATCH 3/3] Update README.md --- README.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index ed6b8101..5f9b02fb 100644 --- a/README.md +++ b/README.md @@ -100,17 +100,17 @@ Output: ```json { - 'hits': [ + "hits": [ { - 'id': 1, - 'title': 'Carol', - 'genre': ['Romance', 'Drama'] + "id": 1, + "title": "Carol", + "genre": ["Romance", "Drama"] } ], - 'offset': 0, - 'limit': 20, - 'processingTimeMs': 1, - 'query': 'caorl' + "offset": 0, + "limit": 20, + "processingTimeMs": 1, + "query": "caorl" } ``` @@ -131,21 +131,21 @@ JSON output: ```json { - 'hits': [ + "hits": [ { - 'id': 6, - 'title': 'Philadelphia', - '_formatted': { - 'id': 6, - 'title': 'Philadelphia', - 'genre': ['Drama'] + "id": 6, + "title": "Philadelphia", + "_formatted": { + "id": 6, + "title": "Philadelphia", + "genre": ["Drama"] } } ], - 'offset': 0, - 'limit': 20, - 'processingTimeMs': 0, - 'query': 'phil' + "offset": 0, + "limit": 20, + "processingTimeMs": 0, + "query": "phil" } ```