Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 82807 invoked from network); 15 Feb 2010 18:24:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2010 18:24:21 -0000 Received: (qmail 54468 invoked by uid 500); 15 Feb 2010 18:24:19 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 54418 invoked by uid 500); 15 Feb 2010 18:24:19 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 54408 invoked by uid 99); 15 Feb 2010 18:24:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2010 18:24:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2010 18:24:09 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Nh5bp-00037g-94 for solr-user@lucene.apache.org; Mon, 15 Feb 2010 10:23:49 -0800 Message-ID: <27597870.post@talk.nabble.com> Date: Mon, 15 Feb 2010 10:23:49 -0800 (PST) From: cmose To: solr-user@lucene.apache.org Subject: Re: Custom SearchComponent, only getting numFound back In-Reply-To: <27596624.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: cjmose@gmail.com References: <27596624.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org A little more info. Doing some more digging it appears that result.getDocList().size() is returning 0 which would explain why I'm not getting any documents in my result. I'm not quite sure how/why that would be returning 0 while result.getDocList().matches() is returning > 0? It also looks like result.getDocListAndSet().docSet.size() is > 0... any suggestions? cmose wrote: > > I'm attempting to write a custom SearchComponent that utilizes some custom > filters but i'm obviously missing something key. I extend SearchComponent > and override the prepare and process methods and then set the results on > the result builder a la: > > SolrIndexSearcher.QueryCommand cmd = rb.getQueryCommand(); > SolrIndexSearcher.QueryResult result = new > SolrIndexSearcher.QueryResult(); > searcher.search(result, cmd); > rb.setResult(result); > response.add("response", builder.getREsults().docList); > > > However, when I execute a query against the handler using this component, > I get a empty result element e.g., > > > > I'm not quite sure where I'm falling down here and how I'm getting a > 0 > numFound yet an empty result element... > Thanks much > -- View this message in context: http://old.nabble.com/Custom-SearchComponent%2C-only-getting-numFound-back-tp27596624p27597870.html Sent from the Solr - User mailing list archive at Nabble.com.