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

LocalitySensitiveHashSearch.search does not respect search result limit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8
    • 0.9
    • classic
    • 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

            smarthi Suneel Marthi
            sslavic Stevo Slavić
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: