Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-1312

LocalitySensitiveHashSearch.search does not respect search result limit

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.9
    • Component/s: Math
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              smarthi Suneel Marthi
              Reporter:
              sslavic Stevo Slavic
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: