Getting Started

The best way to get started is by downloading the sample site. This site includes a sample collection file, sample stylesheet, and test page which can be used for testing configuration.

Configuration

Within the gsmock.config section, collections and stylesheets are configured like this:

  <gsmock.config>
    <collections>
      <add name="default" file="~/GSMock/data/sample_results.xml" />
    </collections>
    <stylesheets>
      <add name="default_frontend" file="~/GSMock/stylesheets/sample_transform.xsl" />
    </stylesheets>
  </gsmock.config>

When a search request is submitted to GSMock, the GSA paramater site maps to the collection defined here, the proxystylesheet parameter (if specified) maps to the stylesheet defined here.

Testing

Packaged in the sample site is a test page located at \GSMock\test.aspx. This test page works in a similar fashion to the Test Centre within the GSA admin console. Query terms, collection and stylesheet can be specified which are then loaded into an IFrame.

Last edited Feb 5, 2011 at 5:28 PM by adam_jenkin, version 3

Comments

No comments yet.