Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-292

MoreLikeThisHandler generates incorrect facet counts

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: search
    • Labels:
      None

      Description

      When obtaining facet counts using the MoreLikeThis handler, the facet information returned is generated from the document list returned rather than the entire set of matching documents. For example, if your MoreLikeThis query returns by default 10 documents, then getFacetCounts() returns values based only on these 10 documents, despite the fact that there may be thousands of matching documents in the set.

      The soon-to-be uploaded patch addresses this particular issue by changing the object type returned by MoreLikeThisHelper.getMoreLikeThis() from DocList to DocListAndSet and ensuring that the facet count is generated from the entire set rather than the document list. The MLT functionality of the StandardRequestHandler should not be affected by this change.

        Activity

        Hide
        pberkel Pieter Berkel added a comment -

        Patch updates "src/java/org/apache/solr/handler/MoreLikeThisHandler.java" and fixes the facet count problem.

        Show
        pberkel Pieter Berkel added a comment - Patch updates "src/java/org/apache/solr/handler/MoreLikeThisHandler.java" and fixes the facet count problem.
        Hide
        ryantxu Ryan McKinley added a comment -

        fixed in 554667.

        Thanks Pieter!

        Show
        ryantxu Ryan McKinley added a comment - fixed in 554667. Thanks Pieter!

          People

          • Assignee:
            ryantxu Ryan McKinley
            Reporter:
            pberkel Pieter Berkel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development