Mahout
  1. Mahout
  2. MAHOUT-1312

LocalitySensitiveHashSearch.search does not respect search result limit

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development