Hey everyone, We are trying to implement NLS with...
# community-help
y
Hey everyone, We are trying to implement NLS with react-instantsearch-dom (v6), is there a way we can access the generated params ? Tried
searchResults._rawResults
but dont see the generated params in the object
f
Are you using a hook or the component itself?
y
not sure I follow this question, I dont think they have hook support in the version we are using. Also to give more context, we rely on
connectState
connectHits
to access store values
a
Just a bump on this -- interested in this too!
f
Could you provide a small snippet / repo so I can check that out?
y
So right now we are trying this:
Copy code
function TotalHits({ searchResults, searchState }: TotalHits): JSX.Element {
  console.log({ searchResults, searchState });

  return <>test</>;
}

export default connectStateResults(TotalHits);
And we want to access the
parsed_nl_query
data here
Mostly this
And neither searchResults or searchState sends that back
@Fanis Tharropoulos Let me know in case you need more info
f
Just posted a PR for this. They will be part of the response from now on, if nl_query is part of the request params
Will update you as soon as we have a new version of the adapter released, so you can check it out
🙌 1
y
Thanks alot, will wait for the new version to roll out
❤️ 1
a
hey @Fanis Tharropoulos is there any update on this ? thanks!!
f
We're about to merge the PR: https://github.com/typesense/typesense-instantsearch-adapter/pull/252 As soon as it out, we'll release an RC build of the adapter
🙌 2