Skip to content

Joining Multiple Indices’ Correlated Data in One ReactiveBase Component #1573

Answered by siddharthlatest
samstalner asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't a native way to do joins within ReactiveSearch. There are some workarounds though:

  1. You can use transformResponse prop in ReactiveBase to query the other index and then stitch the data together. There's an example here that's showing that: https://docs.appbase.io/docs/reactivesearch/v3/overview/reactivebase/#props.
  2. Another possible option is for you to change the data model within Elasticsearch: if you use the nested type to capture the customers within the order (or vice-versa), now you can query this more easily within ReactiveSearch.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by siddharthlatest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants