logo       
Google Custom Search
    AddThis Social Bookmark Button

svn commit: r201770 - in /lenya/branches/BRANCH_1_2_X: src/java/org/apache/: msg#00253

Subject: svn commit: r201770 - in /lenya/branches/BRANCH_1_2_X: src/java/org/apache/lenya/lucene/index/ src/webapp/lenya/pubs/default/ src/webapp/lenya/pubs/default/lenya/xslt/search/ tools/bin/
Author: gregor
Date: Sat Jun 25 10:36:32 2005
New Revision: 201770

URL: http://svn.apache.org/viewcvs?rev=201770&view=rev
Log:
Added search usecase to default publication. Thanks to Paul Ercolino, this 
makes searching work out of the box on Windows for the first time.

Added:
    
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/search-and-results.xsl
    
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/searchfixer.xsl
    
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/sort.xsl
    
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/usecase-search.xmap
    lenya/branches/BRANCH_1_2_X/tools/bin/index-publication.bat
    lenya/branches/BRANCH_1_2_X/tools/bin/index-publication.sh
    lenya/branches/BRANCH_1_2_X/tools/bin/log4j.properties
Modified:
    
lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/lucene/index/configuration2xslt.xsl

Modified: 
lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/lucene/index/configuration2xslt.xsl
URL: 
http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/lucene/index/configuration2xslt.xsl?rev=201770&r1=201769&r2=201770&view=diff
==============================================================================
--- 
lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/lucene/index/configuration2xslt.xsl
 (original)
+++ 
lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/lucene/index/configuration2xslt.xsl
 Sat Jun 25 10:36:32 2005
@@ -1,26 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 
-<!--
-/*
- * Copyright  1999-2004 The Apache Software Foundation
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *
- */
-
-/* $Id: configuration2xslt.xsl,v 1.8 2004/07/11 19:25:08 michi Exp $  */
--->
-
 <xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
     xmlns:xsl-out="http://apache.org/cocoon/lenya/alias";
@@ -70,7 +49,6 @@
   <xsl-out:value-of select="{.}"/>
 </xsl:template>
 
-
 <xsl:template match="xpath">
   <xsl-out:value-of select="{.}"/>
   <xsl:if test="@default">
@@ -83,5 +61,7 @@
 <xsl:template match="text">
   <xsl:value-of select="."/>
 </xsl:template>
+
+<xsl:template match="namespace"/>
 
 </xsl:stylesheet> 

Added: 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/search-and-results.xsl
URL: 
http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/search-and-results.xsl?rev=201770&view=auto
==============================================================================
--- 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/search-and-results.xsl
 (added)
+++ 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/search-and-results.xsl
 Sat Jun 25 10:36:32 2005
@@ -0,0 +1,181 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0" 
+    xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"; 
+    xmlns:session="http://www.apache.org/xsp/session/2.0"; 
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+    xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"; 
+    xmlns:dc="http://purl.org/dc/elements/1.1/";
+    xmlns:xhtml="http://www.w3.org/1999/xhtml";
+    xmlns:i18n="http://apache.org/cocoon/i18n/2.1";
+>
+    
+    <xsl:param name="area" select="'live'"/>
+    <xsl:param name="contextprefix"/>
+
+    <xsl:variable name="languagesSelected"><xsl:value-of 
select="//search-and-results/search/language"/></xsl:variable>
+
+    
+    <xsl:template match="search-and-results">
+<lenya:meta><dc:subject>Search</dc:subject></lenya:meta>
+        <xhtml:div id="body">
+<H2><i18n:text key="search-pagetitle">Search</i18n:text></H2>
+                <div class="lenya-box">
+                    <div class="lenya-box-body">
+                        <form id="searchvalues"><input type="hidden" 
name="lenya.usecase" value="search"/>
+                            <table class="lenya-table-noborder">
+                                <tr>
+                                    <td><i18n:text 
key="search-fieldlabel">Search</i18n:text></td>
+                                    <td>
+                                        <input type="text" name="query" 
size="60" class="lenya-form-element">
+                                            <xsl:attribute name="value">
+                                                <xsl:value-of 
select="search/query"/>
+                                            </xsl:attribute>
+                                        </input>
+                                    </td>
+                                </tr>
+<tr><td><i18n:text 
key="search-languagefieldlabel">Language(s)</i18n:text></td><td>
+                                <xsl:apply-templates 
select="configuration/languages/language"/>
+</td></tr>
+                                <tr>
+                                    <td><i18n:text 
key="search-sortfieldlabel">Sort by</i18n:text></td>
+                                    <td>
+                                        <select name="sortBy" 
class="lenya-form-element">
+                                            <option value="score"><xsl:if 
test="search/sort-by='score'"> 
+                                                <xsl:attribute 
name="selected">selected</xsl:attribute> 
+                                                </xsl:if><i18n:text 
key="search-sort-scorevalue">Score</i18n:text></option>
+                                            <option value="title"> <xsl:if 
+                                                test="search/sort-by='title'"> 
+                                                <xsl:attribute 
+                                                
name="selected">selected</xsl:attribute> 
+                                                </xsl:if><i18n:text 
key="search-sort-titlevalue">Title</i18n:text></option>
+                                        </select>
+                                    </td>
+                                </tr>
+                            </table>
+<input type="submit" value="Search"/>
+                        </form>
+
+                        <xsl:apply-templates select="search/exception"/>
+                        <xsl:apply-templates select="results"/>
+                    </div>
+                </div>
+            </xhtml:div>
+    </xsl:template>
+
+    <xsl:template match="language">
+        <input type="checkbox" name="language">
+           <xsl:attribute name="value">
+               <xsl:value-of select="."/>
+           </xsl:attribute>
+          <xsl:if test="contains($languagesSelected, .)">
+              <xsl:attribute name="checked"/>
+          </xsl:if>
+       </input>
+       <xsl:value-of select="."/>
+    </xsl:template>
+
+    <xsl:template match="results">
+        <h3>Results</h3>
+        <xsl:choose>
+            <xsl:when test="hits">
+                <p> <i18n:text 
key="search-results-summarypages">Documents</i18n:text> <xsl:value-of 
+                    select="pages/page[@type='current']/@start"/> <i18n:text 
key="search-results-summaryto">-</i18n:text> 
+                    <xsl:value-of select="pages/page[@type='current']/@end"/> 
+                    <i18n:text key="search-results-summaryof">of</i18n:text> 
<xsl:value-of select="@total-hits"/> <i18n:text 
key="search-results-summaryfit">matches</i18n:text></p>
+                <table width="90%" cellpadding="4" class="lenya-table">
+                    <tr>
+                        <td><i18n:text 
key="search-results-columncount">&#160;</i18n:text></td>
+                        <td><i18n:text 
key="search-results-columnscore">Score</i18n:text></td>
+                        <td><i18n:text 
key="search-results-columninfo">Document</i18n:text></td>
+                    </tr>
+                    <xsl:apply-templates select="hits/hit"/>
+                </table>
+            </xsl:when>
+            <xsl:otherwise>
+                <p><strong><i18n:text key="search-noresults">No results 
found.</i18n:text></strong></p>
+            </xsl:otherwise>
+        </xsl:choose>
+        <xsl:apply-templates select="pages"/>
+    </xsl:template>
+    
+    <xsl:template match="hit">
+        <tr>
+            <td valign="top">
+                <xsl:value-of select="@pos"/>
+            </td>
+            <td valign="top"><xsl:value-of select="score/@percent"/>%</td>
+       <td><strong>
+<a><xsl:attribute name="href"><xsl:apply-templates 
select="uri"/></xsl:attribute><xsl:apply-templates 
select="title"/></a></strong><br/>
+<xsl:apply-templates select="excerpt"/>
+<xsl:apply-templates select="no-excerpt"/>
+</td>
+
+        </tr>
+    </xsl:template>
+    
+    <xsl:template match="uri">/<xsl:value-of 
select="/search-and-results/configuration/publication/@pid"/>/live<xsl:value-of 
select="."/>
+
+    </xsl:template>
+    
+    <xsl:template match="title">
+        <xsl:value-of select="."/>
+    </xsl:template>
+    <xsl:template match="no-title"> (No Title.) </xsl:template>
+
+    <xsl:template match="excerpt"><xsl:apply-templates/></xsl:template>
+
+    <xsl:template match="word">
+        <strong>
+            <xsl:value-of select="."/>
+        </strong>
+    </xsl:template>
+    
+    <xsl:template match="no-excerpt"> No excerpt available: <xsl:value-of 
+        select="file/@src"/> </xsl:template>
+    
+    <xsl:template match="mime-type">
+        <xsl:value-of select="."/>
+    </xsl:template>
+    
+    <xsl:template match="no-mime-type"> No mime-type! </xsl:template>
+
+    <xsl:template match="exception">
+        <p>
+            <font color="red">
+                <xsl:value-of select="."/>
+            </font>
+        </p>
+    </xsl:template>
+
+    <xsl:template match="pages">
+        <p><i18n:text key="search-resultpages">Result Pages</i18n:text> 
+<xsl:apply-templates select="page[@type='previous']" mode="previous"/>
+<xsl:for-each select="page">
+<xsl:choose> 
+   <xsl:when test="@type='current'">
+       <xsl:value-of select="position()"/>
+   </xsl:when>
+   <xsl:otherwise>
+       <a 
href="?lenya.usecase=search&amp;query={../../../search/query}&amp;language={$languagesSelected}&amp;sortBy={../../../search/sort-by}&amp;start={@start}&amp;end={@end}">
+<xsl:value-of select="position()"/></a>
+   </xsl:otherwise>
+</xsl:choose>
+</xsl:for-each>
+<xsl:apply-templates select="page[@type='next']" mode="next"/>
+</p>
+    </xsl:template>
+
+    <xsl:template match="page" mode="next">
+[<a 
href="?lenya.usecase=search&amp;query={../../../search/query}&amp;language={$languagesSelected}&amp;sortBy={../../../search/sort-by}&amp;start={@start}&amp;end={@end}"><i18n:text>Next</i18n:text></a>&gt;&gt;]
 
+        </xsl:template>
+
+    <xsl:template match="page" mode="previous">
+[&lt;&lt;<a 
href="?lenya.usecase=search&amp;query={../../../search/query}&amp;language={$languagesSelected}&amp;sortBy={../../../search/sort-by}&amp;start={@start}&amp;end={@end}"><i18n:text>Previous</i18n:text></a>]
 
+        </xsl:template>
+
+    <xsl:template match="@*|node()" priority="-1">
+        <xsl:copy>
+            <xsl:apply-templates select="@*|node()"/>
+        </xsl:copy>
+    </xsl:template>
+</xsl:stylesheet>

Added: 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/searchfixer.xsl
URL: 
http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/searchfixer.xsl?rev=201770&view=auto
==============================================================================
--- 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/searchfixer.xsl
 (added)
+++ 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/searchfixer.xsl
 Sat Jun 25 10:36:32 2005
@@ -0,0 +1,89 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0" 
+    xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"; 
+    xmlns:session="http://www.apache.org/xsp/session/2.0"; 
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+>
+    <xsl:param name="area" select="'live'"/>
+
+<xsl:variable name="pubid">
+<xsl:value-of select="search-and-results/configuration/publication/name" />
+</xsl:variable>
+
+
+    <xsl:template match="search-results">
+        <xsl:apply-templates select="search-and-results"/>
+    </xsl:template>
+
+    <xsl:template match="search-and-results">
+       <search-and-results>
+         <configuration>
+           <xsl:apply-templates select="configuration"/>
+         </configuration>
+         <xsl:apply-templates select="search"/>
+         <xsl:apply-templates select="results"/>
+       </search-and-results>
+    </xsl:template>
+    
+    <xsl:template match="configuration">
+        <xsl:apply-templates/>
+        <xsl:apply-templates select="//search-results/publication/languages" />
+    </xsl:template>
+
+    <xsl:template match="languages">
+        <languages>
+           <xsl:apply-templates select="language"/>
+        </languages>
+    </xsl:template>
+
+    <xsl:template match="results">
+         <results total-hits="{total-hits}">
+           <xsl:apply-templates select="pages"/>
+           <xsl:apply-templates select="hits"/>
+         </results>
+    </xsl:template>
+
+    <xsl:template match="hits">
+       <hits>
+          <xsl:apply-templates select="hit"/>
+      </hits>
+    </xsl:template>
+
+    <xsl:template match="hit">
+       <xsl:if test="uri[@filename != 'sitetree.xml']">
+          <hit pos="{@pos}">
+             <xsl:apply-templates select="score"/>
+             <xsl:apply-templates select="uri"/>
+<title>
+<xsl:choose>
+<xsl:when test="string-length(fields/title) &gt; 0"><xsl:value-of 
select="fields/title"/></xsl:when>
+<xsl:when test="string-length(fields/htmltitle) &gt; 0"><xsl:value-of 
select="fields/htmltitle"/></xsl:when>
+<xsl:when test="string-length(title) &gt; 0"><xsl:value-of 
select="title"/></xsl:when>
+<xsl:otherwise>Untitled</xsl:otherwise>
+</xsl:choose>
+</title>
+
+<!--             <xsl:apply-templates select="excerpt"/>   Lucene Excerpt -->
+<!--             <xsl:apply-templates select="fields/description"/> Lenya 
Description -->
+             <xsl:apply-templates select="fields/htmlbody"/> <!-- HTML Body -->
+          </hit>
+       </xsl:if>
+    </xsl:template>
+    
+    <xsl:template match="uri">
+ <uri><xsl:value-of select="$pubid"/><xsl:value-of 
select="@parent"/>_<xsl:value-of select="../fields/language"/>.html</uri>
+    </xsl:template>
+    
+    <xsl:template match="description">
+        <excerpt><xsl:value-of select="."/></excerpt>
+    </xsl:template>
+    <xsl:template match="htmlbody">
+        <excerpt><xsl:apply-templates/></excerpt>
+    </xsl:template>
+
+    <xsl:template match="@*|node()" priority="-1">
+        <xsl:copy>
+            <xsl:apply-templates select="@*|node()"/>
+        </xsl:copy>
+    </xsl:template>
+</xsl:stylesheet>

Added: 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/sort.xsl
URL: 
http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/sort.xsl?rev=201770&view=auto
==============================================================================
--- 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/sort.xsl
 (added)
+++ 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/lenya/xslt/search/sort.xsl
 Sat Jun 25 10:36:32 2005
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: sort.xsl 42703 2004-03-13 12:57:53Z gregor $ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+
+  <xsl:template match="hits">
+    <hits total-hits="{../@total-hits}">
+      <xsl:choose>
+        <xsl:when test="../../search/sort-by='score'">
+          <xsl:for-each select="hit">
+            <xsl:sort data-type="number" order="descending" select="score"/>
+            <xsl:apply-templates select="."/>
+          </xsl:for-each>
+        </xsl:when>
+        <xsl:when test="../../search/sort-by='title'">
+          <xsl:for-each select="hit">
+            <xsl:sort data-type="text" order="ascending" select="title"/>
+            <xsl:apply-templates select="."/>
+          </xsl:for-each>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:for-each select="hit">
+            <xsl:apply-templates select="."/>
+          </xsl:for-each>
+        </xsl:otherwise>
+      </xsl:choose>
+    </hits>
+  </xsl:template>
+
+  <xsl:template match="* | @*">
+    <xsl:copy>
+      <xsl:copy-of select="@*"/>
+      <xsl:apply-templates/>
+    </xsl:copy>
+  </xsl:template>
+
+</xsl:stylesheet>

Added: 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/usecase-search.xmap
URL: 
http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/usecase-search.xmap?rev=201770&view=auto
==============================================================================
--- 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/usecase-search.xmap 
(added)
+++ 
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/usecase-search.xmap 
Sat Jun 25 10:36:32 2005
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
+
+   <map:components>
+      <map:selectors>
+         <map:selector name="request-method" 
logger="sitemap.selector.request-method" 
src="org.apache.cocoon.selection.RequestMethodSelector"/>
+       </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="../../xslt/util/strip_namespaces.xsl"/>
+           <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="xslt/page2xhtml.xsl">
+              <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="lenya/content/search/search-and-results.xsp" 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="./config/publication.xconf"/>
+          <map:part 
src="cocoon:/{page-envelope:publication-id}/search-live/lucene.xml?{request:queryString}"/>
+        </map:aggregate>
+        <map:transform src="lenya/xslt/search/searchfixer.xsl">
+            <map:parameter name="area" value="live"/>
+        </map:transform>
+        <map:transform src="lenya/xslt/search/sort.xsl"/>
+        <map:act type="resource-exists" 
src="xslt/search/search-and-results-body.xsl">
+          <map:transform src="lenya/xslt/search/search-and-results-body.xsl">
+            <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="lenya/xslt/search/search-and-results.xsl">
+            <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="cocoon://navigation/{page-envelope:publication-id}/live/breadcrumb/index.xml"/>
+          <map:part 
src="cocoon://navigation/{page-envelope:publication-id}/live/tabs/index.xml"/>
+          <map:part 
src="cocoon://navigation/{page-envelope:publication-id}/live/menu/index.xml" 
prefix="xhtml"/>
+          <map:part 
src="cocoon://navigation/{page-envelope:publication-id}/live/search/index.xml"/>
+          <map:part src="cocoon:/search-page"/>
+        </map:aggregate>
+        <map:call resource="page-xhtml"/>
+        <map:call resource="finish"/>
+      </map:match>
+
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>

Added: lenya/branches/BRANCH_1_2_X/tools/bin/index-publication.bat
URL: 
http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/tools/bin/index-publication.bat?rev=201770&view=auto
==============================================================================
--- lenya/branches/BRANCH_1_2_X/tools/bin/index-publication.bat (added)
+++ lenya/branches/BRANCH_1_2_X/tools/bin/index-publication.bat Sat Jun 25 
10:36:32 2005
@@ -0,0 +1,18 @@
+@echo off
+
+REM  Copyright 2001,2004-2005 The Apache Software Foundation
+REM
+REM  Licensed under the Apache License, Version 2.0 (the "License");
+REM  you may not use this file except in compliance with the License.
+REM  You may obtain a copy of the License at
+REM
+REM      http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM  Unless required by applicable law or agreed to in writing, software
+REM  distributed under the License is distributed on an "AS IS" BASIS,
+REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM  See the License for the specific language governing permissions and
+REM  limitations under the License.
+
+SET LENYAPUB=default
+.\ant -f ../../build/lenya/webapp/lenya/bin/crawl_and_index.xml 
-Dlucene.xconf=../../build/lenya/webapp/lenya/pubs/%LENYAPUB%/config/search/lucene-live.xconf
 index

Added: lenya/branches/BRANCH_1_2_X/tools/bin/index-publication.sh
URL: 
http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/tools/bin/index-publication.sh?rev=201770&view=auto
==============================================================================
--- lenya/branches/BRANCH_1_2_X/tools/bin/index-publication.sh (added)
+++ lenya/branches/BRANCH_1_2_X/tools/bin/index-publication.sh Sat Jun 25 
10:36:32 2005
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+#   Copyright 2001-2005 The Apache Software Foundation
+#
+#   Licensed under the Apache License, Version 2.0 (the "License");
+#   you may not use this file except in compliance with the License.
+#   You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
+
+LENYAPUB=default
+./ant -f ../../build/lenya/webapp/lenya/bin/crawl_and_index.xml 
-Dlucene.xconf=../../build/lenya/webapp/lenya/pubs/$LENYAPUB/config/search/lucene-live.xconf
 index 
\ No newline at end of file

Added: lenya/branches/BRANCH_1_2_X/tools/bin/log4j.properties
URL: 
http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/tools/bin/log4j.properties?rev=201770&view=auto
==============================================================================
--- lenya/branches/BRANCH_1_2_X/tools/bin/log4j.properties (added)
+++ lenya/branches/BRANCH_1_2_X/tools/bin/log4j.properties Sat Jun 25 10:36:32 
2005
@@ -0,0 +1,7 @@
+log4j.rootLogger=DEBUG
+log4j.appender.lucene = org.apache.log4j.FileAppender
+log4j.appender.lucene.File = lucene.log
+log4j.appender.lucene.Append = false
+log4j.appender.lucene.layout = org.apache.log4j.PatternLayout
+log4j.appender.lucene.layout.ConversionPattern = %d{ABSOLUTE} [%t] %-5p 
%-30.30c{2} %x - %m %n
+



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>