Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

The GSA search controller requires a template configuration to build URLs for GSA search URLs. This url should be the full URL needed to retrieve XML from the GSA, with "QUERY", "SITE", and "NUM" replacing the values for the search query, search site, and number of items to return, respectivelysearches. You will need to configure the base URL, some parameters, and the name of the stylesheet you'd like displayed when users click the "more results" link that goes to the GSA itself.

Code Block
xml
xml

 
  <!-- GSA search AJAX target -->    
    <bean name="/gsaSearch" class="org.jasig.portlet.search.mvc.GsaSearchController">
        <property name="gsaUrlTemplategoogleBaseUrl" value="http://google.school.edu/search?q=QUERY&amp;site=SITE&amp;num=NUM&amp;btnG=Search&amp;entqr=0&amp;ud=1&amp;sort=date%3AD%3AL%3Ad1&amp;output=xml&amp;oe=UTF-8&amp;ie=UTF-8&amp;client=bluesite_frontend&amp;proxyreload=1"/>
   "/>
    <property name="googleParameters">
        <map>
            <entry key="output" value="xml_no_dtd"/>
            <entry key="oe" value="UTF-8"/>
            <entry key="ie" value="UTF-8"/>
            <entry key="client" value="university_frontend"/>
        </map>
    </property>
    <property name="viewgoogleStylesheetName" refvalue="gsaViewuniversity_frontend"/>
    <property name="view" ref="gsaView"/>
</bean>

The current version of the tabbed search portlet has only been tested against GSA version 3.2 at the current time. If Chances are that the supplied stylesheet will just work, but if you're using a different GSA version, you may need to add a new GSA XSLT file and change the stylesheet location to this new XSL transform.

...

Google Search Appliances may be configured with multiple search sites. You can enter a list of these search sites into the search controller, which will later be displayed to users as a select menu. If the list is omitted, the select menu will not be displayed, and no site selection will be sent to the GSA. If only one option is present, the form will submit that value from a hidden input field.

Code Block
xml
xml
<!-- main portlet view -->
<bean id="searchController"
    class="org.jasig.portlet.search.mvc.TabbedSearchController">

        . . .

    <!-- 
        Google Search Appliance sites to allow selection from.  Only
        relevant if the GSA search is enabled above.
    -->
    <property name="gsaSearchEngines">
        <list>
            <value>Campus</value>
            <value>Library</value>
        </list>
    </property>
</bean>

...