Instead of context filtering, can we add context in solr suggester response?
I have 5 different categories. Each category has different names. My suggester works on names. Can I get output as below?
{
"term" : "sunnyvale labs"
"weight":0,
"payloads":"",
"context":"category1"
}
I would also like to get something as sunnyvale labs in category1 if possible.
Sample doc:
{
"key":"",
"seller_name":"",
"seller_id":"",
"partner_name":"",
"partner_id":"",
"admin_name":"",
"maintainer_name":"",
.....
}
Here, if user searches for a name, if any context it matches, I want to see what is the context.