Dian Alhusari
03/30/2025, 5:46 AMquery_by
) is mapped to different fields in each collection. Here is an example of my search requests:
Gsearch_requests = {
'searches': [
{
'collection': 'products',
'q': 'shoe',
'filter_by': 'price:=[50..120]'
},
{
'collection': 'brands',
'q': 'Nike'
}
]
}
I want to use a common search parameter, but it should map to different fields in each collection. For example:
ucommon_search_params = {
'query_by': {
'products': 'name',
'brands': 'brand_name'
}
}
Is it possible to achieve this in a federated search setup? If so, how can I structure my search requests to handle this mapping?