Skip to content

Commit ae1cd8f

Browse files
authored
Update index.py
Review changes
1 parent 3709743 commit ae1cd8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

meilisearch/index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ def update_documents(
534534
url = self._build_url(primary_key)
535535
response = self.http.put(url, documents)
536536
return TaskInfo(**response)
537-
537+
538538
def update_documents_ndjson(
539539
self,
540540
str_documents: str,
@@ -568,7 +568,7 @@ def update_documents_raw(
568568
primary_key: str | None = None,
569569
content_type: str | None = None,
570570
) -> TaskInfo:
571-
"""Add string documents to the index.
571+
"""Update string to documents in the index.
572572
573573
Parameters
574574
----------
@@ -591,7 +591,7 @@ def update_documents_raw(
591591
An error containing details about why Meilisearch can't process your request. Meilisearch error codes are described here: https://docs.meilisearch.com/errors/#meilisearch-errors
592592
"""
593593
url = self._build_url(primary_key)
594-
response = self.http.post(url, str_documents, content_type)
594+
response = self.http.put(url, str_documents, content_type)
595595
return TaskInfo(**response)
596596

597597
def update_documents_in_batches(

0 commit comments

Comments
 (0)