Submit a Query and Receive a Response

The Response tag (<search:response>) sends a Query to a given Platform and stores the Response in a JSP variable.

Usage

This example shows how to submit a query using a given Platform and retrieve the response:

<search:response var="response" platform="${platform}" query="${query}" />

Tag body

The body of the Response tag can be used to specify which Processors should be applied to the Response returned from the search platform.

For example, a Processor tag placed in the Response tag body could highlight hits in the teasers or summaries that are returned with each result. Multiple Processor tags can be specified for sequential processing of the Response. Only Processors parameterized with the Response class are allowed here.

<search:response var="response" platform="${platform}" query="${query}" />
    <workflow:processor name="twigkit.search.processors.response.ProcessorName1" attr1="value1" attr2="value2" />
    <workflow:processor name="twigkit.search.processors.response.ProcessorName2" attr1="value1" attr2="value2" />
</search:response>