lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: multi core faceting
Date Fri, 03 Apr 2015 05:41:17 GMT
On 4/2/2015 11:30 PM, Aman Tandon wrote:
> I have two cores one contains the data of jeans and other core contains
> data of shirts available to user. I want to show count of shirts and jeans
> on my website from one solr request.
> 
> Is there any functionality available i solr by which I can get the combined
> facet from both the cores (jeans & shirts).

Are the schemas of the two cores the same, or at least very similar?  At
a bare minimum, they would need to use the same field name for the
uniqueKey, but substantial similarity, at least on the fields that you
will be querying and faceting, is usually required.

If the answer to that question is yes, you may be able to do a
distributed search.

Your message history on this list mentions SolrCloud quite frequently,
but your message specifically says "cores" ... which would tend to mean
that it's NOT SolrCloud.

If it is cloud, you could create a collection alias that points at both
collections, then use the alias in your queries to query them both.

https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api4

If it's not SolrCloud, then you can use the older method for distributed
searching:

https://wiki.apache.org/solr/DistributedSearch

Thanks,
Shawn


Mime
View raw message