forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thorsten.scherler....@juntadeandalucia.es>
Subject Re: SolrForrest plugin
Date Thu, 15 Jan 2009 14:15:57 GMT
El jue, 15-01-2009 a las 14:55 +0100, Andrzej Bialecki escribió:
> Thorsten Scherler wrote:
> > El jue, 15-01-2009 a las 14:07 +0100, Andrzej Bialecki escribió:
> >> Thorsten Scherler wrote:
> > ...
> >>>> Now, I need to index the content of a Forrest site in Solr, using a

> >>>> custom schema - e.g. the "id" in my case should be equivalent to the

> >>>> full URL of the page of the deployed site.
> >>> You have seen http://wiki.apache.org/solr/SolrForrest and
> >>> http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.output.solr/
> >> Yes, but that documentation is not helpful for a newbie like me. It 
> >> lists some configuration snippets without telling where to put them.
> >>
> >> Basically, I need a step-by-step instruction how to generate _static_ 
> >> Solr documents output, exactly like the one here 
> >> http://192.168.0.251:8888/index-creation.solr.add - but this one is 
> >> generated dynamically, i.e. requires a running instance of forrest, and 
> >> I need to generate it statically.
> > 
> > Hmm, I @work and I guess our firewall is not letting me check the link.
> > However it seems that you already has done the part of patching the xsl.
> 
> Ah, sorry - yes, it's my local IP. It should be this:
> 
> http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.output.solr/index-creation.solr.add
> 
> > 
> > Actually did you run "forrest" and not "forrest run". If the page is
> > link from your pages then it will created static. No extra work no
> > further configuration.
> 
> I did run "forrest", and all other static pages have been created. Where 
> should I expect the solr docs? alongside the html/pdf docs?

http://forrest.apache.org/docs_0_90/your-project.html

http://forrest.apache.org/docs_0_90/linking.html

All files that are linked from either
- site.xml
- tab.xml
- anyOtherXmlHavingALinkToTheDoc.html
are genrated along the e.g. html file in the path they are defined by
the link.

If you run forrest in the solr plugin it will actually connect to your
solr server and inject the documents.
 
You will find index.solr.add in build/site/.

> 
> > 
> > Makes me curious why you need a static index-creation.solr.add and why
> > not using http://192.168.0.251:8888/index-creation.solr.add.do directly
> > and let forrest inject the document.
> 
> Because I want to control myself when and how the documents are 
> submitted to Solr.

ok, you can do the first one as well with forrest and the second with
limitation. 

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

Sociedad Andaluza para el Desarrollo de la Sociedad 
de la Información, S.A.U. (SADESI)





Mime
View raw message