Uploaded image for project: 'Spring Data for Apache Solr'
  1. Spring Data for Apache Solr
  2. DATASOLR-291

Pagable totalElement count is incorrect when group by

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.5.4 (Gosling SR4)
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
    • Environment:
      Windows 7, Spring Tool Suite

      Description

      When getting the totalElements using the following group by query.

      Field field = new SimpleField("personId");
      Query search = new SimpleQuery(cb);
      search.addGroupByField(field);
      Page<PatientIndex> results = solrOperations.queryForPage(search, PatientIndex.class);
      

      The Number of Elements and the results are returning correctly. But the totalElements count is incorrect.

      It returns the whole number of record count not the count after grouped by the records.

        Attachments

          Activity

            People

            Assignee:
            cstrobl Christoph Strobl
            Reporter:
            yogyah Yogya H
            Last updater:
            Yogya H
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: