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 7DF77C128 for ; Fri, 25 May 2012 14:10:26 +0000 (UTC) Received: (qmail 70253 invoked by uid 500); 25 May 2012 14:10:25 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 70078 invoked by uid 500); 25 May 2012 14:10:25 -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 70067 invoked by uid 99); 25 May 2012 14:10:25 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2012 14:10:25 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 093ED142839 for ; Fri, 25 May 2012 14:10:24 +0000 (UTC) Date: Fri, 25 May 2012 14:10:24 +0000 (UTC) From: "Mark Miller (JIRA)" To: dev@lucene.apache.org Message-ID: <607096130.2217.1337955024041.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1197491845.17720.1322487520388.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (SOLR-2923) IllegalArgumentException when using useFilterForSortedQuery on an empty index 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-2923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Miller reassigned SOLR-2923: --------------------------------- Assignee: Mark Miller > IllegalArgumentException when using useFilterForSortedQuery on an empty index > ----------------------------------------------------------------------------- > > Key: SOLR-2923 > URL: https://issues.apache.org/jira/browse/SOLR-2923 > Project: Solr > Issue Type: Bug > Components: search > Affects Versions: 3.6, 4.0 > Reporter: Adrien Grand > Assignee: Mark Miller > Priority: Trivial > Attachments: SOLR-2923.patch > > > An IllegalArgumentException can occur under the following circumstances: > - the index is empty, > - {{useFilterForSortedQuery}} is enabled, > - {{queryResultsCache}} is disabled. > Here are what the exception and its stack trace look like (Solr trunk): > {quote} > numHits must be > 0; please use TotalHitCountCollector if you just need the total hit count > java.lang.IllegalArgumentException: numHits must be > 0; please use TotalHitCountCollector if you just need the total hit count > at org.apache.lucene.search.TopFieldCollector.create(TopFieldCollector.java:917) > at org.apache.solr.search.SolrIndexSearcher.sortDocSet(SolrIndexSearcher.java:1741) > at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1211) > at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:353) > ... > {quote} > To reproduce this error from a fresh copy of Solr trunk, edit {{example/solr/conf/solrconfig.xml}} to disable {{queryResultCache}} and enable {{useFilterForSortedQuery}}. Then run {{ant run-example}} and issue a query which sorts against any field ({{http://localhost:8983/solr/select?q=*:*&sort=manu+desc}} for example). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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