Add method to get the raw index information
See original GitHub issue⚠️ This issue is generated, it means the examples and the namings do not necessarily correspond to the language of this repository. Also, if you are a maintainer, feel free to add any clarification and instruction about this issue.
Sorry if this is already partially/completely implemented, feel free to let me know about the state of this issue in the repo.
Related to https://github.com/meilisearch/integration-guides/issues/120
This SDK provides a method to get an index (getIndex) and this method returns an instance of Index. Some users want to get the raw version of the index, I mean the exact JSON response returned by the MeiliSearch server, not an instance.
Some SDKs already provide a way to get this raw index information but this is not convenient, example in PHP:
$client->index('movies')->fetchRawInfo();
We need to add the getRawIndex method, accessible from the Client instance, to make it more convient.
Prototype:
getRawIndex(string indexUID) -> object/struct/dict of the MeiliSearch response
Ex in PHP:
$client->getRawIndex('movies');
TODO:
- Add
getRawIndex()method to theClientinstance without duplicating the code (iffetchRawInfo()already exists for example) - Add tests
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)

Top Related StackOverflow Question
I just want to add here that I’m working on this so that other people don’t waste their time on this, or my time 😃 At the very least, if someone else also wants to pick up this issue, please add a comment here. I also hope to post updates every so often so this doesn’t go stale.
I can see that the client today supports
If I understand correctly, we want an additional (short-cut) API:
Is that right?