Skip to content

Commit 80001ac

Browse files
committed
feat: Adds an optional skipCreation. When set to true, documents that don't exist in the index are silently ignored rather than created.
1 parent 805d0c3 commit 80001ac

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

meilisearch/index.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def add_documents(
469469
cannot handle, for example UUID and datetime.
470470
skip_creation (optional):
471471
If True, documents that don't exist in the index are silently ignored rather
472-
than created. Default is False, preserving existing behavior.
472+
than created. If False or None (default), existing behavior is preserved.
473473
474474
Returns
475475
-------
@@ -510,7 +510,7 @@ def add_documents_in_batches(
510510
cannot handle, for example UUID and datetime.
511511
skip_creation (optional):
512512
If True, documents that don't exist in the index are silently ignored rather
513-
than created. Default is False, preserving existing behavior.
513+
than created. If False or None (default), existing behavior is preserved.
514514
515515
Returns
516516
-------
@@ -556,7 +556,7 @@ def add_documents_json(
556556
cannot handle, for example UUID and datetime.
557557
skip_creation (optional):
558558
If True, documents that don't exist in the index are silently ignored rather
559-
than created. Default is False, preserving existing behavior.
559+
than created. If False or None (default), existing behavior is preserved.
560560
561561
Returns
562562
-------
@@ -596,7 +596,7 @@ def add_documents_csv(
596596
One ASCII character used to customize the delimiter for CSV. Comma used by default.
597597
skip_creation (optional):
598598
If True, documents that don't exist in the index are silently ignored rather
599-
than created. Default is False, preserving existing behavior.
599+
than created. If False or None (default), existing behavior is preserved.
600600
601601
Returns
602602
-------
@@ -629,7 +629,7 @@ def add_documents_ndjson(
629629
The primary-key used in index. Ignored if already set up.
630630
skip_creation (optional):
631631
If True, documents that don't exist in the index are silently ignored rather
632-
than created. Default is False, preserving existing behavior.
632+
than created. If False or None (default), existing behavior is preserved.
633633
634634
Returns
635635
-------
@@ -674,7 +674,7 @@ def add_documents_raw(
674674
cannot handle, for example UUID and datetime.
675675
skip_creation (optional):
676676
If True, documents that don't exist in the index are silently ignored rather
677-
than created. Default is False, preserving existing behavior.
677+
than created. If False or None (default), existing behavior is preserved.
678678
679679
Returns
680680
-------
@@ -714,7 +714,7 @@ def update_documents(
714714
cannot handle, for example UUID and datetime.
715715
skip_creation (optional):
716716
If True, documents that don't exist in the index are silently ignored rather
717-
than created. Default is False, preserving existing behavior.
717+
than created. If False or None (default), existing behavior is preserved.
718718
719719
Returns
720720
-------
@@ -747,7 +747,7 @@ def update_documents_ndjson(
747747
The primary-key used in index. Ignored if already set up
748748
skip_creation (optional):
749749
If True, documents that don't exist in the index are silently ignored rather
750-
than created. Default is False, preserving existing behavior.
750+
than created. If False or None (default), existing behavior is preserved.
751751
752752
Returns
753753
-------
@@ -785,7 +785,7 @@ def update_documents_json(
785785
cannot handle, for example UUID and datetime.
786786
skip_creation (optional):
787787
If True, documents that don't exist in the index are silently ignored rather
788-
than created. Default is False, preserving existing behavior.
788+
than created. If False or None (default), existing behavior is preserved.
789789
790790
Returns
791791
-------
@@ -825,7 +825,7 @@ def update_documents_csv(
825825
One ASCII character used to customize the delimiter for CSV. Comma used by default.
826826
skip_creation (optional):
827827
If True, documents that don't exist in the index are silently ignored rather
828-
than created. Default is False, preserving existing behavior.
828+
than created. If False or None (default), existing behavior is preserved.
829829
830830
Returns
831831
-------
@@ -870,7 +870,7 @@ def update_documents_raw(
870870
cannot handle, for example UUID and datetime.
871871
skip_creation (optional):
872872
If True, documents that don't exist in the index are silently ignored rather
873-
than created. Default is False, preserving existing behavior.
873+
than created. If False or None (default), existing behavior is preserved.
874874
875875
Returns
876876
-------
@@ -912,7 +912,7 @@ def update_documents_in_batches(
912912
cannot handle, for example UUID and datetime.
913913
skip_creation (optional):
914914
If True, documents that don't exist in the index are silently ignored rather
915-
than created. Default is False, preserving existing behavior.
915+
than created. If False or None (default), existing behavior is preserved.
916916
917917
Returns
918918
-------

0 commit comments

Comments
 (0)