Hi Vica
Thanks for the reply. For initial testing of lucene, I have stick to the basics. I made a new publication using default publication with appropriate changes in ac.xconf, publication.xml and targets. xml file and hence followed the instructions given on net regarding the changes required. I presume the source of the problem is usecase-search.xmap given on the site. The file is as:
<?xml version="1.0" encoding="UTF-8"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Components ================================ -->
<map:components>
<map:generators default="file"/>
<map:transformers default="xalan"/>
<map:readers default="resource"/>
<map:serializers default="xhtml"/>
<map:matchers default="wildcard"/>
<map:actions/>
<map:selectors>
<map:selector name="request-method" logger="sitemap.selector.request-method" src="">
</map:selectors>
</map:components>
<map:resources>
<map:resource name="finish">
<map:transform type="i18n">
<map:parameter name="locale" value="{page-envelope:document-language}"/>
</map:transform>
<map:transform src="">
<map:select type="parameter">
<map:parameter name="statusCode" value="{statusCode}"/>
<map:when test="">
<map:serialize type="html" />
</map:when>
<map:otherwise>
<map:serialize type="html" status-code="{statusCode}"/>
</map:otherwise>
</map:select>
</map:resource>
<map:resource name="page-xhtml">
<map:transform src="">
<map:parameter name="root" value="/{page-envelope:publication-id}/live"/>
<map:parameter name="document-id" value="/index"/>
<map:parameter name="url" value="live/index.html"/>
<map:parameter name="language" value="{page-envelope:document-language}"/>
<map:parameter name="showLogin" value="1"/>
<map:parameter name="showFav" value="0"/>
<map:parameter name="querystring" value="{request:queryString}"/>
</map:transform>
</map:resource>
</map:resources>
<!-- =========================== Pipelines ================================ -->
<map:pipelines>
<map:pipeline>
<map:match pattern="*/search-*/lucene.xml">
<map:generate type="serverpages" src="" label="xml">
<map:parameter name="max-hits-per-page" value="10"/>
<map:parameter name="max-pages" value="10"/>
<map:parameter name="excerpt-offset" value="150"/>
<map:parameter name="number-of-pubs" value="1"/>
<map:parameter name="pub0-id" value="{page-envelope:publication-id}"/>
<map:parameter name="pub0-name" value="{page-envelope:publication}"/>
<map:parameter name="pub0-index-dir" value="./work/search/lucene/index/{2}/index"/>
<map:parameter name="pub0-search-fields" value="contents,title"/>
<map:parameter name="pub0-excerpt-dir" value="./content/{2}"/>
<map:parameter name="pub0-prefix" value=""/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="search-page">
<map:aggregate element="search-results">
<map:part src="">
<map:part src="">
</map:aggregate>
<map:transform src="">
<map:parameter name="area" value="live"/>
</map:transform>
<map:transform src="">
<map:act type="resource-exists" src="">
<map:transform src="">
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="publicationid" value="{page-envelope:publication-id}"/>
<map:parameter name="area" value="live"/>
</map:transform>
</map:act>
<map:transform src="">
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="publicationid" value="{page-envelope:publication-id}"/>
<map:parameter name="area" value="live"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
<map:match type="usecase" pattern="search">
<map:aggregate element="cmsbody">
<map:part src="">
<map:part src="">
<map:part src="" prefix="xhtml"/>
<map:part src="">
<map:part src="">
</map:aggregate>
<map:call resource="page-xhtml"/>
<map:call resource="finish"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
It would be very helpful if the reason of the problem is known as the index is already being created but the search is not working.
Regards
Shishir
| Victoria Vitaver <[EMAIL PROTECTED]>
07/01/2005 01:04 PM
|
|
> Well, my question is if anybody has implemented the lucene patch
> available on apache site at
> 'http://lenya.apache.org/1_2_x/how-to/search.html'. The reason for
> asking this question is that I followed the instructions step by step
> but I am receiving 'Error executing pipeline: Null Pointer Exception'
> after providing search keyword although I am successfull in creating the
> index.
>
What does your sitemap look like? Check that all your <map:XXX src="" are pointing to valid files
- vica
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ForwardSourceID:NT0000451A
| Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you |
