This patch attempts to do a number of things to allow for meta-type specific search facets. At this point, I need to start getting feedback on this and some help to keep moving this forward.

Here's what we have:

  • drupalorg_search_apachesolr_modify_query - at the moment, this is pulling all tid values and creating an OR instead of an AND relationship. This is to facilitate a user case similar to finding a theme that is 800x600 OR 1024x768.
  • drupalorg_search_block - creates the new block that will be placed at the top of the search results to facilitate unique faceting.
  • drupalorg_search_base_meta_facet_form - creates the base meta-type faceting form with consistent fields (submit, meta_type) and dispatches to meta_type specific function
  • drupalorg_search_base_meta_facet_form_submit - handling for meta_facet form submissions to redirect to the appropriate search page
  • drupalorg_search_theme_meta_facet_form & drupalorg_search_project_meta_facet_form - creates the actual form for the theme/project-specific faceting

What isn't done or needs to be done:

  • drupalorg_search_apachesolr_modify_query - the current approach will NOT work in practice. It's here just for reference. We don't want to OR all taxonomy terms, but we'll want to create groups of OR terms inside of a particular vocabulary
  • The entire workflow needs to be reviewed (and probably simplified and improved). This is a start, but I'm positive it can be done better for production
  • Additional meta-facets - This only does theming and an example for modules. It doesn't touch the other meta-facets, so everything else will still need to be built out and modules will need to be improved/refined
  • Theming - This may not really belong here, but right now I am sticking the block in content_top which skews the look/feel of this page. Creating a new region for this content to reside in would probably be the easiest solution, but I just wanted to note that it's still out there.

To set this up for testing, you'll need to have 1. downloaded the solr index from d.o. with meta-type facets, 2. placed the "Drupalorg Search: Meta-Type Specific Facets" block on the search pages (it'll be context sensitive and only show up when needed within there), 3. faceted on the meta-type of "Theme"

Questions - Feel free to email me directly as well bill AT achieve internet dot com

CommentFileSizeAuthor
#1 drupalorg_search-mtsb.patch6.47 KBcsevb10

Comments

csevb10’s picture

StatusFileSize
new6.47 KB

Attaching the patch that's supposed to be here...

csevb10’s picture

Status: Active » Closed (fixed)

Closing. This was for the original redesign.