Forgive me if this has been answered before; a 30 minute scouring of the queue didn't provide anything similar. I simply would like to produce a block on the Solr search page that is a list of the Solr results, but filtered to a specific content type. Essentially, there would be two search result displays:

1) the main Solr search page results and
2) a block containing the results filtered down to a specific content type and reduced to a smaller number of results.

Think of this like a search returning all results, while the block contains promotional material specifically related to the search. Does anyone have some tips/guidance on where to go to accomplish something like this?

Comments

pwolanin’s picture

drupal.org is doing something like this to repeat a given search with added filtering or sorting, though the current code is pretty bad and not an ideal model.

Basically you'd need to do something like taking the final query object that ran, add another filter, remove all the facet params, remove highlighting params, and run another search.

pwolanin’s picture

Status: Active » Closed (fixed)