[jira] [Commented] (SOLR-2650) Empty docs array on response with grouping and result pagination
[ https://issues.apache.org/jira/browse/SOLR-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15539571#comment-15539571 ] Alexandre Rafalovitch commented on SOLR-2650: - Can this be reproduced against latest Solr? The code path and libraries involved changed many times over. > 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=*:*=1=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 was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2650) Empty docs array on response with grouping and result pagination
[ https://issues.apache.org/jira/browse/SOLR-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13098333#comment-13098333 ] Mike Lerley commented on SOLR-2650: --- I seem to be having the same problem. I've just tried the latest code from branch_3x (r1165749) and it's still a problem. I get a similar exception: {noformat} Sep 6, 2011 4:11:31 PM org.apache.solr.common.SolrException log SEVERE: java.lang.ArrayIndexOutOfBoundsException: 49 at org.apache.solr.search.DocSlice$1.nextDoc(DocSlice.java:117) at org.apache.solr.response.JSONWriter.writeDocList(JSONResponseWriter.java:492) at org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:129) at org.apache.solr.response.JSONWriter.writeNamedListAsMapWithDups(JSONResponseWriter.java:180) at org.apache.solr.response.JSONWriter.writeNamedList(JSONResponseWriter.java:296) at org.apache.solr.response.JSONWriter.writeResponse(JSONResponseWriter.java:93) at org.apache.solr.response.JSONResponseWriter.write(JSONResponseWriter.java:52) at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:343) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:265) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679) {noformat} I seem to be able to trigger it using quoted strings, among other random things. I hope this can get fixed soon. 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=1start=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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
Re: [jira] [Commented] (SOLR-2650) Empty docs array on response with grouping and result pagination
It's an svn co. This page has the info... http://wiki.apache.org/solr/HowToContribute NOTE: there's been some great work done to allow you to get this all up and running in IntelliJ or Eclipse. I'm not familiar with the Maven stuff, but it's being maintained too. Thanks for volunteering! Best Erick On Wed, Aug 31, 2011 at 5:04 PM, Des Lownds (JIRA) j...@apache.org wrote: [ https://issues.apache.org/jira/browse/SOLR-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13094896#comment-13094896 ] Des Lownds commented on SOLR-2650: -- I'd be happy to test a nightly, where do I download them from? or is it a svn co? 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=1start=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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2650) Empty docs array on response with grouping and result pagination
[ https://issues.apache.org/jira/browse/SOLR-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13094643#comment-13094643 ] Des Lownds commented on SOLR-2650: -- I was able to duplicate this problem, and was also seeing the following stack trace in some circumstances: {code} SEVERE: java.lang.ArrayIndexOutOfBoundsException: 35 at org.apache.solr.search.DocSlice$1.nextDoc(DocSlice.java:117) at org.apache.solr.response.XMLWriter$3.writeDocs(XMLWriter.java:543) at org.apache.solr.response.XMLWriter.writeDocuments(XMLWriter.java:482) at org.apache.solr.response.XMLWriter.writeDocList(XMLWriter.java:519) at org.apache.solr.response.XMLWriter.writeVal(XMLWriter.java:582) at org.apache.solr.response.XMLWriter.writeNamedList(XMLWriter.java:620) at org.apache.solr.response.XMLWriter.writeVal(XMLWriter.java:593) at org.apache.solr.response.XMLWriter.writeNamedList(XMLWriter.java:620) at org.apache.solr.response.XMLWriter.writeVal(XMLWriter.java:593) at org.apache.solr.response.XMLWriter.writeResponse(XMLWriter.java:131) at org.apache.solr.response.XMLResponseWriter.write(XMLResponseWriter.java:35) at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:343) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:265) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) {code} 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 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=1start=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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2650) Empty docs array on response with grouping and result pagination
[ https://issues.apache.org/jira/browse/SOLR-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13094647#comment-13094647 ] Des Lownds commented on SOLR-2650: -- Seems that using group.format=simple results in the ArrayIndexOutOfBounds exception, while using standard format returns wrong results(no results.) 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 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=1start=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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2650) Empty docs array on response with grouping and result pagination
[ https://issues.apache.org/jira/browse/SOLR-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13094651#comment-13094651 ] Yonik Seeley commented on SOLR-2650: There are a few grouping+paging bugs fixed in 3x (which will be 3.4 when released). Can you try a recent 3x nightly build and see if any of the problems remain? 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 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=1start=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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-2650) Empty docs array on response with grouping and result pagination
[ https://issues.apache.org/jira/browse/SOLR-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13094896#comment-13094896 ] Des Lownds commented on SOLR-2650: -- I'd be happy to test a nightly, where do I download them from? or is it a svn co? 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=1start=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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org