Stevo Slavic created MAHOUT-1312:
------------------------------------

             Summary: LocalitySensitiveHashSearch.search does not respect 
search result limit
                 Key: MAHOUT-1312
                 URL: https://issues.apache.org/jira/browse/MAHOUT-1312
             Project: Mahout
          Issue Type: Bug
          Components: Math
    Affects Versions: 0.8
            Reporter: Stevo Slavic
            Assignee: Dan Filimon
            Priority: Minor


According to documented {{org.apache.mahout.math.neighborhood.Searcher}}, 
{{public abstract List<WeightedThing<Vector>> search(Vector query, int limit)}} 
contract, {{limit}} should be the number of results to return.

{{LocalitySensitiveHashSearch}} implements {{Searcher}} but does not respect 
that contract, as it can return more results than the given limit.

This issue was encountered while debugging MAHOUT-1302.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to