A general Spring's MVC Controller that perform the search operation of Compass .
Will perform the search operation on the Compass instance using the query supplied
by the
CompassSearchCommand .
Pagination can be enabled by setting the pageSize property on the controller,
as well as providing the page number property on the
CompassSearchCommand .
The controller has two views to be set, the searchView , which is the view that
holds the screen which the user will initiate the search operation, and the
searchResultsView , which will show the results of the search operation (they can be
the same page).
The results of the search operation will be saved under the searchResultsName,
which defaults to "searchResults".
In order to extend and execute additional operations during the search process
org.compass.core.support.search.CompassSearchHelper should be extended and
set using
CompassSearchController.setSearchHelper(org.compass.core.support.search.CompassSearchHelper) .
author: kimchy |