You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
709: Changes related to the next Meilisearch release (v1.1.0) r=bidoubiwa a=meili-bot
Related to this issue: meilisearch/integration-guides#251
This PR:
- gathers the changes related to the next Meilisearch release (v1.1.0) so that this package is ready when the official release is out.
- should pass the tests against the [latest pre-release of Meilisearch](https://github.com/meilisearch/meilisearch/releases).
- might eventually contain test failures until the Meilisearch v1.1.0 is out.
⚠️ This PR should NOT be merged until the next release of Meilisearch (v1.1.0) is out.
_This PR is auto-generated for the [pre-release week](https://github.com/meilisearch/integration-guides/blob/main/resources/pre-release-week.md) purpose._
Done:
- #714
- #716
726: Update version for the next release (v0.26.0) r=bidoubiwa a=meili-bot
This version makes this package compatible with Meilisearch v1.1 🎉
Check out the changelog of [Meilisearch v1.1](https://github.com/meilisearch/meilisearch/releases/tag/v1.1.0) for more information on the changes.
## ⚠️ Breaking changes
* Change error names from MeiliSerach to Meilisearch (#720) `@sanders41`
## 🚀 Enhancements
- Add the ability to provide a specific `csv-delimiter` when adding and updating documents in CSV format (#716) `@alallema`
- New method `client.multi_search()` provides the possibility to make multiple requests at once (#714) `@alallema`
Example:
```python
client.multi_search(
[
{'indexUid': 'movies', 'q': 'pooh', 'limit': 5},
{'indexUid': 'movies', 'q': 'nemo', 'limit': 5},
{'indexUid': 'movie_ratings', 'q': 'us'}
]
)
```
Thanks again to `@alallema` and `@sanders41!` 🎉
Co-authored-by: meili-bot <[email protected]>
Co-authored-by: alallema <[email protected]>
Co-authored-by: Amélie <[email protected]>
235115704;Doctor Vine;The Big F;The Big F;Rock;US;1989;5:29;599616000;5.29
13
+
249025232;"Ringel; Ringel; Reihe";Kinderlieder ABC - Der Bielefelder Kinderchor Singt 42 Lieder Von A-Z;Der Bielefelder Kinderchor;Children's;Germany;1971;;31536000;
14
+
710094000;Happy Safari = Safari Feliz;Safari Swings Again = El Safari Sigue En Su Swing;Bert Kaempfert & His Orchestra;Jazz;Argentina;1977;2:45;220924800;2.45
15
+
538632700;Take Me Up;Spring;Various;Electronic;US;2000;3:06;946684800;3.06
16
+
1556505508;Doin To Me ( Radio Version );Say My Name;Netta Dogg;Hip Hop;US;2005;;1104537600;
17
+
1067031900;Concerto For Balloon & Orchestra / Concerto For Synthesizer & Orchestra;Concerto For Balloon & Orchestra And Three Overtures;Stanyan String & Wind Ensemble;Classical;US;1977;;220924800;
18
+
137251914;"I Love The Nightlife (Disco 'Round) (Real Rapino 7"" Mix)";The Adventures Of Priscilla: Queen Of The Desert - Original Motion Picture Soundtrack;Various;Stage & Screen;US;1994;3:31;757382400;3.31
19
+
554983904;Walking On The Moon;Certifiable (Live In Buenos Aires);The Police;Rock;Malaysia;2008-11-00;;1225497600;
20
+
557616002;Two Soldiers;Jerry Garcia / David Grisman;David Grisman;"Folk; World; & Country";US;2014-04-00;4:24;1396310400;4.24
21
+
878936809;When You Gonna Learn;Live At Firenze 93;Jamiroquai;Funk / Soul;France;2004;13:01;1072915200;13.01
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
Copy file name to clipboardexpand all lines: meilisearch/index.py
+28-9
Original file line number
Diff line number
Diff line change
@@ -434,6 +434,7 @@ def add_documents_csv(
434
434
self,
435
435
str_documents: str,
436
436
primary_key: Optional[str] =None,
437
+
csv_delimiter: Optional[str] =None,
437
438
) ->TaskInfo:
438
439
"""Add string documents from a CSV file to the index.
439
440
@@ -443,6 +444,8 @@ def add_documents_csv(
443
444
String of document from a CSV file.
444
445
primary_key (optional):
445
446
The primary-key used in index. Ignored if already set up.
447
+
csv_delimiter:
448
+
One ASCII character used to customize the delimiter for CSV. Comma used by default.
446
449
447
450
Returns
448
451
-------
@@ -455,7 +458,7 @@ def add_documents_csv(
455
458
MeilisearchApiError
456
459
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
The primary-key used in index. Ignored if already set up.
501
505
type:
502
-
The type of document. Type available: 'csv', 'json', 'jsonl'
506
+
The type of document. Type available: 'csv', 'json', 'jsonl'.
507
+
csv_delimiter:
508
+
One ASCII character used to customize the delimiter for CSV.
509
+
Note: The csv delimiter can only be used with the Content-Type text/csv.
503
510
504
511
Returns
505
512
-------
@@ -512,7 +519,7 @@ def add_documents_raw(
512
519
MeilisearchApiError
513
520
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
The primary-key used in index. Ignored if already set up
620
+
The primary-key used in index. Ignored if already set up.
621
+
csv_delimiter:
622
+
One ASCII character used to customize the delimiter for CSV. Comma used by default.
613
623
614
624
Returns
615
625
-------
@@ -622,13 +632,14 @@ def update_documents_csv(
622
632
MeilisearchApiError
623
633
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
The primary-key used in index. Ignored if already set up.
641
652
type:
642
653
The type of document. Type available: 'csv', 'json', 'jsonl'
654
+
csv_delimiter:
655
+
One ASCII character used to customize the delimiter for CSV.
656
+
Note: The csv delimiter can only be used with the Content-Type text/csv.
643
657
644
658
Returns
645
659
-------
@@ -652,7 +666,7 @@ def update_documents_raw(
652
666
MeilisearchApiError
653
667
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
0 commit comments