Using cocoon to update index

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Using cocoon to update index

Winona Salesky
Hi,
Is anyone using cocoon to index data? I'm trying to do this via cincludes
but I have had no luck. If you are using cocoon, and are POSTing data to
solr via a pipeline, would you share an example of how you have things
working.
Thanks for the help,
-Winona

---------
Winona Salesky
The University of Vermont Libraries
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using cocoon to update index

Chris Hostetter-3

: Is anyone using cocoon to index data? I'm trying to do this via cincludes
: but I have had no luck. If you are using cocoon, and are POSTing data to
: solr via a pipeline, would you share an example of how you have things

you may want to take a look at the forest plugin Thorsten wrote, or the
Cocoon/Solr/Subversion presentation Bertrand gave at the Cocoon
2006 GetTogether...

http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.output.solr/
http://wiki.apache.org/solr/SolrResources
http://wiki.apache.org/cocoon-data/attachments/GT2006Notes/attachments/13-SubversionSolr.pdf




-Hoss

Reply | Threaded
Open this post in threaded view
|

RE: Using cocoon to update index

pbinkley
In reply to this post by Winona Salesky
I've blogged a method of doing this using Cocoon's webdav transformer: http://www.wallandbinkley.com/quaedam/?p=104
 
Peter
 

________________________________

From: Winona Salesky [mailto:[hidden email]]
Sent: Fri 3/23/2007 12:14 PM
To: [hidden email]
Subject: Using cocoon to update index



Hi,
Is anyone using cocoon to index data? I'm trying to do this via cincludes
but I have had no luck. If you are using cocoon, and are POSTing data to
solr via a pipeline, would you share an example of how you have things
working.
Thanks for the help,
-Winona

---------
Winona Salesky
The University of Vermont Libraries
[hidden email]



Reply | Threaded
Open this post in threaded view
|

RE: Using cocoon to update index

Winona Salesky
In reply to this post by Chris Hostetter-3
Thanks Chris, I'll take another look at the forest plugin.
-Winona

-----Original Message-----
From: Chris Hostetter [mailto:[hidden email]]
Sent: Saturday, March 24, 2007 4:55 PM
To: [hidden email]
Subject: Re: Using cocoon to update index


: Is anyone using cocoon to index data? I'm trying to do this via cincludes
: but I have had no luck. If you are using cocoon, and are POSTing data to
: solr via a pipeline, would you share an example of how you have things

you may want to take a look at the forest plugin Thorsten wrote, or the
Cocoon/Solr/Subversion presentation Bertrand gave at the Cocoon
2006 GetTogether...

http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.
output.solr/
http://wiki.apache.org/solr/SolrResources
http://wiki.apache.org/cocoon-data/attachments/GT2006Notes/attachments/13-Su
bversionSolr.pdf




-Hoss

Reply | Threaded
Open this post in threaded view
|

RE: Using cocoon to update index

thorsten
On Mon, 2007-03-26 at 09:30 -0400, Winona Salesky wrote:
> Thanks Chris, I'll take another look at the forest plugin.

Have a look as well at http://wiki.apache.org/solr/SolrForrest
it points out the cocoon components.

salu2
--
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java & XML                consulting, training and solutions

Reply | Threaded
Open this post in threaded view
|

SolrSearchGenerator for Cocoon (2.1)

mirko-9
Hi,

I looked at the SolrSearchGenerator (this is the part which is of interest to
me), but I could not get it work for Cocoon 2.1 yet.

It seems that the there is no getParameters method for the
org.apache.cocoon.environment interface:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/environment/Request.html
I guess you using the getParameterNames and getParameter methods instead should
do the trick.

Or am I missing something?

mirko



Quoting Thorsten Scherler <[hidden email]>:

> On Mon, 2007-03-26 at 09:30 -0400, Winona Salesky wrote:
> > Thanks Chris, I'll take another look at the forest plugin.
>
> Have a look as well at http://wiki.apache.org/solr/SolrForrest
> it points out the cocoon components.
>
> salu2
> --
> Thorsten Scherler                                 thorsten.at.apache.org
> Open Source Java & XML                consulting, training and solutions
>


Reply | Threaded
Open this post in threaded view
|

Re: SolrSearchGenerator for Cocoon (2.1)

thorsten
On Tue, 2007-03-27 at 10:53 -0400, [hidden email] wrote:

> Hi,
>
> I looked at the SolrSearchGenerator (this is the part which is of interest to
> me), but I could not get it work for Cocoon 2.1 yet.
>
> It seems that the there is no getParameters method for the
> org.apache.cocoon.environment interface:
> http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/environment/Request.html
> I guess you using the getParameterNames and getParameter methods instead should
> do the trick.
>
> Or am I missing something?

No, you are right the "getParameters" is cocoon-trunk specific. I just
changed the code to be cocoon-2.1.x compatible.

http://svn.apache.org/viewvc?view=rev&rev=523081

Thanks for the feedback Mirko.

Now in cocoon-2.1.x to use the plugin in your custom project please do
the following
1) svn co http://svn.apache.org/repos/asf/forrest/trunk forrest (this
checkout is our $FORRESST_HOME)
2) cd $FORRESST_HOME/main; ./build.sh
3) cd
$FORRESST_HOME/whiteboard/plugins/org.apache.forrest.plugin.output.solr
4) $FORRESST_HOME/tools/ant/bin/ant local-deploy
5) cp \
$FORRESST_HOME/whiteboard/plugins/org.apache.forrest.plugin.output.solr/build/org.apache.forrest.plugin.output.solr.jar
$cocoon-2.1.x_webapp/WEB-INF/lib/

>From there you can use the cocoon components as usual in your project.

salu2
--
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java & XML                consulting, training and solutions