You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Johannes Schäfer <jo...@uidesign.de> on 2004/07/13 11:30:09 UTC
lucene search
Hi!
I'm trying to use lucene search but can't
get it working ... I followed the steps
in http://forrest.apache.org/docs/searching.html
but still doesn't do, gives me:
cause
java.lang.RuntimeException: java.util.EmptyStackException
request-uri
/lucene-update.html
I'm using forrest-0.6-dev with Jetty (forrest run)
Can anybody help?
Regards
Johannes
--
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825
München
www.uidesign.de
Re: reserved filenames (was user@: lucene search)
Posted by Dave Brondsema <da...@brondsema.net>.
On Wed, 14 Jul 2004, Clay Leeds wrote:
> On Jul 14, 2004, at 5:12 AM, Dave Brondsema wrote:
> > Bringing this over from user@ and changing to the topic.
> > On Wed, 14 Jul 2004, David Crossley wrote:
> >> Johannes Schäfer wrote:
> >>> David Crossley wrote:
> >>>>
> >>>> It sounds like a default sitemap match is getting in your way.
> >>>> Do the cocoon logfiles reveal anything?
> >>>> build/webapp/WEB-INF/logs/
> >>>
> >>> Yes, I forgot about regexp matches; renaming the
> >>> beast to "visuals.xml" works. Thanks!
> >>>
> >>> It looks like images.xml conflicts with the images/
> >>> directory used for images. Is this a bug or a feature?!
> >>
> >> A bug. The sitemap should be smarter than that.
> >
> > We should list any "reserved" filenames. Here we see that images is
> > one,
> > or at least it is one currently. Also "changes", "todo", "skinconf",
> > "forrest-issues" and some "community/" matchers exist in the sitemap.
> > We
> > should document these. And eventually move the ones specific to the
> > forrest website into a custom sitemap; and maybe make it configurable
> > so
> > people can use a real todo.xml if they want instead of having it come
> > from
> > the status.xml.
> >
> > WDYT?
>
> I like the idea of documenting reserved filenames. From what I saw in a
> post which made it to the forrest list, I noticed it showed 'site' as
> being another keyword (i.e., site.pdf, site.html, etc.). Is this
> another reserved word?
>
Yes. site.xml is used to define the site structure and forrest generates
site.pdf and site.html as full-site content pages.
--
Dave Brondsema : dave@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
http://csx.calvin.edu : student org
Re: reserved filenames (was user@: lucene search)
Posted by Clay Leeds <cl...@medata.com>.
On Jul 14, 2004, at 5:12 AM, Dave Brondsema wrote:
> Bringing this over from user@ and changing to the topic.
> On Wed, 14 Jul 2004, David Crossley wrote:
>> Johannes Schäfer wrote:
>>> David Crossley wrote:
>>>>
>>>> It sounds like a default sitemap match is getting in your way.
>>>> Do the cocoon logfiles reveal anything?
>>>> build/webapp/WEB-INF/logs/
>>>
>>> Yes, I forgot about regexp matches; renaming the
>>> beast to "visuals.xml" works. Thanks!
>>>
>>> It looks like images.xml conflicts with the images/
>>> directory used for images. Is this a bug or a feature?!
>>
>> A bug. The sitemap should be smarter than that.
>
> We should list any "reserved" filenames. Here we see that images is
> one,
> or at least it is one currently. Also "changes", "todo", "skinconf",
> "forrest-issues" and some "community/" matchers exist in the sitemap.
> We
> should document these. And eventually move the ones specific to the
> forrest website into a custom sitemap; and maybe make it configurable
> so
> people can use a real todo.xml if they want instead of having it come
> from
> the status.xml.
>
> WDYT?
I like the idea of documenting reserved filenames. From what I saw in a
post which made it to the forrest list, I noticed it showed 'site' as
being another keyword (i.e., site.pdf, site.html, etc.). Is this
another reserved word?
Web Maestro Clay
Re: reserved filenames (was user@: lucene search)
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Dave Brondsema wrote:
...
> We should list any "reserved" filenames.
+0
> Here we see that images is one,
> or at least it is one currently. Also "changes", "todo", "skinconf",
> "forrest-issues" and some "community/" matchers exist in the sitemap. We
> should document these. And eventually move the ones specific to the
> forrest website into a custom sitemap; and maybe make it configurable so
> people can use a real todo.xml if they want instead of having it come from
> the status.xml.
>
> WDYT?
I'd also like that for the next releases we remove these special filenames.
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
reserved filenames (was user@: lucene search)
Posted by Dave Brondsema <da...@brondsema.net>.
Bringing this over from user@ and changing to the topic.
On Wed, 14 Jul 2004, David Crossley wrote:
> Johannes Schäfer wrote:
> > David Crossley wrote:
> > >
> > > It sounds like a default sitemap match is getting in your way.
> > > Do the cocoon logfiles reveal anything?
> > > build/webapp/WEB-INF/logs/
> >
> > Yes, I forgot about regexp matches; renaming the
> > beast to "visuals.xml" works. Thanks!
> >
> > It looks like images.xml conflicts with the images/
> > directory used for images. Is this a bug or a feature?!
>
> A bug. The sitemap should be smarter than that.
>
We should list any "reserved" filenames. Here we see that images is one,
or at least it is one currently. Also "changes", "todo", "skinconf",
"forrest-issues" and some "community/" matchers exist in the sitemap. We
should document these. And eventually move the ones specific to the
forrest website into a custom sitemap; and maybe make it configurable so
people can use a real todo.xml if they want instead of having it come from
the status.xml.
WDYT?
--
Dave Brondsema : dave@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
http://csx.calvin.edu : student org
RE: lucene search
Posted by David Crossley <cr...@apache.org>.
Johannes Schäfer wrote:
> David Crossley wrote:
> >
> > It sounds like a default sitemap match is getting in your way.
> > Do the cocoon logfiles reveal anything?
> > build/webapp/WEB-INF/logs/
>
> Yes, I forgot about regexp matches; renaming the
> beast to "visuals.xml" works. Thanks!
>
> It looks like images.xml conflicts with the images/
> directory used for images. Is this a bug or a feature?!
A bug. The sitemap should be smarter than that.
--
David Crossley
RE: lucene search
Posted by Johannes Schäfer <jo...@uidesign.de>.
> -----Original Message-----
> From: David Crossley [mailto:crossley@apache.org]
> Sent: Wednesday, July 14, 2004 11:04 AM
> To: user@forrest.apache.org
> Subject: RE: lucene search
>
>
> Johannes Schäfer wrote:
> > But why "images.xml"? There is nothing special about
> > it, in fact it's rather short and missing content ;-)
> > I've tried renaming it (x_images.xml) in site.xml but
> > this doesn't work. I've tried reducing it to "nothing",
> > i.e. took out all contents. Doesn't work.
> > the file itself has no special flags set (e.g. r/o).
> >
> > Any idea?
>
> It sounds like a default sitemap match is getting in your way.
> Do the cocoon logfiles reveal anything?
> build/webapp/WEB-INF/logs/
Yes, I forgot about regexp matches; renaming the
beast to "visuals.xml" works. Thanks!
It looks like images.xml conflicts with the images/
directory used for images. Is this a bug or a feature?!
Cheers
Johannes
--
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825
München
www.uidesign.de
broken links in build/site: "index.html" missing
Posted by Johannes Schäfer <jo...@uidesign.de>.
Hi!
For a standalone site (created using command "forrest")
links to chapters (tabs) look like this
"file://Donald/styleguide/build/site/chapter1/"
and displays the contents of the directory.
It should be
"file://Donald/styleguide/build/site/chapter1/index.html"
Is there a parameter to configure this? Or will I have
to rename all my "index.html"s to "overview.html"?!
Cheers
Johannes
--
Johannes Schaefer
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825
München
www.uidesign.de
RE: lucene search
Posted by David Crossley <cr...@apache.org>.
Johannes Schäfer wrote:
> But why "images.xml"? There is nothing special about
> it, in fact it's rather short and missing content ;-)
> I've tried renaming it (x_images.xml) in site.xml but
> this doesn't work. I've tried reducing it to "nothing",
> i.e. took out all contents. Doesn't work.
> the file itself has no special flags set (e.g. r/o).
>
> Any idea?
It sounds like a default sitemap match is getting in your way.
Do the cocoon logfiles reveal anything?
build/webapp/WEB-INF/logs/
--
David Crossley
RE: lucene search
Posted by Johannes Schäfer <jo...@uidesign.de>.
> -----Original Message-----
> From: Juan Jose Pablos [mailto:cheche@che-che.com]
> Sent: Tuesday, July 13, 2004 7:15 PM
> Subject: Re: lucene search
<snip>
>
> The word lucene has been added by the search tool.
> What about something like graphics/image.* ?
I see: I have graphics/images.xml and lucene (?)
tries to build a file graphics/images.lucene but is
not sucessfull. Removing this file from site.xml I
get an Index Creation Report and I guess, this means
sucess. Yeah! (Still dosn't work with full HTML/PDF).
But why "images.xml"? There is nothing special about
it, in fact it's rather short and missing content ;-)
I've tried renaming it (x_images.xml) in site.xml but
this doesn't work. I've tried reducing it to "nothing",
i.e. took out all contents. Doesn't work.
the file itself has no special flags set (e.g. r/o).
Any idea?
Cheers
Johannes
--
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825
München
www.uidesign.de
Re: lucene search
Posted by Juan Jose Pablos <ch...@che-che.com>.
Johannes Schäfer escribió:
>
>
> No, my site.xml file does not contain the word "lucene"
> at all. I just put in the comments around the <all>
> section.
The word lucene has been added by the search tool. What about something
like graphics/image.* ?
RE: lucene search
Posted by Johannes Schäfer <jo...@uidesign.de>.
> -----Original Message-----
> From: Juan Jose Pablos [mailto:cheche@che-che.com]
> Sent: Tuesday, July 13, 2004 6:37 PM
> To: user@forrest.apache.org
> Subject: Re: lucene search
>
>
> Johannes Schäfer escribió:
> > Now it looks like this:
> > cause
> > java.lang.RuntimeException:
> > org.apache.cocoon.ResourceNotFoundException:
> > No pipeline matched request: graphics/images.lucene
> > request-uri
> > /lucene-update.html
> >
> > More files missing?!
> >
> That is what the error message said. Have you got that
> reference on the
> site.xml file?
>
No, my site.xml file does not contain the word "lucene"
at all. I just put in the comments around the <all>
section. In my skinconf.xml I put it like this:
<search name="mysite" domain="localhost" provider="lucene"/>
Don't know where it went wrong. In the error-log it gives
a very similar FATAL_E message just that it says
No pipeline matched request: graphics/images.lucene
I have no clue :-(
Cheers
Johannes
--
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825
München
www.uidesign.de
Buch "User Interface Tuning" von Joachim Machate & Michael Burmester
www.user-interface-tuning.de
Attraktivität von interaktiven Produkten messen mit
www.attrakdiff.de
Re: lucene search
Posted by Juan Jose Pablos <ch...@che-che.com>.
Johannes Schäfer escribió:
> Now it looks like this:
> cause
> java.lang.RuntimeException:
> org.apache.cocoon.ResourceNotFoundException:
> No pipeline matched request: graphics/images.lucene
> request-uri
> /lucene-update.html
>
> More files missing?!
>
That is what the error message said. Have you got that reference on the
site.xml file?
RE: lucene search
Posted by Johannes Schäfer <jo...@uidesign.de>.
> -----Original Message-----
> From: Juan Jose Pablos [mailto:cheche@che-che.com]
> Sent: Tuesday, July 13, 2004 1:00 PM
> To: user@forrest.apache.org
> Subject: Re: lucene search
>
>
> Johannes Schäfer escribió:
> > Hi!
> >
> > I'm trying to use lucene search but can't
> > get it working ... I followed the steps
> > in http://forrest.apache.org/docs/searching.html
> > but still doesn't do, gives me:
> > cause
> > java.lang.RuntimeException: java.util.EmptyStackException
> > request-uri
> > /lucene-update.html
> > I'm using forrest-0.6-dev with Jetty (forrest run)
> > Can anybody help?
>
> Seems like a bug:
>
> on build/webapp/WEB-INF/logs/error.log
>
> FATAL_E (2004-07-13) 12:16.18:764 [core.xslt-processor]
> (/lucene-update.html) PoolThread-4/TraxErrorHandler: Error in
> TraxTransformer: javax.xml.transform.TransformerException:
> java.lang.RuntimeException: org.xml.sax.SAXException: <lucene:index>
> element can contain only <lucene:document> elements!
>
>
> Try to comment it out on site.xml :
>
> <!--all label="All">
> <whole_site_html label="Whole Site HTML" href="site.html"/>
> <whole_site_pdf label="Whole Site PDF" href="site.pdf"/>
> </all -->
Did it.
Now it looks like this:
cause
java.lang.RuntimeException:
org.apache.cocoon.ResourceNotFoundException:
No pipeline matched request: graphics/images.lucene
request-uri
/lucene-update.html
More files missing?!
Cheers
Johannes
>
>
> util we get a way to fix it.
>
> Cheers,
> Cheche
>
>
>
>
Re: lucene search
Posted by Juan Jose Pablos <ch...@che-che.com>.
Johannes Schäfer escribió:
> Hi!
>
> I'm trying to use lucene search but can't
> get it working ... I followed the steps
> in http://forrest.apache.org/docs/searching.html
> but still doesn't do, gives me:
> cause
> java.lang.RuntimeException: java.util.EmptyStackException
> request-uri
> /lucene-update.html
> I'm using forrest-0.6-dev with Jetty (forrest run)
> Can anybody help?
Seems like a bug:
on build/webapp/WEB-INF/logs/error.log
FATAL_E (2004-07-13) 12:16.18:764 [core.xslt-processor]
(/lucene-update.html) PoolThread-4/TraxErrorHandler: Error in
TraxTransformer: javax.xml.transform.TransformerException:
java.lang.RuntimeException: org.xml.sax.SAXException: <lucene:index>
element can contain only <lucene:document> elements!
Try to comment it out on site.xml :
<!--all label="All">
<whole_site_html label="Whole Site HTML" href="site.html"/>
<whole_site_pdf label="Whole Site PDF" href="site.pdf"/>
</all -->
util we get a way to fix it.
Cheers,
Cheche