Releases: meilisearch/meilisearch-python
v0.19.1 ๐
v0.19.0 ๐
This version makes this package compatible with Meilisearch v0.28.0 ๐
Check out the changelog of Meilisearch v0.28.0 for more information on the changes.
๐ฅ Breaking changes
update_key()
can update onlyname
anddescription
fields. #477get_tasks()
has additional parameters for filtering::type
,status
andindexUid
. #476client.get_tasks(...)
andindex.get_tasks()
now returns the following fields:results
,limit
,from
,next
.#476index.search
changes in the responsefields
: #478nbHits
replaced withestimatedTotalHits
exhaustiveNbHits
is deletedexhaustiveFacetsCount
is deletedmatches
renamedshowMatchesPosition
facetsDistribution
response parameter is renamedfacetDistribution
.
index.search
changes in the request parameters: #478matches
renamedshowMatchesPosition
facetsDistribution
request parameter is renamedfacets
.
index.get_documents()
request parameters: #481attributesToRetrieve
replaced withfields
.
client.get_indexes
andclient.get_raw_indexes
now return the following fields:results
,limit
,offset
,total
. #478index.get_documents
andclient.get_documents
now return the following fields:results
,limit
,offset
,total
. #481index.get_documents
query parameterattributesToRetrieve
is now calledfields
#481client.get_dump_status
andwait_for_dump_creation
have been removed #479client.create_dump()
now returns tasks, similar to what add_documents or create_index returns #479client.generate_tenant_token(api_key_uid, search_rules, expires_at)
has now a mandatoryapi_key_uid
parameter which should contain the uid of a specific API key. #484
๐ Enhancements
index.get_tasks
andclient.get_tasks
accept pagination metadata, addedlimit
(default: 20),from
. #476client.get_indexes
accept pagination metadata, addedlimit
(default: 20) andoffset
(default: 0). #478client.get_keys
accept pagination metadata, addedlimit
(default: 20) andoffset
(default: 0). #477client.get_key(key_or_uid)
can now also find keys based on their key uid. #477client.create_key(options)
lets you specify a custom uid (optionally) to create a new Key. #477index.get_documents
now accepts pagination parameters:limit
(default: 20) andoffset
(default: 0). #481- Improve Docker configuration in the package (#467)
Thanks again to @alallema, @curquiza, and @roshammar! ๐
v0.18.3 ๐
This version makes this package compatible with Meilisearch v0.27.0๐
Check out the changelog of Meilisearch v0.27.0 for more information about the changes.
๐ Enhancements
v0.18.2 ๐
๐ Enhancements
- Add User-Agent header to have analytics in every HTTP request (#433) @brunoocasali
Analytics is enabled by default in the server, but you can disable them by following this guide
Also, of course, every analytics data we collect are ANONYMOUS read the guide for more information.
Thanks again to @alallema, @brunoocasali! ๐
v0.18.1 ๐
This version makes this package compatible with MeiliSearch v0.25 up to v0.26.0.
๐ Check out the changelog of MeiliSearch v0.26.0 for more information about the :danger: Breaking changes about the flag and dump new behavior. (#407)
๐ Enhancements
- Add package version (#409) @brunoocasali
- Added new method
generateTenantToken()
as a result of the addition of the multi-tenant functionality.
This method creates a JWT tenant token that will allow the user to have multi-tenant indexes and thus restrict access to documents based on the end-user making the search request. (#412) @alallema
Thanks again to @alallema, @brunoocasali, @curquiza! ๐
v0.18.0 ๐
This package version is compatible with MeiliSearch v0.25.0 (#370)
โ ๏ธ Breaking changes
- This package is only compatible with MeiliSearch v0.25.0 and later, but not with v0.24.0 and older. Be sure you are using at least MeiliSearch v0.25.0 or newer before doing the upgrade.
Why isn't it compatible?- MeiliSearch v0.25.0 uses
Authorization
header instead ofX-Meili-API-Key
(#371) - MeiliSearch v0.25.0 has a new API regarding the updates that have been renamed into tasks. More details in the following points
- MeiliSearch v0.25.0 uses
- Remove
delete_index_if_exists
andget_or_create_index
(#381) @alallema - Redesign update API to task API (#372) @alallema
- All the actions on indexes are now asynchronous check out the task API references and the asynchronous tasks guide
create_index()
,update_index()
,delete_index()
are now asynchrone and return atask
response instead of anIndex
.index.create
andindex.delete
from index return atask
.wait_for_pending_update()
is renamed intowait_for_task
and is accessible fromindex
and fromclient
.- the current
index.wait_for_task()
method call/tasks/:uid
index.get_update_status
is renamedindex.get_task
index.get_all_update_status
is renamedindex.get_tasks
- new method
client.wait_for_task()
call/tasks/:uid
- new method
client.get_tasks
that calls/tasks
- new method
client.get_task
that calls/tasks/:uid
Notes: The only two methods that now return anIndex
areclient.index()
andclient.get_index()
- All the actions on indexes are now asynchronous check out the task API references and the asynchronous tasks guide
- Change
apiKey
toapi_key
to comply with pylint (#386) @alallema - Change
client.get_keys
does not return an object of keys, but an array of keys. Check out keys API references. - Changes related to the next MeiliSearch release (v0.25.0) (#370)
๐ Enhancements
- Remove tests from wheel (#368) @sanders41
- Add type attribute to error handler (#388) @voloyev
- Addition related to API keys (#382) @alallema
- Granular management of API keys is now added to MeiliSearch. New methods have been created to manage this:
- client.get_key get information about a specific API key.
- client.create_key create a new API key.
- client.delete_key delete an API key.
- client.update_key update an API key.
- Check out the documentation guide.
- Granular management of API keys is now added to MeiliSearch. New methods have been created to manage this:
๐ Bug Fixes
- Add redundant export to fix import error (#384) @sanders41
- Fix MeiliSearchApiError and MeiliSearchError double period in message (#390) @sanders41
Thanks again to @alallema, @sanders41, and @voloyev! ๐
v0.17.0 ๐
This package version is compatible with MeiliSearch v0.24.0 (#353)
โ ๏ธ Breaking changes
- Modification of the
update
method which now takes a primary as argument (#346) @sanders41 - Rename
error_code
anderror_link
intocode
andlink
in the error handler (#355) @curquiza
Thanks again to @Sukriti-sood, @Yoda-Canada, @alallema, @curquiza, @jrinder42, and @sanders41! ๐
v0.16.2 ๐
This package version is compatible with MeiliSearch v0.23.0
Changes
- New format handling
CSV
NDJSON
(#329) @alallema:- Add new index method
add_documents_json(string_docs, primary_key)
- Add new index method
add_documents_ndjson(string_docs, primary_key)
- Add new index method
add_documents_csv(string_docs, primary_key)
- Add new index method
add_documents_raw(string_docs, primary_key, type)
- Add new index method
Thanks again to @AbihaFatima, @alallema, @curquiza, @darensin01, @mk1107, and @moazfarrukh! ๐
v0.16.1 ๐
This package version is compatible with MeiliSearch v0.22.0 ๐
Changes
v0.16.0 ๐
This version makes this package compatible with MeiliSearch v0.21.0
๐ Check out the changelog of MeiliSearch v0.21.0
Changes
Breaking changes โ ๏ธ
- Rename attributes_for_faceting into filterable_attributes (#287) @alallema
- Changes related to the next MeiliSearch release (v0.21.0) (#250)
Bug
- Fixing str issues with MeiliSearchApiError (#306) @sanders41
Thanks again to @alallema, @curquiza, and @sanders41! ๐