[development] SOLR - multiple indexes on single site?

Jeff Hartman lists at jeffhartman.com
Thu Dec 15 00:53:54 UTC 2011

Thanks Wes,

And what if I'm using D6? :)


On Dec 14, 2011, at 6:52 PM, Wesley Nichols wrote:

> If you are using D7, I recommend this combination
> search_api
> search_api_solr
> facetapi
> search_api_page
> You can create multiple indexes and select fields from a particular
> entity type and it will automatically offer to join anything else that
> is related to that entity through a reference field.
> In your case, I would create main index on nodes of the types you want
> to search, then another index with the product display nodes, join the
> commerce products and then you can use the facet api to just check
> select your facets.
> Finally, create a search_api_page for each index, and add your facet
> blocks to these pages and voila, solr-based faceted search.
> Wes 
> On Wed, 2011-12-14 at 10:22 -0600, Jeff Hartman wrote:
>> I'm new to Solr and have a site where I would like to use Solr to power keyword search and product search, both on the same site.
>> I've googled around quite a bit and all I've found is how to power multiple sites with Solr, not power multiple sections on the site. I don't know if using 2 separate indexes is possible (or necessary), but I would like:
>> - different URL paths for search result (one keyword results, the other product search results)
>> - results in product search to only query against product content types, the keyword for any content type
>> - I envision facets to only be needed in product results, but there is potential to use in general keyword results (though results content grouping is much more important to me!)
>> Thanks for any direction you can provide.
>> Jeff

More information about the development mailing list