On Sat, Jan 8, 2011 at 7:47 PM, Patrick Kirsch <p-kir...@gmx.de> wrote: > Hey, > does somebody know, if there is a command option in Solr to show which > datasource provided the result. > Or with other words: is it possible to output in the result the tag name > given in <datasource /> or <entity />? [...]
You would need to index the tag name in a separate field. > <result name="response" numFound="8" start="0" origin="cat"> > <doc origin="dog"> > <int>0</int> > </doc> [...] Also, if you want exactly the above format, you would need to use XSLT to transform the data-source name from the field in which it was indexed into the attribute "origin" for the response. Regards, Gora