Skip to content

TypeError: index.getObject is not a function #5288

Answered by Haroenv
miag676 asked this question in Q&A
Discussion options

You must be logged in to vote

getObject isn't a function of algoliasearch/lite, only of the "full" version of algoliasearch. What you can do instead is searching with the objectID as a filter search({ filters: `objectID:${path}`}), that way you can still use the lite version of algoliasearch.

Replies: 0 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@miag676
Comment options

Answer selected by miag676
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Library: React InstantSearch < 7 Issues in any of the react-instantsearch@6 packages
2 participants