Method to get all the indexes should return a list of instance
See original GitHub issueCurrently, 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 ofIndexinstances - 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:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes fixed by #1045
@bidoubiwa No problem. I will start working on it and try to open a valid PR ASAP.