#community-help

Two-Stage Federated Search Implementation

TLDR Todd inquired about a two-stage federated search. Jason explained federated search doesn't support this & the operation has to be done separately. Viji suggested searching for an intersection, but Jason pointed out it must be implemented within the application.

Powered by Struct AI

4

6
17mo
Solved
Join the chat
Jun 02, 2022 (17 months ago)
Todd
Photo of md5-cccf0b87668408fef09dd77e1948fced
Todd
03:29 PM
👋 Hi everyone! I just wanted to ask a question about federated search:

I see federated search has the capability for searching collections in parallel. However, I need to perform a two stage search, first stage gets a bunch of items with a group_id field, and then the second stage gets a bunch of the groups identified by the id. Is this something federated search can help me with? What do you guys think would be a good way to approach this problem? Also, you can assume that our data model is not hard fixed yet, so if there are any issues there, please let me know. Thanks!
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:46 PM
Hi Todd! That's not possible with federated search. So you would have to do a search query, get the results and then send another separate search query.

1

Todd
Photo of md5-cccf0b87668408fef09dd77e1948fced
Todd
03:46 PM
Absolutely, thanks Jason! I really appreciate the quick response and good explanation.

1

Viji
Photo of md5-d2def4ce72082649c7191218a9e73146
Viji
06:36 PM
Jason - do you think we can handle this scenario by an equivalent of INTERSECT between the two search results done using federated search?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:39 PM
You would have to do this on your application side... Federated search doesn't have the concept of intersect built-in
Viji
Photo of md5-d2def4ce72082649c7191218a9e73146
Viji
06:43 PM
Oh ok. Thanks for the quick response Jason!

2