Try to add shards.info=true to your request, and you should get the core name 
in the response..

Jan

> 10. jun. 2021 kl. 23:55 skrev ufuk yılmaz <uyil...@vivaldi.net.INVALID>:
> 
> Is it possible to return which collection a matching document came from, when 
> querying against an alias?
> 
> Suppose alias “myAlias” is pointing to collections c1, c2 and c3 and we are 
> querying:
> 
> /solr/myAlias?q=id:123
> 
> I’m trying to get a response similar to:
> 
> [{ “id”: 123, “collection”: “c2”}]
> 
> Core name, shard name would be useful too, since I can extract collection 
> name from them.
> 
> Is this achievable?
> 
> Thanks
> ~ufuk
> 
> Sent from Mail for Windows 10
> 

Reply via email to