question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 the Client instance without duplicating the code (if fetchRawInfo() already exists for example)
  • Add tests

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
artfuldevcommented, Oct 11, 2021

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.

1reaction
artfuldevcommented, Oct 11, 2021

I can see that the client today supports

const index = await client.index("createdIndexTest").getRawInfo();

If I understand correctly, we want an additional (short-cut) API:

const index = await client.getRawIndex("createdIndexTest");

Is that right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pandas DataFrame: how to get raw indexes in a time series
I need to calculate values according to the index numbers for each row, but df.index returns DatetimeIndex . How could I get the...
Read more >
The Raw data structure: continuous data - MNE-Python
This section shows how to extract the data from a Raw object into a NumPy array , for analysis or plotting using functions...
Read more >
Indexing and selecting data — pandas 1.5.2 documentation
The correct way to swap column values is by using raw values: ... You may access an index on a Series or column...
Read more >
INDEX function - Microsoft Support
The INDEX function returns a value or the reference to a value from within a table or range. There are two ways to...
Read more >
Get the specified row value of a given Pandas DataFrame
Method 1: Using iloc[ ]. Example: Suppose you have a pandas dataframe and you want to select a specific row given its index....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found