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.

Method to get all the indexes should return a list of instance

See original GitHub issue

Currently, the get_all_indexes method returns a raw list of object, but not a list of Index instance. This is the only index-related method that does not return an Index instance.

An instance is more convenient to manipulate than a raw object. See this example.

TODO

  • Change the return of the current get_all_indexes: make it return a list of Index instances
  • Provide get_all_raw_indexes: a method that returns the list of object of indexes, so the response of the MeiliSearch server.
  • Add tests

⚠️ No code duplication: use get_all_raw_indexes in get_all_indexes.

Related to https://github.com/meilisearch/integration-guides/issues/122

⚠️ Also, this issue is generated, and get_all_indexes might be named differently in this package. Keep the already existing way of naming in this package to stay idomatic with the language and the repository.

Sorry if this is already partially/completely implemented, feel free to let me know about the state of this issue.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bidoubiwacommented, Apr 7, 2022

Yes fixed by #1045

1reaction
K-Kumar-01commented, Oct 9, 2021

@bidoubiwa No problem. I will start working on it and try to open a valid PR ASAP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Method to get all the indexes should return a list of instance
Currently, the get_all_indexes method returns a raw list of object, but not a list of Index instance. This is the only index-related method...
Read more >
Python: Find List Index of All Occurences of an Element - Datagy
One of the most basic ways to get the index positions of all occurrences of an element in a Python list is by...
Read more >
python - How to find all occurrences of an element in a list
The above code can be use to create a list of the indices: list(indices(input,value)) ; use them as dictionary keys: dict(indices(input,value)) ; sum...
Read more >
Python Find in List – How to Find the Index of an Item or ...
Use a for-loop to get indices of all occurrences of an item in a list · Use list comprehension and the enumerate() function...
Read more >
Python List index() with Example - Guru99
The list index() method helps you to find the first lowest index of the given element. If there are duplicate elements inside the...
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