You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by kfdroid <kf...@gmail.com> on 2013/03/14 19:55:48 UTC
Searching across multiple collections (cores)
I've been looking all over for a clear answer to this question and can't seem
to find one. It seems like a very basic concept to me though so maybe I'm
using the wrong terminology. I want to be able to search across multiple
collections (as it is now called in SolrCloud world, previously called
Cores). I want the scoring, sorting, faceting etc. to be blended, that is
to be relevant to data from all the collections, not just a set of
independent results per collection. Is that possible?
A real-world example would be a merchandise site that has books, movies and
music. The index for each of those is quite different and they would have
their own schema.xml (and therefore be their own Collection). When in the
'books' area of a website the users could search on fields specific to books
(ISBN for example). However on a 'home' page a search would span across all
3 product lines, and the results should be scored relative to each other,
not just relative to other items in their specific collection.
Is this possible in v4.0? I'm pretty sure it wasn't in v1.4.1. But it seems
to be a fundamentally useful concept, I was wondering if it had been
addressed yet.
Thanks,
Ken
--
View this message in context: http://lucene.472066.n3.nabble.com/Searching-across-multiple-collections-cores-tp4047457.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Searching across multiple collections (cores)
Posted by kfdroid <kf...@gmail.com>.
I'm assuming from that link I would use the following:
/Query all shards of multiple compatible collections, explicitly specified:/
http://localhost:8983/solr/collection1/select?collection=collection1_NY,collection1_NJ,collection1_CT
where collection1_NY, NJ and CT could be books, movies, music in my case.
But what does it mean to be a 'compatible' collection? If that just means
the schema.xml for each of them has to have a common field or fields that
can be searched against, then I'm golden. But if 'compatible' means
something more specific I would need a definition to see if this will work
for me.
Ken
--
View this message in context: http://lucene.472066.n3.nabble.com/Searching-across-multiple-collections-cores-tp4047457p4047466.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Searching across multiple collections (cores)
Posted by Mark Miller <ma...@gmail.com>.
Yes, with SolrCloud, it's just the collection param (as long as the schemas are compatible for this):
http://wiki.apache.org/solr/SolrCloud#Distributed_Requests
- Mark
On Mar 14, 2013, at 2:55 PM, kfdroid <kf...@gmail.com> wrote:
> I've been looking all over for a clear answer to this question and can't seem
> to find one. It seems like a very basic concept to me though so maybe I'm
> using the wrong terminology. I want to be able to search across multiple
> collections (as it is now called in SolrCloud world, previously called
> Cores). I want the scoring, sorting, faceting etc. to be blended, that is
> to be relevant to data from all the collections, not just a set of
> independent results per collection. Is that possible?
>
> A real-world example would be a merchandise site that has books, movies and
> music. The index for each of those is quite different and they would have
> their own schema.xml (and therefore be their own Collection). When in the
> 'books' area of a website the users could search on fields specific to books
> (ISBN for example). However on a 'home' page a search would span across all
> 3 product lines, and the results should be scored relative to each other,
> not just relative to other items in their specific collection.
>
> Is this possible in v4.0? I'm pretty sure it wasn't in v1.4.1. But it seems
> to be a fundamentally useful concept, I was wondering if it had been
> addressed yet.
> Thanks,
> Ken
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Searching-across-multiple-collections-cores-tp4047457.html
> Sent from the Solr - User mailing list archive at Nabble.com.