Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D10B274C3 for ; Wed, 31 Aug 2011 20:56:34 +0000 (UTC) Received: (qmail 30069 invoked by uid 500); 31 Aug 2011 20:56:33 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 29951 invoked by uid 500); 31 Aug 2011 20:56:32 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 29853 invoked by uid 99); 31 Aug 2011 20:56:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2011 20:56:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2011 20:56:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B1B0A44F1D for ; Wed, 31 Aug 2011 20:56:10 +0000 (UTC) Date: Wed, 31 Aug 2011 20:56:10 +0000 (UTC) From: "Des Lownds (JIRA)" To: dev@lucene.apache.org Message-ID: <1928175438.4533.1314824170724.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <924704378.9419.1310552279982.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-2650) Empty docs array on response with grouping and result pagination MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Des Lownds updated SOLR-2650: ----------------------------- Attachment: grouping_patch.txt patch file > Empty docs array on response with grouping and result pagination > ---------------------------------------------------------------- > > Key: SOLR-2650 > URL: https://issues.apache.org/jira/browse/SOLR-2650 > Project: Solr > Issue Type: Bug > Components: search > Affects Versions: 3.3 > Reporter: Massimo Schiavon > Attachments: grouping_patch.txt > > > Requesting a certain number of rows and setting start parameter to a greater value returns 0 results with grouping enabled. > For example, requesting: > http://localhost:8080/solr/web/select/?q=*:*&rows=1&start=2 > (grouping and highlighting are enabled by default) > I get this response: > [...] > response: { > numFound: 117852 > start: 2 > docs: [ ] > } > highlighting: { > 0938630598: { > title: [ "..." ] > content: [ "..." ] > } > } > [...] > docs array is empty while the highlighted values of the document are present > Debugging the request in > org.apache.solr.search.Grouping.Command.createSimpleResponse() at row 534 > [...] > int len = Math.min(numGroups, docsGathered); > if (offset > len) { > len = 0; > } > [...] > The initial vars values are: > numGroups = 1 > docsGathered = 3 > offset = 2 > so after the execution len = 0 > I've tried commenting the if statement and this resolves the issue but could introduce some other bugs. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org