What are the use cases for ApacheSolr search on drupal.org?

Events happening in the community are now at Drupal community events on www.drupal.org.
You are viewing a wiki page. You are welcome to join the group and then edit it. Be bold!

As part of the D7 Upgrade initiative, the ApacheSolr Team is looking for some guidance on the behavior-driven user stories for all the ways that search should be functional on www.drupal.org so that they can manually test for things that might be broken and make sure they've completed the upgrade properly without losing anything.

  • Core search (e.g. http://drupal.org/search/apachesolr_multisitesearch/apachesolr)
    • Filters exist in the search box in the header of every page
    • Search box in the header on every page drives to solr d.o search
    • All searches contain a sorting option at the top of the page
    • Contains a text search field in the right column
    • "Or search for..." is NOT handled by Solr at present
    • "Or filter by..." block in the right column of the main search
      • Meta-type filter for Solr (Rules for assignment are in code and happen on index)
      • Contains an "All" element that is an aggregate of all results with meta-type indexing (aka. not truly all results in the result set, though these are one and the same after filtering)
      • Module and Theme elements have a more advanced filtering block that displays (contains the sort element from above) that is generated by project_solr
  • Download & Extend (http://drupal.org/download)
    • Most of the lists on this page below the Modules header are driven by drupalorg_order_facets
      • Lists are filter and sort driven result sets from solr
    • The version filter is driven by project_solr
  • Project listings (e.g. http://drupal.org/project/modules [themes, distributions])
    • Driven by project_solr
    • Filter list predominately re-uses the same form as on the project-filtered core search
    • Contains 2 blocks in the right column (New/Most installed) that are sorted-lists of search results. aka. search for text, see most installed modules containing that text. These lists can completely mirror the primary search
  • Search documentation block (http://drupal.org/community)
    • Located in the right column.
    • Does a solr lookup based on search term (using a rest url in drupalorg_search) that searches solr documents filtering to only show documentation.
  • Usage statistics (e.g. http://drupal.org/search/apachesolr_multisitesearch/omega?filters=ss_met...)
    • Actual statistics are aggregated by the project module, but statistics are pushed into solr for use. I do NOT know for sure all the locations that leverage the solr data for statistics, but I know the following:
      • It is used for the most installed, last release, and last build sorting options on the main search and on the project listing pages (only displays for project-based content)
      • The sort is used to order the block displays for the most installed blocks on download & extend and project listing pages.
  • Multi-site search (e.g. http://drupal.org/search/apachesolr_multisitesearch/apachesolr?filters=s...)
    • Association.Drupal.org, Groups.Drupal.org, and Drupal.org are sharing an index. Subsites return results of their site and do not use the meta-type facet. Drupal.org does show results from all sites.
    • (DrupalCon seems to be off on its own at the moment, but may behave similarly in the future. Recorded talks are valuable content.)

Comments

Use cases

csevb10's picture

Ok, I'll take a stab at a bunch of the use cases for Solr on d.o and see if I miss anything.

  • Core search (e.g. http://drupal.org/search/apachesolr_multisitesearch/apachesolr)
    • Filters exist in the search box in the header of every page
    • Search box in the header on every page drives to solr d.o search
    • All searches contain a sorting option at the top of the page
    • Contains a text search field in the right column
    • "Or search for..." is NOT handled by Solr at present
    • "Or filter by..." block in the right column of the main search
      • Meta-type filter for Solr (Rules for assignment are in code and happen on index)
      • Contains an "All" element that is an aggregate of all results with meta-type indexing (aka. not truly all results in the result set, though these are one and the same after filtering)
      • Module and Theme elements have a more advanced filtering block that displays (contains the sort element from above) that is generated by project_solr
  • Download & Extend (http://drupal.org/download)
    • Most of the lists on this page below the Modules header are driven by drupalorg_order_facets
      • Lists are filter and sort driven result sets from solr
    • The version filter is driven by project_solr
  • Project listings (e.g. http://drupal.org/project/modules [themes, distributions])
    • Driven by project_solr
    • Filter list predominately re-uses the same form as on the project-filtered core search
    • Contains 2 blocks in the right column (New/Most installed) that are sorted-lists of search results. aka. search for text, see most installed modules containing that text. These lists can completely mirror the primary search
  • Search documentation block (http://drupal.org/community)
    • Located in the right column.
    • Does a solr lookup based on search term (using a rest url in drupalorg_search) that searches solr documents filtering to only show documentation.
  • Usage statistics (e.g. http://drupal.org/search/apachesolr_multisitesearch/omega?filters=ss_met...)
    • Actual statistics are aggregated by the project module, but statistics are pushed into solr for use. I do NOT know for sure all the locations that leverage the solr data for statistics, but I know the following:
      • It is used for the most installed, last release, and last build sorting options on the main search and on the project listing pages (only displays for project-based content)
      • The sort is used to order the block displays for the most installed blocks on download & extend and project listing pages.
  • Multi-site search (e.g. http://drupal.org/search/apachesolr_multisitesearch/apachesolr?filters=s...)
    • Originally, it was discussed that all d.o sites would use the same index and content would be cross-pollinated between d.o, a.d.o, g.d.o, l.d.o and drupalcon sites. At least a.d.o, g.d.o and d.o are sharing an index, but a.d.o & g.d.o are showing only results of their site. D.o does appear to still be able to surface a.d.o & g.d.o results and link to the original site. Drupalcon seems to be off on its own at the moment.

Drupal.org Improvements

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week