Re: Collection name in result

2017-06-23 Thread Jagrut Sharma
Thanks Erick & Alessandro. I am querying the collections by including '&collection=c1,c2' syntax in the query. The suggestion of adding an additional field to the schema works. I configured this additional field to hold the collection's name and now the result from the collection includes the name.

Re: Collection name in result

2017-06-23 Thread Erick Erickson
H, you might be able to use a DocTransformer. Hmm, in fact that would work if you can keep the two separate. It just injects fields into the docs when they're being output. It would be the world's simplest transformer if it injected a hard-coded collection name (you'd have to have unique transf

Re: Collection name in result

2017-06-23 Thread alessandro.benedetti
I second Erick, it would be as easy as adding this field to the schema : "/> If you are using inter collections queries, just be aware there a lot of tricky and subtle problems with it ( such as unique Identifier must have same field name, distributed IDF inter collections ect ect) I am preparing

Re: Collection name in result

2017-06-22 Thread Erick Erickson
How are you submitting the query to to collections? Aliasing to them both? The simplest would be just to index the name of the collection with each doc and return that field Best, Erick On Thu, Jun 22, 2017 at 6:05 PM, Jagrut Sharma wrote: > I'm submitting a search term to SolrCloud to query 2