diff --git a/search/import.py b/search/import.py deleted file mode 100644 index ce9155f..0000000 --- a/search/import.py +++ /dev/null @@ -1,33 +0,0 @@ -import meilisearch - -client = meilisearch.Client('https://ms-9ea4a96f02a8-1969.sfo.meilisearch.io', '117c691a34b21a6651798479ebffd181eb276958') - -# An index is where the documents are stored. -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'] }, -] - -# If the index 'movies' does not exist, Meilisearch creates it when you first add the documents. -index.add_documents(documents) # => { "uid": 0 }', 'masterKey') - -# An index is where the documents are stored. -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'] }, -] - -# If the index 'movies' does not exist, Meilisearch creates it when you first add the documents. -index.add_documents(documents) # => { "uid": 0 } \ No newline at end of file diff --git a/search/search.py b/search/search.py deleted file mode 100644 index 4963320..0000000 --- a/search/search.py +++ /dev/null @@ -1,7 +0,0 @@ -import meilisearch - -client = meilisearch.Client('https://ms-9ea4a96f02a8-1969.sfo.meilisearch.io', '117c691a34b21a6651798479ebffd181eb276958') - -result = index.search('caorl') - -print(result) \ No newline at end of file