SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-323
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Shay Banon
Reporter: Dan Allen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Compass

add totalResults to CompassSearchResults

Created: 30/Nov/06 06:35 PM   Updated: 01/Dec/06 10:25 AM
Component/s: Compass::Core
Affects Version/s: 1.1 M3
Fix Version/s: 1.1 RC1


 Description  « Hide
The information for total hits (not just the number of detached hits) does not make it into the CompassSearchResults. This information is still relevant even though the results are truncated for display. It can certainly be calculated by iterating over the Page[] array and totaling the size of each Page, but this responsibility should be delegated to the object itself.

A new paramter should be added to the constructor of CompassSearchResults

CompassSearchResults( CompassHit[] hits, long time, int totalResults );

int getTotalResults();



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 01/Dec/06 10:25 AM
CompassSearchResult now exposes getTotalHits