You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Christian Prause <ch...@fit.fraunhofer.de> on 2006/04/04 17:29:28 UTC

index files with lucene which are not in site.xml

Hi,

I am trying to set up a forrest (0.7) site with about 3000 xml files in 
it. I added them to site.xml, which turned out not to be such a good 
thing, because the generated html files are very large. So I removed 
most of the references from site.xml, and only left some pages in it, 
which link to the other pages.
So far, this works. But the problem is, now Lucene doesn't index those 
files. Is there something I could do?

Thanks in advance,
Christian Prause

Re: index files with lucene which are not in site.xml

Posted by David Crossley <cr...@apache.org>.
Ferdinand Soethe wrote:
> 
> I'm not quite sure about the official way to make this work, perhaps
> somebody else could help out in this respect.
> 
> For now I'll simply email you a zip that you can extract into your
> Forrest skin-folder. If that doesn't work let me know ...

The functionality is in the current svn trunk forrest-0.8-dev

I think that you also added it to the release branch
in svn. So it is *not* in the forrest-0.7 release.
One would need to checkout forrest_07_branch
'svn co http://svn.apache.org/repos/asf/forrest/branches/forrest_07_branch forrest_07_branch'
See help at http://forrest.apache.org/docs/build.html

-David

> Btw. afaict it was just decided to merge current scales
> functionalities back into pelt in some not so distant future.
>  
> 
> Regards,
> Ferdinand Soethe
> 

Re: index files with lucene which are not in site.xml

Posted by Ferdinand Soethe <fe...@apache.org>.
I'm not quite sure about the official way to make this work, perhaps
somebody else could help out in this respect.

For now I'll simply email you a zip that you can extract into your
Forrest skin-folder. If that doesn't work let me know ...

Btw. afaict it was just decided to merge current scales
functionalities back into pelt in some not so distant future.
 

Regards,
Ferdinand Soethe



Re: index files with lucene which are not in site.xml

Posted by Christian Prause <ch...@fit.fraunhofer.de>.
Hi,

thank you for your hints so far, but I'm having problems with using the 
scales skin.
I changed the forrest property to use scales (project.skin=scales), but 
when I try to "forrest run", I get:

[...]
fetch-skin:
Processing /usr/share/apache-forrest-0.7/main/webapp/skins/skins-1.xml 
to /home/chris/doc.forrest/build/tmp/skinlist2fetchbuild.xml
Loading stylesheet /usr/share/apache-forrest-0.7/main/var/skinlist2fetch.xsl

fetch-versioned-skin:
Trying to get "scales" skin version
                   0.7...

BUILD FAILED
/usr/share/apache-forrest-0.7/main/targets/skins.xml:125: The following 
error occurred while executing this line:
/usr/share/apache-forrest-0.7/main/targets/skins.xml:137: The following 
error occurred while executing this line:
/home/chris/doc.forrest/build/tmp/skinlist2fetchbuild.xml:7: 
java.net.MalformedURLException: no protocol: scales-0.7.zip


Doing a "forrest install-skin" as described in the documentation results 
in the same error message.

"forrest available-skins" only lists:
Current: pelt, tigris
Development: plain-dev
Additional: testskin, testskin2

I also googled for "forrest scales skin", but found nothing appropriate, 
like download or something like that.

Could you please help me again? :-)

Christian

Re: index files with lucene which are not in site.xml

Posted by Ferdinand Soethe <fe...@apache.org>.
Christian Prause wrote:

> I am trying to set up a forrest (0.7) site with about 3000 xml files in
> it. I added them to site.xml, which turned out not to be such a good 
> thing, because the generated html files are very large. So I removed 
> most of the references from site.xml, and only left some pages in it, 
> which link to the other pages.
> So far, this works. But the problem is, now Lucene doesn't index those
> files. Is there something I could do?

You could put those files back in site.xml and add the
type="showWhenSelected" to all page-elements (those that have no
children).

Then reference the individual pages from normal html-pages with links.

Then use the scales-skin instead pelt. Scales is derived from pelt
(same look and feel) but interprets the above mentioned attribute in a
way, that keeps pages small even when menus reference all items.


Comile the seed site with scales-skin to see the effect in the samples.

--
Ferdinand Soethe