home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / welcome-index.xsp < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  5.1 KB  |  144 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17.  
  18. <xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
  19.  
  20.   <page>
  21.     <title>Welcome to Cocoon XML Search using Lucene</title>
  22.     <content>
  23.       <a href="http://jakarta.apache.org/lucene/"><img border="0" alt="Lucene Logo" src="images/lucene_green_300.gif"/></a>
  24.       
  25.       <h1>XML Search</h1>
  26.       
  27.       <p>
  28.         Welcome to Cocoon XML Search. This page introduces Cocoon searching
  29.         and offers the following samples:
  30.       </p>
  31.       <ul>
  32.         <li>Creating a Lucene index to enable searching
  33.         </li>
  34.         <li>Searching through a once created Lucene index using various means:
  35.         </li>
  36.         <li>Searching a Lucene index using <em>XSP</em>
  37.         </li>
  38.         <li>Searching a Lucene index using <em>SearchGenerator</em>
  39.         </li>
  40.       </ul>
  41.       
  42.       <h2>Creating an Index</h2>
  43.       <p>
  44.         You must create a Lucene index first, before you can do the searching.
  45.         You can create a Lucene index either by crawling, or by using
  46.         LuceneIndexTransformer.
  47.       </p>
  48.  
  49.       <h3>Creating Index By Crawling</h3>
  50.       <p>
  51.         Create an index by specifying a base url from which to start
  52.         crawling (the indexer will follow the links to build its content).
  53.         The base url should be 
  54.         <a href="../../../docs/userdocs/concepts/views.html">cocoon-view</a>
  55.         aware of content-labels
  56.         <strong>links</strong>, and <strong>content</strong>.
  57.         For example you might use the base URL 
  58.         <code>http://localhost:8888/docs/index.html</code>
  59.       </p>
  60.       <p>
  61.         This following page allows you to <a href="create">create</a> an
  62.         index, named index.
  63.       </p>
  64.  
  65.       <h3>Creating Index2 By Transforming</h3>
  66.       <p>
  67.         Create an index by using LuceneIndexTransformer. 
  68.         An XSP Page gathers all files of directory docs/xdocs, includes all
  69.         the files and pipes it through LuceneIndexTransformer, creating an
  70.         index, named index2.
  71.       </p>
  72.       <p>
  73.         This following page allows you to <a href="document-files.xsp">create</a> an
  74.         index, named index2.
  75.       </p>
  76.  
  77.       <h2>Searching</h2>
  78.       <p>
  79.         If you have created a Lucene index, you can search the created index.
  80.       </p>
  81.       <h3>Searching Index</h3>
  82.       <p>
  83.         Enter a query and search the Lucene index that you have created
  84.         - using <a href="search?queryString=lucene">XSP</a>.
  85.       </p>
  86.       <p>
  87.         Enter a query and search the Lucene index that you have created
  88.         - using <a href="findIt?queryString=lucene">Cocoon Generators</a>.
  89.       </p>
  90.  
  91.       <h3>Searching Index2</h3>
  92.       <p>
  93.         Enter a query and search the Lucene index2 that you have created
  94.         - using <a href="findIt2?queryString=cocoon">Cocoon Generators</a>.
  95.       </p>
  96.       
  97.       <h2>Internals</h2>
  98.       <p>
  99.         Cocoon XML search uses the
  100.         <a href="http://jakarta.apache.org/lucene/">Jakarta Lucene</a>
  101.         indexing and search engine.
  102.         The Cocoon documentation
  103.         <a href="../../../docs/userdocs/concepts/xmlsearching.html">explains</a> how it is implemented within Cocoon. Look behind the scenes of this
  104.         example to find out more.
  105.       </p>
  106.  
  107.       <!--center>
  108.         <form name="search" action="search" method="get">
  109.           <table>
  110.             <tr><td></td>
  111.               <td>
  112.                 <input name="queryString" size="44"/> <input type="submit" value="Search"/>
  113.               </td>
  114.             </tr>
  115.             <tr>
  116.               <td>Index</td>
  117.               <td>
  118.                 <select name="index">
  119.                   <option value="index">index</option>
  120.                   <option value="index-1">index-1</option>
  121.                   <option value="index-2">index-2</option>
  122.                   <option value="index-3">index-3</option>
  123.                 </select>
  124.               </td>
  125.             </tr>
  126.             <tr>
  127.               <td>Analyzer Class</td>
  128.               <td>
  129.                 <select name="analyzerClassName">
  130.                   <option value="org.apache.lucene.analysis.StopAnalyzer">StopAnalyzer</option>
  131.                   <option value="org.apache.lucene.analysis.standard.StandardAnalyzer">StandardAnalyzer</option>
  132.                   <option value="org.apache.lucene.analysis.de.GermanAnalyzer">GermanAnalyzer</option>
  133.                   <option value="org.apache.lucene.analysis.SimpleAnalyzer">SimpleAnalyzer</option>
  134.                 </select>
  135.               </td>
  136.             </tr>
  137.           </table>
  138.         </form>
  139.       </center-->
  140.     </content>
  141.   </page>
  142. </xsp:page>
  143.  
  144.