Make Group Top Result?

I've figured out how and where to change the content quality options, but I'm struggling to figure out how or if there is a way to get groups themselves to always rank higher than other content in searches. Is this possible?

  • Yes, with a quick edit to the configuration file for the search/Solr.

    1. Locate solrconfig.xml file on the server running Solr and make a backup.
    2. Open solrconfig.xml for editing, and find a line (~442) that starts with <requestHandler name="/select ...
    3. At the bottom of this element, you will see an element like <lst name=appends"> (~line 510). Items in this section are appended to all queries.
    4. Add the following boost:
      <str name="boost">query({! v='(type:group)^=2'},1)</str>
    5. The final "appends" element should look like this:

      <lst name="appends">
        <!-- boost groups. Change the value in the constant boost (^=2) to give more boost. e.g. below
        change to ^=5 to give a 5X boost.  -->
        <str name="boost">query({! v='(type:group)^=2'},1)</str>
      </lst>

    This will boost 'group' results 2X. You can experiment with different values. The values can be any decimal value - ex. 1.5, 2, 3.