I've a lot of collections in my Solr Server and they are all added to an Alias "All_Collections". I would like to query with Spring Data Solr the whole set of collections under the alias, but I don't know how to set the SolrDocument class. I'd like something like this:
@SolrDocument(solrCoreName = "All_Collections" (alias name))
public class Product {
@Id
@Indexed(name = "id", type = "string")
private String id;
...
}
Obviously, collections have different fields, not all the same. Is it possibile or is there an alternative to do this to use the simplicity of Spring Data Solr?