In the source for org.compass.spring.web.mvc.CompassSearchController (I'll use line numbers from the SVN browse page at:
http://svn.opensymphony.com/fisheye/browse/compass/trunk/src/main/src/org/compass/spring/web/mvc/CompassSearchController.java?r=1210
) line number 105-107 cater for when the call to performSearch comes in with no page number.
Although the extension point doProcessBeforeAttach is called in these circumstances, after the detach, the other extension point doProcessAfterDetach is never called.
e.g.: I reckon this code snippet:
...
105 if (pageSize == null) {
106 doProcessBeforeDetach(searchCommand, session, hits, -1, -1);
107 detachedHits = hits.detach();
108 } else {
...
Perhaps should look like:
105 if (pageSize == null) {
106 doProcessBeforeDetach(searchCommand, session, hits, -1, -1);
107 detachedHits = hits.detach();
108 doProcessAfterDetach(searchCommand, session, detachedHits);
108 } else {
...
Chris