From dev-return-26356-apmail-forrest-dev-archive=forrest.apache.org@forrest.apache.org Tue Jan 16 23:31:26 2007 Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 72215 invoked from network); 16 Jan 2007 23:31:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2007 23:31:24 -0000 Received: (qmail 87011 invoked by uid 500); 16 Jan 2007 23:31:29 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 86849 invoked by uid 500); 16 Jan 2007 23:31:29 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 86796 invoked by uid 99); 16 Jan 2007 23:31:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 15:31:29 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [81.169.146.190] (HELO mo-p07-ob.rzone.de) (81.169.146.190) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 15:31:19 -0800 Received: from [192.168.1.33] (42.Red-88-17-15.dynamicIP.rima-tde.net [88.17.15.42]) by post.webmailer.de (klopstock mo47) (RZmta 3.11) with ESMTP id j0GLXnNG002e7H; Wed, 17 Jan 2007 00:30:56 +0100 (MET) Date: Wed, 17 Jan 2007 00:30:56 +0100 (MET) Subject: Re: solr + cocoon problem From: Thorsten Scherler Reply-To: dev@forrest.apache.org To: forrest dev Cc: solr-user In-Reply-To: <45AD4164.2040808@hhpl.on.ca> References: <1168981338.45ad3d5ad907d@webmail.sas.upenn.edu> <45AD4164.2040808@hhpl.on.ca> Content-Type: text/plain Message-Id: <1168989983.5774.56.camel@cartman> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2007-01-16 at 16:19 -0500, Walter Lewis wrote: > mirko@sas.upenn.edu wrote: > > Any ideas on how to implement a cocoon layer above solr? I just finished a forrest plugin (in the whiteboard, our testing ground in forrest) that is doing what you asked for and some pagination. Forrest is cocoon based so you just have to build the plugin jar and add it to your cocoon project. Please ask on the forrest list if you have problems. http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.output.solr/ > You're far from the only one approaching solr via cocoon ... :) > > The approach we took, passes the search parameters to a "solrsearch" > stylesheet, the heart of which is a block that embeds the > solr results. A further transformation prepares the results of the solr > query for display. That was my first version for above plugin as well, but since forrest makes use of the cocoon crawler I needed something with a default search string for offline generation. You should have a closer look on http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/output.xmap?view=markup and http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/input.xmap?view=markup For the original use case of this thread I added a generator: and as well a paginator transformer that calculates the next pages based on start, rows and numFound: We use it as follows: You may be interested in the update generator as well. Please give feedback to dev@forrest.apache.org. It really needs more testing besides myself, you could be the first to provide feedback. HTH salu2 -- thorsten "Together we stand, divided we fall!" Hey you (Pink Floyd)