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
v0.28 introduces three main changes to /documents.
Resource pagination
As the name implies, getting a list of documents now returns paginated results using the new parameters limit and offset. Response bodies include a results array, together with limit, offset, and total fields.
Rename attributesToRetrieve to fields
The API endpoint for getting documents attributesToRetrieve is now called fields. This is to reduce confusion with the similarly named search parameter attributesToRetrieve.
displayedAttributes
There is no longer any relationship between displayedAttributes, the index setting, and the fields returned by the documents endpoint. Previously, attributesToRetrieve (now fields) would use the displayedAttributes list by default.
v0.28 introduces three main changes to
/documents
.Resource pagination
As the name implies, getting a list of documents now returns paginated results using the new parameters
limit
andoffset
. Response bodies include aresults
array, together withlimit
,offset
, andtotal
fields.Rename
attributesToRetrieve
tofields
The API endpoint for getting documents
attributesToRetrieve
is now calledfields
. This is to reduce confusion with the similarly named search parameterattributesToRetrieve
.displayedAttributes
There is no longer any relationship between
displayedAttributes
, the index setting, and thefields
returned by the documents endpoint. Previously,attributesToRetrieve
(nowfields
) would use thedisplayedAttributes
list by default.References
Specs:
Issue on core: Changes in the
Documents
resources meilisearch#2372SME: @curquiza, @irevoire
The text was updated successfully, but these errors were encountered: