Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4461

Multiple FacetRequest with the same path creates inconsistent results

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Lucene Fields:
      New, Patch Available

      Description

      Multiple FacetRequest are getting merged into one creating wrong results in this case:

      FacetSearchParams facetSearchParams = new FacetSearchParams();
      facetSearchParams.addFacetRequest(new CountFacetRequest(new CategoryPath("author"), 10));
      facetSearchParams.addFacetRequest(new CountFacetRequest(new CategoryPath("author"), 10));

      Problem can be fixed by defining hashcode and equals in certain way that Lucene recognize we are talking about different requests.

      Attached test case.

        Attachments

          Activity

            People

            • Assignee:
              shaie Shai Erera
              Reporter:
              rvega Rodrigo Vega

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment