On The Guardian's website (UK newspaper), they're also using a faceted search. When you click on a facet to filter by, it gets added to an 'Active filters' block. When you click on another facet, it gets added to the same block etc etc.
The advantage I see is this: instead of having the active filters spread out over several blocks, the user sees one block with all the active filters, which makes the filtering process (clicking and unclicking facets) more clear, imho. On the other hand, the approach we currently use, makes it clear which kind of filter you're dealing with.
You can try it out at http://browse.guardian.co.uk/search?search_target=%2Fsearch&fr=cb-guardi...
Should we group active facets together in one block? Or not?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | current_search_block.jpg | 43.41 KB | janusman |
Comments
Comment #1
xnickmx commentedI like the idea of having all the active facets grouped together in one block.
Comment #2
pwolanin commentedthis is already done in the 6.x version.
Comment #3
JacobSingh commentedIt is? I don't think so. I think he's talking about what Jeff suggested.
Comment #4
xnickmx commentedAs far as I can tell, in 6.x, the facets are spread out across different blocks. These are all separate blocks:
I like the option of having them in separate blocks, but it would be nice to be able to put everything into one block as well, as brunodbo suggests.
Comment #5
janusman commentedAgain, faceted_search module has "been there" =) It groups facets into a single block, and a single admin page manages the block names, the order to show them, or whether to hide them.
Comparing both modules, I think the end product is almost the same. Apache Solr offers a bit more flexibility (spreading out facets among different regions, and more options for theming perhaps?), but is also much more lengthy to setup.
Comment #6
janusman commentedI apologize; I commented on having the available facets in a single block, and not the active facets.
@pwolanin is right, there is a "Current search" block that shows only the active facets and keyword search in one block. Attached is a sample image from current 6.x-1.x-DEV
Comment #7
janusman commentedShould this be marked as duplicate, since it'll be resolved as/when the D5 backport is done?
Comment #8
davidwhthomas commentedIf anyone is interested in combining all facets into a single block, I implemented that using the D6 version
The key theme function to build the combined facet block is
I called it from a hook_block implementation to provide an extra combined facet block.
DT
Comment #9
jpmckinney commentedSelected filters are already grouped in the currentsearch block. If you want to remove selected filters from facet blocks, implement theme_apachesolr_facet_list (or write a contrib module to do the same). I am against adding theming features to the module.
Comment #10
davidwhthomas commentedThe function in #8 just creates an extra block that combines available facets into one block.
Normally apachesolr facets are in multiple blocks.
It's different from the 'current search' block in that it shows available and selected facets, not just selected facets.
It's here if anyone needs that feature.
DT
Comment #11
jpmckinney commentedAha, right. I was replying to the issue title, and hadn't noticed there was discussion here about having a single block with all the facets. In any case, I still don't think this module should be responsible for providing the myriad possible UIs people may want for their sites. It should provide a unique, basic UI, and offer developers every opportunity to customize/override it.