Apache Lucene open-source search software
LUCENE-4007: Forrest Chainsaw Massacre
Uwe Schindler5fba8ae2b4e8
diff --git a/lucene/build.xml b/lucene/build.xmlindex 9237ac38732..a4266e49f89 100644--- a/lucene/build.xml+++ b/lucene/build.xml@@ -174,18 +174,6 @@<license-check-macro dir="${basedir}" /></target>- <!-- ================================================================== -->- <!-- D O C U M E N T A T I O N -->- <!-- ================================================================== -->- <!-- -->- <!-- ================================================================== -->- <target name="docs">- <!-- copies the docs over to the docs folder -->- <copy todir="build/docs">- <fileset dir="site/build/site"/>- </copy>- </target>-<target name="resolve"><sequential><ant dir="test-framework" target="resolve" inheritall="false">@@ -195,20 +183,26 @@</sequential></target>+ <target name="documentation" description="Generate all documentation"+ depends="javadocs,changes-to-html,doc-index"/><target name="javadoc" depends="javadocs"/>- <target name="javadocs" description="Generate javadoc"- depends="javadocs-lucene-core, javadocs-modules, javadocs-test-framework">- <echo file="${javadoc.dir}/index.html" append="false">-<![CDATA[<html><head><title>${Name} ${version} Javadoc Index</title></head>-<body>-<h1>${Name} ${version} Javadoc Index</h1>-<ul>- <li><a href="core/index.html">core</a>: Lucene core library</li>- <li><a href="test-framework/index.html">test-framework</a>: Framework for testing Lucene-based applications</li>-]]></echo>- <modules-crawl target="javadocs-index.html" failonerror="true"/>- <echo file="${javadoc.dir}/index.html" append="true"><![CDATA[-</ul></body>]]></echo>+ <target name="javadocs" description="Generate javadoc" depends="javadocs-lucene-core, javadocs-modules, javadocs-test-framework"/>++ <target name="doc-index">+ <pathconvert pathsep="|" dirsep="/" property="buildfiles">+ <fileset dir="." includes="**/build.xml" excludes="build.xml,analysis/*,build/**,tools/**,backwards/**,site/**"/>+ </pathconvert>+ <xslt in="${ant.file}" out="${javadoc.dir}/index.html" style="site/xsl/index.xsl">+ <outputproperty name="method" value="html"/>+ <outputproperty name="version" value="4.0"/>+ <outputproperty name="encoding" value="UTF-8"/>+ <outputproperty name="indent" value="yes"/>+ <param name="buildfiles" expression="${buildfiles}"/>+ <param name="version" expression="${version}"/>+ </xslt>+ <copy todir="${javadoc.dir}">+ <fileset dir="site/html" includes="**/*"/>+ </copy></target><target name="javadocs-modules" description="Generate javadoc for modules classes">@@ -230,7 +224,7 @@<!-- ================================================================== --><!-- --><!-- ================================================================== -->- <target name="package" depends="jar-core, jar-test-framework, docs, javadocs, build-modules, init-dist, changes-to-html"/>+ <target name="package" depends="jar-core, jar-test-framework, build-modules, init-dist, documentation"/><target name="nightly" depends="test, package-tgz"></target>diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex b031c069a55..55d8c5a447e 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -124,7 +124,7 @@<available file="${javadoc.packagelist.dir}/java6/package-list" property="javadoc.java6.packagelist.exists"/><property name="javadoc.access" value="protected"/><property name="javadoc.charset" value="utf-8"/>- <property name="javadoc.dir" value="${common.dir}/build/docs/api"/>+ <property name="javadoc.dir" value="${common.dir}/build/docs"/><property name="javadoc.maxmemory" value="512m" /><!-- Javadoc classpath --><path id="javadoc.classpath">diff --git a/lucene/index.html b/lucene/index.htmldeleted file mode 100644index 3a8db58c18f..00000000000--- a/lucene/index.html+++ /dev/null@@ -1,8 +0,0 @@-<html>-<head>- <title>Redirecting to docs...</title>- <meta http-equiv=refresh content="0; URL=docs/index.html">-</head>-<body>-</body>-</html>diff --git a/lucene/module-build.xml b/lucene/module-build.xmlindex 4f6f98fbaa8..290da915d56 100644--- a/lucene/module-build.xml+++ b/lucene/module-build.xml@@ -90,14 +90,6 @@</sequential></macrodef>- <target name="javadocs-index.html" description="Generate line for index.html of JavaDocs">- <xmlproperty file="${ant.file}" collapseAttributes="true"/>- <echo file="${javadoc.dir}/index.html" append="true">-<![CDATA[- <li><a href="${name}/index.html">${name}</a>: ${project.description}</li>-]]></echo>- </target>-<property name="queryparser.jar" value="${common.dir}/build/queryparser/lucene-queryparser-${version}.jar"/><target name="check-queryparser-uptodate" unless="queryparser.uptodate"><module-uptodate name="queryparser" jarfile="${queryparser.jar}" property="queryparser.uptodate"/>diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/package.html b/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/package.htmlindex d4aaf7bc034..a90afa31290 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/package.html+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/package.html@@ -31,5 +31,272 @@ must always be fully qualified in source code in this package.<p><b>NOTE</b>: {@link org.apache.lucene.queryparser.flexible.standard} has an alternative queryparser that matches the syntax of this one, but is more modular,enabling substantial customization to how a query is created.+<h2>Query Parser Syntax</h2>++<div id="minitoc-area">+<ul class="minitoc">+<li>+<a href="#Overview">Overview</a>+</li>+<li>+<a href="#Terms">Terms</a>+</li>+<li>+<a href="#Fields">Fields</a>+</li>+<li>+<a href="#Term Modifiers">Term Modifiers</a>+<ul class="minitoc">+<li>+<a href="#Wildcard Searches">Wildcard Searches</a>+</li>+<li>+<a href="#Fuzzy Searches">Fuzzy Searches</a>+</li>+<li>+<a href="#Proximity Searches">Proximity Searches</a>+</li>+<li>+<a href="#Range Searches">Range Searches</a>+</li>+<li>+<a href="#Boosting a Term">Boosting a Term</a>+</li>+</ul>+</li>+<li>+<a href="#Boolean operators">Boolean Operators</a>+<ul class="minitoc">+<li>+<a href="#OR"></a>+</li>+<li>+<a href="#AND">AND</a>+</li>+<li>+<a href="#+">+</a>+</li>+<li>+<a href="#NOT">NOT</a>+</li>+<li>+<a href="#-">-</a>+</li>+</ul>+</li>+<li>+<a href="#Grouping">Grouping</a>+</li>+<li>+<a href="#Field Grouping">Field Grouping</a>+</li>+<li>+<a href="#Escaping Special Characters">Escaping Special Characters</a>+</li>+</ul>+</div>++<a name="N10013"></a><a name="Overview"></a>+<h2 class="boxed">Overview</h2>+<div class="section">+<p>Although Lucene provides the ability to create your own+ queries through its API, it also provides a rich query+ language through the Query Parser, a lexer which+ interprets a string into a Lucene Query using JavaCC.+ </p>+<p>Generally, the query parser syntax may change from+ release to release. This page describes the syntax as of+ the current release. If you are using a different+ version of Lucene, please consult the copy of+ <span class="codefrag">docs/queryparsersyntax.html</span> that was distributed+ with the version you are using.+ </p>+<p>+ Before choosing to use the provided Query Parser, please consider the following:+ <ol>++<li>If you are programmatically generating a query string and then+ parsing it with the query parser then you should seriously consider building+ your queries directly with the query API. In other words, the query+ parser is designed for human-entered text, not for program-generated+ text.</li>+++<li>Untokenized fields are best added directly to queries, and not+ through the query parser. If a field's values are generated programmatically+ by the application, then so should query clauses for this field.+ An analyzer, which the query parser uses, is designed to convert human-entered+ text to terms. Program-generated values, like dates, keywords, etc.,+ should be consistently program-generated.</li>+++<li>In a query form, fields which are general text should use the query+ parser. All others, such as date ranges, keywords, etc. are better added+ directly through the query API. A field with a limit set of values,+ that can be specified with a pull-down menu should not be added to a+ query string which is subsequently parsed, but rather added as a+ TermQuery clause.</li>++</ol>++</p>+</div>+++<a name="N10032"></a><a name="Terms"></a>+<h2 class="boxed">Terms</h2>+<div class="section">+<p>A query is broken up into terms and operators. There are two types of terms: Single Terms and Phrases.</p>+<p>A Single Term is a single word such as "test" or "hello".</p>+<p>A Phrase is a group of words surrounded by double quotes such as "hello dolly".</p>+<p>Multiple terms can be combined together with Boolean operators to form a more complex query (see below).</p>+<p>Note: The analyzer used to create the index will be used on the terms and phrases in the query string.+ So it is important to choose an analyzer that will not interfere with the terms used in the query string.</p>+</div>+++<a name="N10048"></a><a name="Fields"></a>+<h2 class="boxed">Fields</h2>+<div class="section">+<p>Lucene supports fielded data. When performing a search you can either specify a field, or use the default field. The field names and default field is implementation specific.</p>+<p>You can search any field by typing the field name followed by a colon ":" and then the term you are looking for. </p>+<p>As an example, let's assume a Lucene index contains two fields, title and text and text is the default field.+ If you want to find the document entitled "The Right Way" which contains the text "don't go this way", you can enter: </p>+<pre class="code">title:"The Right Way" AND text:go</pre>+<p>or</p>+<pre class="code">title:"Do it right" AND right</pre>+<p>Since text is the default field, the field indicator is not required.</p>+<p>Note: The field is only valid for the term that it directly precedes, so the query</p>+<pre class="code">title:Do it right</pre>+<p>Will only find "Do" in the title field. It will find "it" and "right" in the default field (in this case the text field). </p>+</div>+++<a name="N1006D"></a><a name="Term Modifiers"></a>+<h2 class="boxed">Term Modifiers</h2>+<div class="section">+<p>Lucene supports modifying query terms to provide a wide range of searching options.</p>+<a name="N10076"></a><a name="Wildcard Searches"></a>+<h3 class="boxed">Wildcard Searches</h3>+<p>Lucene supports single and multiple character wildcard searches within single terms+ (not within phrase queries).</p>+<p>To perform a single character wildcard search use the "?" symbol.</p>+<p>To perform a multiple character wildcard search use the "*" symbol.</p>+<p>The single character wildcard search looks for terms that match that with the single character replaced. For example, to search for "text" or "test" you can use the search:</p>+<pre class="code">te?t</pre>+<p>Multiple character wildcard searches looks for 0 or more characters. For example, to search for test, tests or tester, you can use the search: </p>+<pre class="code">test*</pre>+<p>You can also use the wildcard searches in the middle of a term.</p>+<pre class="code">te*t</pre>+<p>Note: You cannot use a * or ? symbol as the first character of a search.</p>+<a name="N1009B"></a><a name="Fuzzy Searches"></a>+<h3 class="boxed">Fuzzy Searches</h3>+<p>Lucene supports fuzzy searches based on the Levenshtein Distance, or Edit Distance algorithm. To do a fuzzy search use the tilde, "~", symbol at the end of a Single word Term. For example to search for a term similar in spelling to "roam" use the fuzzy search: </p>+<pre class="code">roam~</pre>+<p>This search will find terms like foam and roams.</p>+<p>Starting with Lucene 1.9 an additional (optional) parameter can specify the required similarity. The value is between 0 and 1, with a value closer to 1 only terms with a higher similarity will be matched. For example:</p>+<pre class="code">roam~0.8</pre>+<p>The default that is used if the parameter is not given is 0.5.</p>+<a name="N100B4"></a><a name="Proximity Searches"></a>+<h3 class="boxed">Proximity Searches</h3>+<p>Lucene supports finding words are a within a specific distance away. To do a proximity search use the tilde, "~", symbol at the end of a Phrase. For example to search for a "apache" and "jakarta" within 10 words of each other in a document use the search: </p>+<pre class="code">"jakarta apache"~10</pre>+<a name="N100C1"></a><a name="Range Searches"></a>+<h3 class="boxed">Range Searches</h3>+<p>Range Queries allow one to match documents whose field(s) values+ are between the lower and upper bound specified by the Range Query.+ Range Queries can be inclusive or exclusive of the upper and lower bounds.+ Sorting is done lexicographically.</p>+<pre class="code">mod_date:[20020101 TO 20030101]</pre>+<p>This will find documents whose mod_date fields have values between 20020101 and 20030101, inclusive.+ Note that Range Queries are not reserved for date fields. You could also use range queries with non-date fields:</p>+<pre class="code">title:{Aida TO Carmen}</pre>+<p>This will find all documents whose titles are between Aida and Carmen, but not including Aida and Carmen.</p>+<p>Inclusive range queries are denoted by square brackets. Exclusive range queries are denoted by+ curly brackets.</p>+<a name="N100DA"></a><a name="Boosting a Term"></a>+<h3 class="boxed">Boosting a Term</h3>+<p>Lucene provides the relevance level of matching documents based on the terms found. To boost a term use the caret, "^", symbol with a boost factor (a number) at the end of the term you are searching. The higher the boost factor, the more relevant the term will be.</p>+<p>Boosting allows you to control the relevance of a document by boosting its term. For example, if you are searching for</p>+<pre class="code">jakarta apache</pre>+<p>and you want the term "jakarta" to be more relevant boost it using the ^ symbol along with the boost factor next to the term.+ You would type:</p>+<pre class="code">jakarta^4 apache</pre>+<p>This will make documents with the term jakarta appear more relevant. You can also boost Phrase Terms as in the example: </p>+<pre class="code">"jakarta apache"^4 "Apache Lucene"</pre>+<p>By default, the boost factor is 1. Although the boost factor must be positive, it can be less than 1 (e.g. 0.2)</p>+</div>++++<a name="N100FA"></a><a name="Boolean operators"></a>+<h2 class="boxed">Boolean Operators</h2>+<div class="section">+<p>Boolean operators allow terms to be combined through logic operators.+ Lucene supports AND, "+", OR, NOT and "-" as Boolean operators(Note: Boolean operators must be ALL CAPS).</p>+<a name="N10103"></a><a name="OR"></a>+<h3 class="boxed"></h3>+<p>The OR operator is the default conjunction operator. This means that if there is no Boolean operator between two terms, the OR operator is used.+ The OR operator links two terms and finds a matching document if either of the terms exist in a document. This is equivalent to a union using sets.+ The symbol || can be used in place of the word OR.</p>+<p>To search for documents that contain either "jakarta apache" or just "jakarta" use the query:</p>+<pre class="code">"jakarta apache" jakarta</pre>+<p>or</p>+<pre class="code">"jakarta apache" OR jakarta</pre>+<a name="N10116"></a><a name="AND"></a>+<h3 class="boxed">AND</h3>+<p>The AND operator matches documents where both terms exist anywhere in the text of a single document.+ This is equivalent to an intersection using sets. The symbol && can be used in place of the word AND.</p>+<p>To search for documents that contain "jakarta apache" and "Apache Lucene" use the query: </p>+<pre class="code">"jakarta apache" AND "Apache Lucene"</pre>+<a name="N10126"></a><a name="+"></a>+<h3 class="boxed">+</h3>+<p>The "+" or required operator requires that the term after the "+" symbol exist somewhere in a the field of a single document.</p>+<p>To search for documents that must contain "jakarta" and may contain "lucene" use the query:</p>+<pre class="code">+jakarta lucene</pre>+<a name="N10136"></a><a name="NOT"></a>+<h3 class="boxed">NOT</h3>+<p>The NOT operator excludes documents that contain the term after NOT.+ This is equivalent to a difference using sets. The symbol ! can be used in place of the word NOT.</p>+<p>To search for documents that contain "jakarta apache" but not "Apache Lucene" use the query: </p>+<pre class="code">"jakarta apache" NOT "Apache Lucene"</pre>+<p>Note: The NOT operator cannot be used with just one term. For example, the following search will return no results:</p>+<pre class="code">NOT "jakarta apache"</pre>+<a name="N1014C"></a><a name="-"></a>+<h3 class="boxed">-</h3>+<p>The "-" or prohibit operator excludes documents that contain the term after the "-" symbol.</p>+<p>To search for documents that contain "jakarta apache" but not "Apache Lucene" use the query: </p>+<pre class="code">"jakarta apache" -"Apache Lucene"</pre>+</div>+++<a name="N1015D"></a><a name="Grouping"></a>+<h2 class="boxed">Grouping</h2>+<div class="section">+<p>Lucene supports using parentheses to group clauses to form sub queries. This can be very useful if you want to control the boolean logic for a query.</p>+<p>To search for either "jakarta" or "apache" and "website" use the query:</p>+<pre class="code">(jakarta OR apache) AND website</pre>+<p>This eliminates any confusion and makes sure you that website must exist and either term jakarta or apache may exist.</p>+</div>+++<a name="N10170"></a><a name="Field Grouping"></a>+<h2 class="boxed">Field Grouping</h2>+<div class="section">+<p>Lucene supports using parentheses to group multiple clauses to a single field.</p>+<p>To search for a title that contains both the word "return" and the phrase "pink panther" use the query:</p>+<pre class="code">title:(+return +"pink panther")</pre>+</div>+++<a name="N10180"></a><a name="Escaping Special Characters"></a>+<h2 class="boxed">Escaping Special Characters</h2>+<div class="section">+<p>Lucene supports escaping special characters that are part of the query syntax. The current list special characters are</p>+<p>+ - && || ! ( ) { } [ ] ^ " ~ * ? : \</p>+<p>To escape these character use the \ before the character. For example to search for (1+1):2 use the query:</p>+<pre class="code">\(1\+1\)\:2</pre>+</div>+</body></html>diff --git a/lucene/site/build/site/.htaccess b/lucene/site/build/site/.htaccessdeleted file mode 100644index f1650fa44a6..00000000000--- a/lucene/site/build/site/.htaccess+++ /dev/null@@ -1,3 +0,0 @@-#Forrest generates UTF-8 by default, but these httpd servers are-#ignoring the meta http-equiv charset tags-AddDefaultCharset offdiff --git a/lucene/site/build/site/broken-links.xml b/lucene/site/build/site/broken-links.xmldeleted file mode 100644index f95aa9be019..00000000000--- a/lucene/site/build/site/broken-links.xml+++ /dev/null@@ -1,2 +0,0 @@-<broken-links>-</broken-links>diff --git a/lucene/site/build/site/contributions.html b/lucene/site/build/site/contributions.htmldeleted file mode 100644index 547f0734ccb..00000000000--- a/lucene/site/build/site/contributions.html+++ /dev/null@@ -1,756 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<html>-<head>-<META http-equiv="Content-Type" content="text/html; charset=UTF-8">-<meta content="Apache Forrest" name="Generator">-<meta name="Forrest-version" content="0.9">-<meta name="Forrest-skin-name" content="lucene">-<title>- Apache Lucene - Contributions- </title>-<link type="text/css" href="skin/basic.css" rel="stylesheet">-<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">-<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">-<link type="text/css" href="skin/profile.css" rel="stylesheet">-<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>-<link rel="shortcut icon" href="images/favicon.ico">-</head>-<body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<div id="top">-<!--+- |breadtrail- +-->-<div class="breadtrail">-<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>-</div>-<!--+- |header- +-->-<div class="header">-<!--+- |start group logo- +-->-<div class="grouplogo">-<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>-</div>-<!--+- |end group logo- +-->-<!--+- |start Project Logo- +-->-<div class="projectlogo">-<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>-</div>-<!--+- |end Project Logo- +-->-<!--+- |start Search- +-->-<div class="searchbox">-<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">-<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene"> - <input name="Search" value="Search" type="submit">-</form>-<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>-</div>-</div>-<!--+- |end search- +-->-<!--+- |start Tabs- +-->-<ul id="tabs">-<li class="current">-<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>-</li>-<li>-<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>-</li>-<li class="current">-<a class="selected" href="index.html">Lucene 4.0 Documentation</a>-</li>-</ul>-<!--+- |end Tabs- +-->-</div>-</div>-<div id="main">-<div id="publishedStrip">-<!--+- |start Subtabs- +-->-<div id="level2tabs"></div>-<!--+- |end Endtabs- +-->-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<!--+- |breadtrail- +-->-<div class="breadtrail">-- - </div>-<!--+- |start Menu, mainarea- +-->-<!--+- |start Menu- +-->-<div id="menu">-<div onclick="SwitchMenu('menu_selected_1.1', 'skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('skin/images/chapter_open.gif');">Documentation</div>-<div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;">-<div class="menuitem">-<a href="index.html">Overview</a>-</div>-<div class="menuitem">-<a href="changes/Changes.html">Changes</a>-</div>-<div onclick="SwitchMenu('menu_1.1.3', 'skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>-<div id="menu_1.1.3" class="menuitemgroup">-<div class="menuitem">-<a href="api/core/index.html">Core</a>-</div>-<div class="menuitem">-<a href="api/analyzers-common/index.html">Analysis: Common</a>-</div>-<div class="menuitem">-<a href="api/analyzers-kuromoji/index.html">Analysis: Kuromoji (Japanese)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-morfologik/index.html">Analysis: Morfologik (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-phonetic/index.html">Analysis: Phonetic</a>-</div>-<div class="menuitem">-<a href="api/analyzers-smartcn/index.html">Analysis: Smart Chinese</a>-</div>-<div class="menuitem">-<a href="api/analyzers-stempel/index.html">Analysis: Stempel (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-uima/index.html">Analysis: UIMA</a>-</div>-<div class="menuitem">-<a href="api/benchmark/index.html">Benchmark</a>-</div>-<div class="menuitem">-<a href="api/demo/index.html">Demo</a>-</div>-<div class="menuitem">-<a href="api/facet/index.html">Faceting</a>-</div>-<div class="menuitem">-<a href="api/grouping/index.html">Grouping</a>-</div>-<div class="menuitem">-<a href="api/highlighter/index.html">Highlighter</a>-</div>-<div class="menuitem">-<a href="api/join/index.html">Join</a>-</div>-<div class="menuitem">-<a href="api/memory/index.html">Memory</a>-</div>-<div class="menuitem">-<a href="api/misc/index.html">Miscellaneous</a>-</div>-<div class="menuitem">-<a href="api/queries/index.html">Queries</a>-</div>-<div class="menuitem">-<a href="api/queryparser/index.html">Query Parsers</a>-</div>-<div class="menuitem">-<a href="api/sandbox/index.html">Sandbox</a>-</div>-<div class="menuitem">-<a href="api/spatial/index.html">Spatial</a>-</div>-<div class="menuitem">-<a href="api/suggest/index.html">Suggest / Spellcheck</a>-</div>-<div class="menuitem">-<a href="api/test-framework/index.html">Test Framework</a>-</div>-</div>-<div class="menuitem">-<a href="systemrequirements.html">System Requirements</a>-</div>-<div class="menupage">-<div class="menupagetitle">Contributions</div>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>-</div>-<div class="menuitem">-<a href="fileformats.html">File Formats</a>-</div>-<div class="menuitem">-<a href="gettingstarted.html">Getting Started</a>-</div>-<div class="menuitem">-<a href="queryparsersyntax.html">Query Syntax</a>-</div>-<div class="menuitem">-<a href="scoring.html">Scoring</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java">Wiki</a>-</div>-<div class="menuitem">-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a>-</div>-</div>-<div id="credit"></div>-<div id="roundbottom">-<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>-<!--+- |alternative credits- +-->-<div id="credit2"></div>-</div>-<!--+- |end Menu- +-->-<!--+- |start content- +-->-<div id="content">-<h1>- Apache Lucene - Contributions- </h1>-<div id="minitoc-area">-<ul class="minitoc">-<li>-<a href="#Overview">Overview</a>-</li>-<li>-<a href="#Lucene Tools">Lucene Tools</a>-<ul class="minitoc">-<li>-<a href="#Luke">Luke</a>-</li>-<li>-<a href="#LIMO (Lucene Index Monitor)">LIMO (Lucene Index Monitor)</a>-</li>-</ul>-</li>-<li>-<a href="#Lucene Document Converters">Lucene Document Converters</a>-<ul class="minitoc">-<li>-<a href="#XML Document #1">XML Document #1</a>-</li>-<li>-<a href="#XML Document #2">XML Document #2</a>-</li>-<li>-<a href="#PDF Box">PDF Box</a>-</li>-<li>-<a href="#XPDF - PDF Document Conversion">XPDF - PDF Document Conversion</a>-</li>-<li>-<a href="#PDFTextStream -- PDF text and metadata extraction">PDFTextStream -- PDF text and metadata extraction</a>-</li>-<li>-<a href="#PJ Classic & PJ Professional - PDF Document Conversion">PJ Classic & PJ Professional - PDF Document Conversion</a>-</li>-</ul>-</li>-<li>-<a href="#Miscellaneous">Miscellaneous</a>-<ul class="minitoc">-<li>-<a href="#Arabic Analyzer for Java">Arabic Analyzer for Java</a>-</li>-<li>-<a href="#Phonetix">Phonetix</a>-</li>-<li>-<a href="#ejIndex - JBoss MBean for Lucene">ejIndex - JBoss MBean for Lucene</a>-</li>-<li>-<a href="#JavaCC">JavaCC</a>-</li>-<li>-<a href="#LuSQL">LuSQL - Index databases with Lucene</a>-</li>-</ul>-</li>-</ul>-</div>--<a name="N10013"></a><a name="Overview"></a>-<h2 class="boxed">Overview</h2>-<div class="section">-<p>This page lists external Lucene resources. If you have- written something that should be included, please post all- relevant information to one of the mailing lists. Nothing- listed here is directly supported by the Lucene- developers, so if you encounter any problems with any of- this software, please use the author's contact information- to get help.</p>-<p>If you are looking for information on contributing patches or other improvements to Lucene, see- <a href="http://wiki.apache.org/lucene-java/HowToContribute">How To Contribute</a> on the Lucene Wiki.</p>-</div>---<a name="N10024"></a><a name="Lucene Tools"></a>-<h2 class="boxed">Lucene Tools</h2>-<div class="section">-<p>- Software that works with Lucene indices.- </p>-<a name="N1002D"></a><a name="Luke"></a>-<h3 class="boxed">Luke</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="http://www.getopt.org/luke/">- http://www.getopt.org/luke/- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- Andrzej Bialecki- </td>--</tr>--</table>-<a name="N1004E"></a><a name="LIMO (Lucene Index Monitor)"></a>-<h3 class="boxed">LIMO (Lucene Index Monitor)</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="http://limo.sf.net/">- http://limo.sf.net/- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- Julien Nioche- </td>--</tr>--</table>-</div>---<a name="N10071"></a><a name="Lucene Document Converters"></a>-<h2 class="boxed">Lucene Document Converters</h2>-<div class="section">-<p>- Lucene requires information you want to index to be- converted into a Document class. Here are- contributions for various solutions that convert different- content types to Lucene's Document classes.- </p>-<a name="N1007A"></a><a name="XML Document #1"></a>-<h3 class="boxed">XML Document #1</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="http://marc.theaimsgroup.com/?l=lucene-dev&m=100723333506246&w=2">- http://marc.theaimsgroup.com/?l=lucene-dev&m=100723333506246&w=2- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- Philip Ogren - [email protected]- </td>--</tr>--</table>-<a name="N1009C"></a><a name="XML Document #2"></a>-<h3 class="boxed">XML Document #2</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="http://www.mail-archive.com/[email protected]/msg00346.html">- http://www.mail-archive.com/[email protected]/msg00346.html- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- Peter Carlson - [email protected]- </td>--</tr>--</table>-<a name="N100BE"></a><a name="PDF Box"></a>-<h3 class="boxed">PDF Box</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="http://www.pdfbox.org/">- http://www.pdfbox.org/- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- Ben Litchfield - [email protected]- </td>--</tr>--</table>-<a name="N100E0"></a><a name="XPDF - PDF Document Conversion"></a>-<h3 class="boxed">XPDF - PDF Document Conversion</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="http://www.foolabs.com/xpdf">- http://www.foolabs.com/xpdf- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- N/A- </td>--</tr>--</table>-<a name="N10102"></a><a name="PDFTextStream -- PDF text and metadata extraction"></a>-<h3 class="boxed">PDFTextStream -- PDF text and metadata extraction</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="http://snowtide.com">- http://snowtide.com- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- N/A- </td>--</tr>--</table>-<a name="N10124"></a><a name="PJ Classic & PJ Professional - PDF Document Conversion"></a>-<h3 class="boxed">PJ Classic & PJ Professional - PDF Document Conversion</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href=" http://www.etymon.com/">- http://www.etymon.com/- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- N/A- </td>--</tr>--</table>-</div>---<a name="N10147"></a><a name="Miscellaneous"></a>-<h2 class="boxed">Miscellaneous</h2>-<div class="section">-<p>--</p>-<a name="N10150"></a><a name="Arabic Analyzer for Java"></a>-<h3 class="boxed">Arabic Analyzer for Java</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="http://savannah.nongnu.org/projects/aramorph">- http://savannah.nongnu.org/projects/aramorph- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- Pierrick Brihaye- </td>--</tr>--</table>-<a name="N10172"></a><a name="Phonetix"></a>-<h3 class="boxed">Phonetix</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="http://www.companywebstore.de/tangentum/mirror/en/products/phonetix/index.html">- http://www.companywebstore.de/tangentum/mirror/en/products/phonetix/index.html- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- tangentum technologies- </td>--</tr>--</table>-<a name="N10194"></a><a name="ejIndex - JBoss MBean for Lucene"></a>-<h3 class="boxed">ejIndex - JBoss MBean for Lucene</h3>-<p>--</p>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="http://ejindex.sourceforge.net/">- http://ejindex.sourceforge.net/- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- Andy Scholz- </td>--</tr>--</table>-<a name="N101B9"></a><a name="JavaCC"></a>-<h3 class="boxed">JavaCC</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="https://javacc.dev.java.net/">- https://javacc.dev.java.net/- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- Sun Microsystems (java.net)- </td>--</tr>--</table>-<a name="N101DB"></a><a name="LuSQL"></a>-<h3 class="boxed">LuSQL - Index databases with Lucene</h3>-<table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th width="%1">- URL- </th>- <td>- <a href="http://lab.cisti-icist.nrc-cnrc.gc.ca/cistilabswiki/index.php/LuSql">- http://lab.cisti-icist.nrc-cnrc.gc.ca/cistilabswiki/index.php/LuSql- </a>- </td>--</tr>--<tr>--<th width="%1">- author- </th>- <td>- Glen Newton- </td>--</tr>--</table>-</div>--</div>-<!--+- |end content- +-->-<div class="clearboth"> </div>-</div>-<div id="footer">-<!--+- |start bottomstrip- +-->-<div class="lastmodified">-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<div class="copyright">- Copyright ©- 2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>-</div>-<!--+- |end bottomstrip- +-->-</div>-<script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();--</script>-</body>-</html>diff --git a/lucene/site/build/site/demo.html b/lucene/site/build/site/demo.htmldeleted file mode 100644index bfb21fa5a24..00000000000--- a/lucene/site/build/site/demo.html+++ /dev/null@@ -1,372 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<html>-<head>-<META http-equiv="Content-Type" content="text/html; charset=UTF-8">-<meta content="Apache Forrest" name="Generator">-<meta name="Forrest-version" content="0.9">-<meta name="Forrest-skin-name" content="lucene">-<title>- Apache Lucene - Building and Installing the Basic Demo- </title>-<link type="text/css" href="skin/basic.css" rel="stylesheet">-<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">-<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">-<link type="text/css" href="skin/profile.css" rel="stylesheet">-<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>-<link rel="shortcut icon" href="images/favicon.ico">-</head>-<body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<div id="top">-<!--+- |breadtrail- +-->-<div class="breadtrail">-<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>-</div>-<!--+- |header- +-->-<div class="header">-<!--+- |start group logo- +-->-<div class="grouplogo">-<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>-</div>-<!--+- |end group logo- +-->-<!--+- |start Project Logo- +-->-<div class="projectlogo">-<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>-</div>-<!--+- |end Project Logo- +-->-<!--+- |start Search- +-->-<div class="searchbox">-<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">-<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene"> - <input name="Search" value="Search" type="submit">-</form>-<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>-</div>-</div>-<!--+- |end search- +-->-<!--+- |start Tabs- +-->-<ul id="tabs">-<li class="current">-<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>-</li>-<li>-<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>-</li>-<li class="current">-<a class="selected" href="index.html">Lucene 4.0 Documentation</a>-</li>-</ul>-<!--+- |end Tabs- +-->-</div>-</div>-<div id="main">-<div id="publishedStrip">-<!--+- |start Subtabs- +-->-<div id="level2tabs"></div>-<!--+- |end Endtabs- +-->-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<!--+- |breadtrail- +-->-<div class="breadtrail">-- - </div>-<!--+- |start Menu, mainarea- +-->-<!--+- |start Menu- +-->-<div id="menu">-<div onclick="SwitchMenu('menu_1.1', 'skin/')" id="menu_1.1Title" class="menutitle">Documentation</div>-<div id="menu_1.1" class="menuitemgroup">-<div class="menuitem">-<a href="index.html">Overview</a>-</div>-<div class="menuitem">-<a href="changes/Changes.html">Changes</a>-</div>-<div onclick="SwitchMenu('menu_1.1.3', 'skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>-<div id="menu_1.1.3" class="menuitemgroup">-<div class="menuitem">-<a href="api/core/index.html">Core</a>-</div>-<div class="menuitem">-<a href="api/analyzers-common/index.html">Analysis: Common</a>-</div>-<div class="menuitem">-<a href="api/analyzers-kuromoji/index.html">Analysis: Kuromoji (Japanese)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-morfologik/index.html">Analysis: Morfologik (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-phonetic/index.html">Analysis: Phonetic</a>-</div>-<div class="menuitem">-<a href="api/analyzers-smartcn/index.html">Analysis: Smart Chinese</a>-</div>-<div class="menuitem">-<a href="api/analyzers-stempel/index.html">Analysis: Stempel (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-uima/index.html">Analysis: UIMA</a>-</div>-<div class="menuitem">-<a href="api/benchmark/index.html">Benchmark</a>-</div>-<div class="menuitem">-<a href="api/demo/index.html">Demo</a>-</div>-<div class="menuitem">-<a href="api/facet/index.html">Faceting</a>-</div>-<div class="menuitem">-<a href="api/grouping/index.html">Grouping</a>-</div>-<div class="menuitem">-<a href="api/highlighter/index.html">Highlighter</a>-</div>-<div class="menuitem">-<a href="api/join/index.html">Join</a>-</div>-<div class="menuitem">-<a href="api/memory/index.html">Memory</a>-</div>-<div class="menuitem">-<a href="api/misc/index.html">Miscellaneous</a>-</div>-<div class="menuitem">-<a href="api/queries/index.html">Queries</a>-</div>-<div class="menuitem">-<a href="api/queryparser/index.html">Query Parsers</a>-</div>-<div class="menuitem">-<a href="api/sandbox/index.html">Sandbox</a>-</div>-<div class="menuitem">-<a href="api/spatial/index.html">Spatial</a>-</div>-<div class="menuitem">-<a href="api/suggest/index.html">Suggest / Spellcheck</a>-</div>-<div class="menuitem">-<a href="api/test-framework/index.html">Test Framework</a>-</div>-</div>-<div class="menuitem">-<a href="systemrequirements.html">System Requirements</a>-</div>-<div class="menuitem">-<a href="contributions.html">Contributions</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>-</div>-<div class="menuitem">-<a href="fileformats.html">File Formats</a>-</div>-<div class="menuitem">-<a href="gettingstarted.html">Getting Started</a>-</div>-<div class="menuitem">-<a href="queryparsersyntax.html">Query Syntax</a>-</div>-<div class="menuitem">-<a href="scoring.html">Scoring</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java">Wiki</a>-</div>-<div class="menuitem">-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a>-</div>-</div>-<div id="credit"></div>-<div id="roundbottom">-<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>-<!--+- |alternative credits- +-->-<div id="credit2"></div>-</div>-<!--+- |end Menu- +-->-<!--+- |start content- +-->-<div id="content">-<h1>- Apache Lucene - Building and Installing the Basic Demo- </h1>-<div id="minitoc-area">-<ul class="minitoc">-<li>-<a href="#About this Document">About this Document</a>-</li>-<li>-<a href="#About the Demo">About the Demo</a>-</li>-<li>-<a href="#Setting your CLASSPATH">Setting your CLASSPATH</a>-</li>-<li>-<a href="#Indexing Files">Indexing Files</a>-</li>-<li>-<a href="#About the code...">About the code...</a>-</li>-</ul>-</div>---<a name="N10013"></a><a name="About this Document"></a>-<h2 class="boxed">About this Document</h2>-<div class="section">-<p>-This document is intended as a "getting started" guide to using and running the Lucene demos.-It walks you through some basic installation and configuration.-</p>-</div>----<a name="N1001C"></a><a name="About the Demo"></a>-<h2 class="boxed">About the Demo</h2>-<div class="section">-<p>-The Lucene command-line demo code consists of an application that demonstrates various-functionalities of Lucene and how you can add Lucene to your applications.-</p>-</div>---<a name="N10025"></a><a name="Setting your CLASSPATH"></a>-<h2 class="boxed">Setting your CLASSPATH</h2>-<div class="section">-<p>-First, you should <a href="http://www.apache.org/dyn/closer.cgi/lucene/java/">download</a> the-latest Lucene distribution and then extract it to a working directory.-</p>-<p>-You need three JARs: the Lucene JAR, the common analysis JAR, and the Lucene demo JAR. You should-see the Lucene JAR file in the core/ directory you created when you extracted the archive -- it-should be named something like <span class="codefrag">lucene-core-{version}.jar</span>. You should also see files-called <span class="codefrag">lucene-analyzers-common-{version}.jar</span> and <span class="codefrag">lucene-demo-{version}.jar</span>-under analysis/common/ and demo/, respectively.-</p>-<p>-Put all three of these files in your Java CLASSPATH.-</p>-</div>---<a name="N10041"></a><a name="Indexing Files"></a>-<h2 class="boxed">Indexing Files</h2>-<div class="section">-<p>-Once you've gotten this far you're probably itching to go. Let's <b>build an index!</b> Assuming-you've set your CLASSPATH correctly, just type:--<pre>- java org.apache.lucene.demo.IndexFiles -docs {path-to-lucene}/src-</pre>--This will produce a subdirectory called <span class="codefrag">index</span> which will contain an index of all of the-Lucene source code.-</p>-<p>-To <b>search the index</b> type:--<pre>- java org.apache.lucene.demo.SearchFiles-</pre>--You'll be prompted for a query. Type in a swear word and press the enter key. You'll see that the-Lucene developers are very well mannered and get no results. Now try entering the word "string".-That should return a whole bunch of documents. The results will page at every tenth result and ask-you whether you want more results.-</p>-</div>---<a name="N1005C"></a><a name="About the code..."></a>-<h2 class="boxed">About the code...</h2>-<div class="section">-<p>--<a href="demo2.html">read on>>></a>--</p>-</div>---</div>-<!--+- |end content- +-->-<div class="clearboth"> </div>-</div>-<div id="footer">-<!--+- |start bottomstrip- +-->-<div class="lastmodified">-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<div class="copyright">- Copyright ©- 2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>-</div>-<!--+- |end bottomstrip- +-->-</div>-<script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();--</script>-</body>-</html>diff --git a/lucene/site/build/site/demo2.html b/lucene/site/build/site/demo2.htmldeleted file mode 100644index 9d2851f8c82..00000000000--- a/lucene/site/build/site/demo2.html+++ /dev/null@@ -1,421 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<html>-<head>-<META http-equiv="Content-Type" content="text/html; charset=UTF-8">-<meta content="Apache Forrest" name="Generator">-<meta name="Forrest-version" content="0.9">-<meta name="Forrest-skin-name" content="lucene">-<title>- Apache Lucene - Basic Demo Sources Walk-through- </title>-<link type="text/css" href="skin/basic.css" rel="stylesheet">-<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">-<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">-<link type="text/css" href="skin/profile.css" rel="stylesheet">-<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>-<link rel="shortcut icon" href="images/favicon.ico">-</head>-<body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<div id="top">-<!--+- |breadtrail- +-->-<div class="breadtrail">-<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>-</div>-<!--+- |header- +-->-<div class="header">-<!--+- |start group logo- +-->-<div class="grouplogo">-<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>-</div>-<!--+- |end group logo- +-->-<!--+- |start Project Logo- +-->-<div class="projectlogo">-<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>-</div>-<!--+- |end Project Logo- +-->-<!--+- |start Search- +-->-<div class="searchbox">-<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">-<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene"> - <input name="Search" value="Search" type="submit">-</form>-<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>-</div>-</div>-<!--+- |end search- +-->-<!--+- |start Tabs- +-->-<ul id="tabs">-<li class="current">-<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>-</li>-<li>-<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>-</li>-<li class="current">-<a class="selected" href="index.html">Lucene 4.0 Documentation</a>-</li>-</ul>-<!--+- |end Tabs- +-->-</div>-</div>-<div id="main">-<div id="publishedStrip">-<!--+- |start Subtabs- +-->-<div id="level2tabs"></div>-<!--+- |end Endtabs- +-->-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<!--+- |breadtrail- +-->-<div class="breadtrail">-- - </div>-<!--+- |start Menu, mainarea- +-->-<!--+- |start Menu- +-->-<div id="menu">-<div onclick="SwitchMenu('menu_1.1', 'skin/')" id="menu_1.1Title" class="menutitle">Documentation</div>-<div id="menu_1.1" class="menuitemgroup">-<div class="menuitem">-<a href="index.html">Overview</a>-</div>-<div class="menuitem">-<a href="changes/Changes.html">Changes</a>-</div>-<div onclick="SwitchMenu('menu_1.1.3', 'skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>-<div id="menu_1.1.3" class="menuitemgroup">-<div class="menuitem">-<a href="api/core/index.html">Core</a>-</div>-<div class="menuitem">-<a href="api/analyzers-common/index.html">Analysis: Common</a>-</div>-<div class="menuitem">-<a href="api/analyzers-kuromoji/index.html">Analysis: Kuromoji (Japanese)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-morfologik/index.html">Analysis: Morfologik (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-phonetic/index.html">Analysis: Phonetic</a>-</div>-<div class="menuitem">-<a href="api/analyzers-smartcn/index.html">Analysis: Smart Chinese</a>-</div>-<div class="menuitem">-<a href="api/analyzers-stempel/index.html">Analysis: Stempel (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-uima/index.html">Analysis: UIMA</a>-</div>-<div class="menuitem">-<a href="api/benchmark/index.html">Benchmark</a>-</div>-<div class="menuitem">-<a href="api/demo/index.html">Demo</a>-</div>-<div class="menuitem">-<a href="api/facet/index.html">Faceting</a>-</div>-<div class="menuitem">-<a href="api/grouping/index.html">Grouping</a>-</div>-<div class="menuitem">-<a href="api/highlighter/index.html">Highlighter</a>-</div>-<div class="menuitem">-<a href="api/join/index.html">Join</a>-</div>-<div class="menuitem">-<a href="api/memory/index.html">Memory</a>-</div>-<div class="menuitem">-<a href="api/misc/index.html">Miscellaneous</a>-</div>-<div class="menuitem">-<a href="api/queries/index.html">Queries</a>-</div>-<div class="menuitem">-<a href="api/queryparser/index.html">Query Parsers</a>-</div>-<div class="menuitem">-<a href="api/sandbox/index.html">Sandbox</a>-</div>-<div class="menuitem">-<a href="api/spatial/index.html">Spatial</a>-</div>-<div class="menuitem">-<a href="api/suggest/index.html">Suggest / Spellcheck</a>-</div>-<div class="menuitem">-<a href="api/test-framework/index.html">Test Framework</a>-</div>-</div>-<div class="menuitem">-<a href="systemrequirements.html">System Requirements</a>-</div>-<div class="menuitem">-<a href="contributions.html">Contributions</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>-</div>-<div class="menuitem">-<a href="fileformats.html">File Formats</a>-</div>-<div class="menuitem">-<a href="gettingstarted.html">Getting Started</a>-</div>-<div class="menuitem">-<a href="queryparsersyntax.html">Query Syntax</a>-</div>-<div class="menuitem">-<a href="scoring.html">Scoring</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java">Wiki</a>-</div>-<div class="menuitem">-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a>-</div>-</div>-<div id="credit"></div>-<div id="roundbottom">-<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>-<!--+- |alternative credits- +-->-<div id="credit2"></div>-</div>-<!--+- |end Menu- +-->-<!--+- |start content- +-->-<div id="content">-<h1>- Apache Lucene - Basic Demo Sources Walk-through- </h1>-<div id="minitoc-area">-<ul class="minitoc">-<li>-<a href="#About the Code">About the Code</a>-</li>-<li>-<a href="#Location of the source">Location of the source</a>-</li>-<li>-<a href="#IndexFiles">IndexFiles</a>-</li>-<li>-<a href="#Searching Files">Searching Files</a>-</li>-</ul>-</div>---<a name="N10013"></a><a name="About the Code"></a>-<h2 class="boxed">About the Code</h2>-<div class="section">-<p>-In this section we walk through the sources behind the command-line Lucene demo: where to find them,-their parts and their function. This section is intended for Java developers wishing to understand-how to use Lucene in their applications.-</p>-</div>----<a name="N1001C"></a><a name="Location of the source"></a>-<h2 class="boxed">Location of the source</h2>-<div class="section">-<p>-NOTE: to examine the sources, you need to download and extract a source checkout of-Lucene: (lucene-{version}-src.zip).-</p>-<p>-Relative to the directory created when you extracted Lucene, you-should see a directory called <span class="codefrag">lucene/demo/</span>. This is the root for the Lucene-demo. Under this directory is <span class="codefrag">src/java/org/apache/lucene/demo/</span>. This is where all-the Java sources for the demo live.-</p>-<p>-Within this directory you should see the <span class="codefrag">IndexFiles.java</span> class we executed earlier.-Bring it up in <span class="codefrag">vi</span> or your editor of choice and let's take a look at it.-</p>-</div>---<a name="N10037"></a><a name="IndexFiles"></a>-<h2 class="boxed">IndexFiles</h2>-<div class="section">-<p>-As we discussed in the previous walk-through, the <a href="api/demo/org/apache/lucene/demo/IndexFiles.html">IndexFiles</a> class creates a Lucene-Index. Let's take a look at how it does this.-</p>-<p>-The <span class="codefrag">main()</span> method parses the command-line parameters, then in preparation for-instantiating <a href="api/core/org/apache/lucene/index/IndexWriter.html">IndexWriter</a>, opens a-<a href="api/core/org/apache/lucene/store/Directory.html">Directory</a> and instantiates-<a href="api/analyzers-common/org/apache/lucene/analysis/standard/StandardAnalyzer.html">StandardAnalyzer</a> and-<a href="api/core/org/apache/lucene/index/IndexWriterConfig.html">IndexWriterConfig</a>.-</p>-<p>-The value of the <span class="codefrag">-index</span> command-line parameter is the name of the filesystem directory-where all index information should be stored. If <span class="codefrag">IndexFiles</span> is invoked with a-relative path given in the <span class="codefrag">-index</span> command-line parameter, or if the <span class="codefrag">-index</span>-command-line parameter is not given, causing the default relative index path "<span class="codefrag">index</span>"-to be used, the index path will be created as a subdirectory of the current working directory-(if it does not already exist). On some platforms, the index path may be created in a different-directory (such as the user's home directory).-</p>-<p>-The <span class="codefrag">-docs</span> command-line parameter value is the location of the directory containing-files to be indexed.-</p>-<p>-The <span class="codefrag">-update</span> command-line parameter tells <span class="codefrag">IndexFiles</span> not to delete the-index if it already exists. When <span class="codefrag">-update</span> is not given, <span class="codefrag">IndexFiles</span> will-first wipe the slate clean before indexing any documents.-</p>-<p>-Lucene <a href="api/core/org/apache/lucene/store/Directory.html">Directory</a>s are used by the-<span class="codefrag">IndexWriter</span> to store information in the index. In addition to the-<a href="api/core/org/apache/lucene/store/FSDirectory.html">FSDirectory</a> implementation we are using,-there are several other <span class="codefrag">Directory</span> subclasses that can write to RAM, to databases, etc.-</p>-<p>-Lucene <a href="api/core/org/apache/lucene/analysis/Analyzer.html">Analyzer</a>s are processing pipelines-that break up text into indexed tokens, a.k.a. terms, and optionally perform other operations on these-tokens, e.g. downcasing, synonym insertion, filtering out unwanted tokens, etc. The <span class="codefrag">Analyzer</span>-we are using is <span class="codefrag">StandardAnalyzer</span>, which creates tokens using the Word Break rules from the-Unicode Text Segmentation algorithm specified in <a href="http://unicode.org/reports/tr29/">Unicode-Standard Annex #29</a>; converts tokens to lowercase; and then filters out stopwords. Stopwords are-common language words such as articles (a, an, the, etc.) and other tokens that may have less value for-searching. It should be noted that there are different rules for every language, and you should use the-proper analyzer for each. Lucene currently provides Analyzers for a number of different languages (see-the javadocs under-<a href="api/analyzers-common/org/apache/lucene/analysis/">lucene/analysis/common/src/java/org/apache/lucene/analysis</a>).-</p>-<p>-The <span class="codefrag">IndexWriterConfig</span> instance holds all configuration for <span class="codefrag">IndexWriter</span>. For-example, we set the <span class="codefrag">OpenMode</span> to use here based on the value of the <span class="codefrag">-update</span>-command-line parameter.-</p>-<p>-Looking further down in the file, after <span class="codefrag">IndexWriter</span> is instantiated, you should see the-<span class="codefrag">indexDocs()</span> code. This recursive function crawls the directories and creates-<a href="api/core/org/apache/lucene/document/Document.html">Document</a> objects. The-<span class="codefrag">Document</span> is simply a data object to represent the text content from the file as well as-its creation time and location. These instances are added to the <span class="codefrag">IndexWriter</span>. If-the <span class="codefrag">-update</span> command-line parameter is given, the <span class="codefrag">IndexWriter</span>-<span class="codefrag">OpenMode</span> will be set to <span class="codefrag">OpenMode.CREATE_OR_APPEND</span>, and rather than-adding documents to the index, the <span class="codefrag">IndexWriter</span> will <strong>update</strong> them-in the index by attempting to find an already-indexed document with the same identifier (in our-case, the file path serves as the identifier); deleting it from the index if it exists; and then-adding the new document to the index.-</p>-</div>---<a name="N100DB"></a><a name="Searching Files"></a>-<h2 class="boxed">Searching Files</h2>-<div class="section">-<p>-The <a href="api/demo/org/apache/lucene/demo/SearchFiles.html">SearchFiles</a> class is-quite simple. It primarily collaborates with an-<a href="api/core/org/apache/lucene/search/IndexSearcher.html">IndexSearcher</a>,-<a href="api/analyzers-common/org/apache/lucene/analysis/standard/StandardAnalyzer.html">StandardAnalyzer</a> (which is used in the-<a href="api/demo/org/apache/lucene/demo/IndexFiles.html">IndexFiles</a> class as well)-and a <a href="api/core/org/apache/lucene/queryParser/QueryParser.html">QueryParser</a>. The-query parser is constructed with an analyzer used to interpret your query text in the same way the-documents are interpreted: finding word boundaries, downcasing, and removing useless words like-'a', 'an' and 'the'. The <a href="api/core/org/apache/lucene/search/Query.html">Query</a>-object contains the results from the-<a href="api/core/org/apache/lucene/queryParser/QueryParser.html">QueryParser</a> which is passed-to the searcher. Note that it's also possible to programmatically construct a rich-<a href="api/core/org/apache/lucene/search/Query.html">Query</a> object without using the query-parser. The query parser just enables decoding the <a href="queryparsersyntax.html">Lucene query-syntax</a> into the corresponding <a href="api/core/org/apache/lucene/search/Query.html">Query</a>-object.-</p>-<p>--<span class="codefrag">SearchFiles</span> uses the <span class="codefrag">IndexSearcher.search(query,n)</span> method that returns-<a href="api/core/org/apache/lucene/search/TopDocs.html">TopDocs</a> with max <span class="codefrag">n</span> hits.-The results are printed in pages, sorted by score (i.e. relevance).-</p>-</div>--</div>-<!--+- |end content- +-->-<div class="clearboth"> </div>-</div>-<div id="footer">-<!--+- |start bottomstrip- +-->-<div class="lastmodified">-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<div class="copyright">- Copyright ©- 2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>-</div>-<!--+- |end bottomstrip- +-->-</div>-<script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();--</script>-</body>-</html>diff --git a/lucene/site/build/site/fileformats.html b/lucene/site/build/site/fileformats.htmldeleted file mode 100644index a8ff8af8543..00000000000--- a/lucene/site/build/site/fileformats.html+++ /dev/null@@ -1,2648 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<html>-<head>-<META http-equiv="Content-Type" content="text/html; charset=UTF-8">-<meta content="Apache Forrest" name="Generator">-<meta name="Forrest-version" content="0.9">-<meta name="Forrest-skin-name" content="lucene">-<title>- Apache Lucene - Index File Formats- </title>-<link type="text/css" href="skin/basic.css" rel="stylesheet">-<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">-<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">-<link type="text/css" href="skin/profile.css" rel="stylesheet">-<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>-<link rel="shortcut icon" href="images/favicon.ico">-</head>-<body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<div id="top">-<!--+- |breadtrail- +-->-<div class="breadtrail">-<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>-</div>-<!--+- |header- +-->-<div class="header">-<!--+- |start group logo- +-->-<div class="grouplogo">-<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>-</div>-<!--+- |end group logo- +-->-<!--+- |start Project Logo- +-->-<div class="projectlogo">-<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>-</div>-<!--+- |end Project Logo- +-->-<!--+- |start Search- +-->-<div class="searchbox">-<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">-<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene"> - <input name="Search" value="Search" type="submit">-</form>-<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>-</div>-</div>-<!--+- |end search- +-->-<!--+- |start Tabs- +-->-<ul id="tabs">-<li class="current">-<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>-</li>-<li>-<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>-</li>-<li class="current">-<a class="selected" href="index.html">Lucene 4.0 Documentation</a>-</li>-</ul>-<!--+- |end Tabs- +-->-</div>-</div>-<div id="main">-<div id="publishedStrip">-<!--+- |start Subtabs- +-->-<div id="level2tabs"></div>-<!--+- |end Endtabs- +-->-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<!--+- |breadtrail- +-->-<div class="breadtrail">-- - </div>-<!--+- |start Menu, mainarea- +-->-<!--+- |start Menu- +-->-<div id="menu">-<div onclick="SwitchMenu('menu_selected_1.1', 'skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('skin/images/chapter_open.gif');">Documentation</div>-<div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;">-<div class="menuitem">-<a href="index.html">Overview</a>-</div>-<div class="menuitem">-<a href="changes/Changes.html">Changes</a>-</div>-<div onclick="SwitchMenu('menu_1.1.3', 'skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>-<div id="menu_1.1.3" class="menuitemgroup">-<div class="menuitem">-<a href="api/core/index.html">Core</a>-</div>-<div class="menuitem">-<a href="api/analyzers-common/index.html">Analysis: Common</a>-</div>-<div class="menuitem">-<a href="api/analyzers-kuromoji/index.html">Analysis: Kuromoji (Japanese)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-morfologik/index.html">Analysis: Morfologik (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-phonetic/index.html">Analysis: Phonetic</a>-</div>-<div class="menuitem">-<a href="api/analyzers-smartcn/index.html">Analysis: Smart Chinese</a>-</div>-<div class="menuitem">-<a href="api/analyzers-stempel/index.html">Analysis: Stempel (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-uima/index.html">Analysis: UIMA</a>-</div>-<div class="menuitem">-<a href="api/benchmark/index.html">Benchmark</a>-</div>-<div class="menuitem">-<a href="api/demo/index.html">Demo</a>-</div>-<div class="menuitem">-<a href="api/facet/index.html">Faceting</a>-</div>-<div class="menuitem">-<a href="api/grouping/index.html">Grouping</a>-</div>-<div class="menuitem">-<a href="api/highlighter/index.html">Highlighter</a>-</div>-<div class="menuitem">-<a href="api/join/index.html">Join</a>-</div>-<div class="menuitem">-<a href="api/memory/index.html">Memory</a>-</div>-<div class="menuitem">-<a href="api/misc/index.html">Miscellaneous</a>-</div>-<div class="menuitem">-<a href="api/queries/index.html">Queries</a>-</div>-<div class="menuitem">-<a href="api/queryparser/index.html">Query Parsers</a>-</div>-<div class="menuitem">-<a href="api/sandbox/index.html">Sandbox</a>-</div>-<div class="menuitem">-<a href="api/spatial/index.html">Spatial</a>-</div>-<div class="menuitem">-<a href="api/suggest/index.html">Suggest / Spellcheck</a>-</div>-<div class="menuitem">-<a href="api/test-framework/index.html">Test Framework</a>-</div>-</div>-<div class="menuitem">-<a href="systemrequirements.html">System Requirements</a>-</div>-<div class="menuitem">-<a href="contributions.html">Contributions</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>-</div>-<div class="menupage">-<div class="menupagetitle">File Formats</div>-</div>-<div class="menuitem">-<a href="gettingstarted.html">Getting Started</a>-</div>-<div class="menuitem">-<a href="queryparsersyntax.html">Query Syntax</a>-</div>-<div class="menuitem">-<a href="scoring.html">Scoring</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java">Wiki</a>-</div>-<div class="menuitem">-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a>-</div>-</div>-<div id="credit"></div>-<div id="roundbottom">-<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>-<!--+- |alternative credits- +-->-<div id="credit2"></div>-</div>-<!--+- |end Menu- +-->-<!--+- |start content- +-->-<div id="content">-<h1>- Apache Lucene - Index File Formats- </h1>-<div id="minitoc-area">-<ul class="minitoc">-<li>-<a href="#Index File Formats">Index File Formats</a>-</li>-<li>-<a href="#Definitions">Definitions</a>-<ul class="minitoc">-<li>-<a href="#Inverted Indexing">Inverted Indexing</a>-</li>-<li>-<a href="#Types of Fields">Types of Fields</a>-</li>-<li>-<a href="#Segments">Segments</a>-</li>-<li>-<a href="#Document Numbers">Document Numbers</a>-</li>-</ul>-</li>-<li>-<a href="#Overview">Overview</a>-</li>-<li>-<a href="#File Naming">File Naming</a>-</li>-<li>-<a href="#file-names">Summary of File Extensions</a>-</li>-<li>-<a href="#Primitive Types">Primitive Types</a>-<ul class="minitoc">-<li>-<a href="#Byte">Byte</a>-</li>-<li>-<a href="#UInt32">UInt32</a>-</li>-<li>-<a href="#Uint64">Uint64</a>-</li>-<li>-<a href="#VInt">VInt</a>-</li>-<li>-<a href="#Chars">Chars</a>-</li>-<li>-<a href="#String">String</a>-</li>-</ul>-</li>-<li>-<a href="#Compound Types">Compound Types</a>-<ul class="minitoc">-<li>-<a href="#MapStringString">Map<String,String></a>-</li>-</ul>-</li>-<li>-<a href="#Per-Index Files">Per-Index Files</a>-<ul class="minitoc">-<li>-<a href="#Segments File">Segments File</a>-</li>-<li>-<a href="#Lock File">Lock File</a>-</li>-<li>-<a href="#Deletable File">Deletable File</a>-</li>-<li>-<a href="#Compound Files">Compound Files</a>-</li>-</ul>-</li>-<li>-<a href="#Per-Segment Files">Per-Segment Files</a>-<ul class="minitoc">-<li>-<a href="#Fields">Fields</a>-</li>-<li>-<a href="#Term Dictionary">Term Dictionary</a>-</li>-<li>-<a href="#Frequencies">Frequencies</a>-</li>-<li>-<a href="#Positions">Positions</a>-</li>-<li>-<a href="#Normalization Factors">Normalization Factors</a>-</li>-<li>-<a href="#Term Vectors">Term Vectors</a>-</li>-<li>-<a href="#Deleted Documents">Deleted Documents</a>-</li>-</ul>-</li>-<li>-<a href="#Limitations">Limitations</a>-</li>-</ul>-</div>--<a name="N1000C"></a><a name="Index File Formats"></a>-<h2 class="boxed">Index File Formats</h2>-<div class="section">-<p>- This document defines the index file formats used- in this version of Lucene. If you are using a different- version of Lucene, please consult the copy of- <span class="codefrag">docs/fileformats.html</span>- that was distributed- with the version you are using.- </p>-<p>- Apache Lucene is written in Java, but several- efforts are underway to write- <a href="http://wiki.apache.org/lucene-java/LuceneImplementations">versions- of Lucene in other programming- languages</a>. If these versions are to remain compatible with Apache- Lucene, then a language-independent definition of the Lucene index- format is required. This document thus attempts to provide a- complete and independent definition of the Apache Lucene file- formats.- </p>-<p>- As Lucene evolves, this document should evolve.- Versions of Lucene in different programming languages should endeavor- to agree on file formats, and generate new versions of this document.- </p>-<p>- Compatibility notes are provided in this document,- describing how file formats have changed from prior versions.- </p>-<p>- In version 2.1, the file format was changed to allow- lock-less commits (ie, no more commit lock). The- change is fully backwards compatible: you can open a- pre-2.1 index for searching or adding/deleting of- docs. When the new segments file is saved- (committed), it will be written in the new file format- (meaning no specific "upgrade" process is needed).- But note that once a commit has occurred, pre-2.1- Lucene will not be able to read the index.- </p>-<p>- In version 2.3, the file format was changed to allow- segments to share a single set of doc store (vectors &- stored fields) files. This allows for faster indexing- in certain cases. The change is fully backwards- compatible (in the same way as the lock-less commits- change in 2.1).- </p>-<p>- In version 2.4, Strings are now written as true UTF-8- byte sequence, not Java's modified UTF-8. See issue- LUCENE-510 for details.- </p>-<p>- In version 2.9, an optional opaque Map<String,String>- CommitUserData may be passed to IndexWriter's commit- methods (and later retrieved), which is recorded in- the segments_N file. See issue LUCENE-1382 for- details. Also, diagnostics were added to each segment- written recording details about why it was written- (due to flush, merge; which OS/JRE was used; etc.).- See issue LUCENE-1654 for details.- </p>-<p>- In version 3.0, compressed fields are no longer- written to the index (they can still be read, but on- merge the new segment will write them,- uncompressed). See issue LUCENE-1960 for details.- </p>-<p>- In version 3.1, segments records the code version- that created them. See LUCENE-2720 for details.-- Additionally segments track explicitly whether or- not they have term vectors. See LUCENE-2811 for details.- </p>-<p>- In version 3.2, numeric fields are written as natively- to stored fields file, previously they were stored in- text format only.- </p>-<p>- In version 3.4, fields can omit position data while- still indexing term frequencies.- </p>-</div>---<a name="N1003D"></a><a name="Definitions"></a>-<h2 class="boxed">Definitions</h2>-<div class="section">-<p>- The fundamental concepts in Lucene are index,- document, field and term.- </p>-<p>- An index contains a sequence of documents.- </p>-<ul>--<li>--<p>- A document is a sequence of fields.- </p>--</li>---<li>--<p>- A field is a named sequence of terms.- </p>--</li>---<li>- A term is a string.- </li>--</ul>-<p>- The same string in two different fields is- considered a different term. Thus terms are represented as a pair of- strings, the first naming the field, and the second naming text- within the field.- </p>-<a name="N1005D"></a><a name="Inverted Indexing"></a>-<h3 class="boxed">Inverted Indexing</h3>-<p>- The index stores statistics about terms in order- to make term-based search more efficient. Lucene's- index falls into the family of indexes known as an <i>inverted- index.</i> This is because it can list, for a term, the documents that contain- it. This is the inverse of the natural relationship, in which- documents list terms.- </p>-<a name="N10069"></a><a name="Types of Fields"></a>-<h3 class="boxed">Types of Fields</h3>-<p>- In Lucene, fields may be <i>stored</i>, in which- case their text is stored in the index literally, in a non-inverted- manner. Fields that are inverted are called <i>indexed</i>. A field- may be both stored and indexed.</p>-<p>The text of a field may be <i>tokenized</i> into terms to be- indexed, or the text of a field may be used literally as a term to be indexed.- Most fields are- tokenized, but sometimes it is useful for certain identifier fields- to be indexed literally.- </p>-<p>See the <a href="api/core/org/apache/lucene/document/Field.html">Field</a> java docs for more information on Fields.</p>-<a name="N10086"></a><a name="Segments"></a>-<h3 class="boxed">Segments</h3>-<p>- Lucene indexes may be composed of multiple sub-indexes, or- <i>segments</i>. Each segment is a fully independent index, which could be searched- separately. Indexes evolve by:- </p>-<ol>--<li>--<p>Creating new segments for newly added documents.</p>--</li>--<li>--<p>Merging existing segments.</p>--</li>--</ol>-<p>- Searches may involve multiple segments and/or multiple indexes, each- index potentially composed of a set of segments.- </p>-<a name="N100A4"></a><a name="Document Numbers"></a>-<h3 class="boxed">Document Numbers</h3>-<p>- Internally, Lucene refers to documents by an integer <i>document- number</i>. The first document added to an index is numbered zero, and each- subsequent document added gets a number one greater than the previous.- </p>-<p>--<br>--</p>-<p>- Note that a document's number may change, so caution should be taken- when storing these numbers outside of Lucene. In particular, numbers may- change in the following situations:- </p>-<ul>--<li>--<p>- The- numbers stored in each segment are unique only within the segment,- and must be converted before they can be used in a larger context.- The standard technique is to allocate each segment a range of- values, based on the range of numbers used in that segment. To- convert a document number from a segment to an external value, the- segment's <i>base</i> document- number is added. To convert an external value back to a- segment-specific value, the segment is identified by the range that- the external value is in, and the segment's base value is- subtracted. For example two five document segments might be- combined, so that the first segment has a base value of zero, and- the second of five. Document three from the second segment would- have an external value of eight.- </p>--</li>--<li>--<p>- When documents are deleted, gaps are created- in the numbering. These are eventually removed as the index evolves- through merging. Deleted documents are dropped when segments are- merged. A freshly-merged segment thus has no gaps in its numbering.- </p>--</li>--</ul>-</div>---<a name="N100CB"></a><a name="Overview"></a>-<h2 class="boxed">Overview</h2>-<div class="section">-<p>- Each segment index maintains the following:- </p>-<ul>--<li>--<p>Field names. This- contains the set of field names used in the index.-- </p>--</li>--<li>--<p>Stored Field- values. This contains, for each document, a list of attribute-value- pairs, where the attributes are field names. These are used to- store auxiliary information about the document, such as its title,- url, or an identifier to access a- database. The set of stored fields are what is returned for each hit- when searching. This is keyed by document number.- </p>--</li>--<li>--<p>Term dictionary.- A dictionary containing all of the terms used in all of the indexed- fields of all of the documents. The dictionary also contains the- number of documents which contain the term, and pointers to the- term's frequency and proximity data.- </p>--</li>---<li>--<p>Term Frequency- data. For each term in the dictionary, the numbers of all the- documents that contain that term, and the frequency of the term in- that document, unless frequencies are omitted (IndexOptions.DOCS_ONLY)- </p>--</li>---<li>--<p>Term Proximity- data. For each term in the dictionary, the positions that the term- occurs in each document. Note that this will- not exist if all fields in all documents omit position data.- </p>--</li>---<li>--<p>Normalization- factors. For each field in each document, a value is stored that is- multiplied into the score for hits on that field.- </p>--</li>--<li>--<p>Term Vectors. For each field in each document, the term vector- (sometimes called document vector) may be stored. A term vector consists- of term text and term frequency. To add Term Vectors to your index see the- <a href="api/core/org/apache/lucene/document/Field.html">Field</a>- constructors- </p>--</li>--<li>--<p>Deleted documents.- An optional file indicating which documents are deleted.- </p>--</li>--</ul>-<p>Details on each of these are provided in subsequent sections.- </p>-</div>---<a name="N1010E"></a><a name="File Naming"></a>-<h2 class="boxed">File Naming</h2>-<div class="section">-<p>- All files belonging to a segment have the same name with varying- extensions. The extensions correspond to the different file formats- described below. When using the Compound File format (default in 1.4 and greater) these files are- collapsed into a single .cfs file (see below for details)- </p>-<p>- Typically, all segments- in an index are stored in a single directory, although this is not- required.- </p>-<p>- As of version 2.1 (lock-less commits), file names are- never re-used (there is one exception, "segments.gen",- see below). That is, when any file is saved to the- Directory it is given a never before used filename.- This is achieved using a simple generations approach.- For example, the first segments file is segments_1,- then segments_2, etc. The generation is a sequential- long integer represented in alpha-numeric (base 36)- form.- </p>-</div>--<a name="N1011D"></a><a name="file-names"></a>-<h2 class="boxed">Summary of File Extensions</h2>-<div class="section">-<p>The following table summarizes the names and extensions of the files in Lucene:- <table class="ForrestTable" cellspacing="1" cellpadding="4">--<tr>--<th>Name</th>- <th>Extension</th>- <th>Brief Description</th>--</tr>--<tr>--<td><a href="#Segments File">Segments File</a></td>- <td>segments.gen, segments_N</td>- <td>Stores information about segments</td>--</tr>--<tr>--<td><a href="#Lock File">Lock File</a></td>- <td>write.lock</td>- <td>The Write lock prevents multiple IndexWriters from writing to the same file.</td>--</tr>--<tr>--<td><a href="#Compound Files">Compound File</a></td>- <td>.cfs</td>- <td>An optional "virtual" file consisting of all the other index files for systems- that frequently run out of file handles.</td>--</tr>--<tr>--<td><a href="#Compound File">Compound File Entry table</a></td>- <td>.cfe</td>- <td>The "virtual" compound file's entry table holding all entries in the corresponding .cfs file (Since 3.4)</td>--</tr>--<tr>--<td><a href="#Fields">Fields</a></td>- <td>.fnm</td>- <td>Stores information about the fields</td>--</tr>--<tr>--<td><a href="#field_index">Field Index</a></td>- <td>.fdx</td>- <td>Contains pointers to field data</td>--</tr>--<tr>--<td><a href="#field_data">Field Data</a></td>- <td>.fdt</td>- <td>The stored fields for documents</td>--</tr>--<tr>--<td><a href="#tis">Term Infos</a></td>- <td>.tis</td>- <td>Part of the term dictionary, stores term info</td>--</tr>--<tr>--<td><a href="#tii">Term Info Index</a></td>- <td>.tii</td>- <td>The index into the Term Infos file</td>--</tr>--<tr>--<td><a href="#Frequencies">Frequencies</a></td>- <td>.frq</td>- <td>Contains the list of docs which contain each term along with frequency</td>--</tr>--<tr>--<td><a href="#Positions">Positions</a></td>- <td>.prx</td>- <td>Stores position information about where a term occurs in the index</td>--</tr>--<tr>--<td><a href="#Normalization Factors">Norms</a></td>- <td>.nrm</td>- <td>Encodes length and boost factors for docs and fields</td>--</tr>--<tr>--<td><a href="#tvx">Term Vector Index</a></td>- <td>.tvx</td>- <td>Stores offset into the document data file</td>--</tr>--<tr>--<td><a href="#tvd">Term Vector Documents</a></td>- <td>.tvd</td>- <td>Contains information about each document that has term vectors</td>--</tr>--<tr>--<td><a href="#tvf">Term Vector Fields</a></td>- <td>.tvf</td>- <td>The field level info about term vectors</td>--</tr>--<tr>--<td><a href="#Deleted Documents">Deleted Documents</a></td>- <td>.del</td>- <td>Info about what files are deleted</td>--</tr>--</table>---</p>-</div>---<a name="N10215"></a><a name="Primitive Types"></a>-<h2 class="boxed">Primitive Types</h2>-<div class="section">-<a name="N1021A"></a><a name="Byte"></a>-<h3 class="boxed">Byte</h3>-<p>- The most primitive type- is an eight-bit byte. Files are accessed as sequences of bytes. All- other data types are defined as sequences- of bytes, so file formats are byte-order independent.- </p>-<a name="N10223"></a><a name="UInt32"></a>-<h3 class="boxed">UInt32</h3>-<p>- 32-bit unsigned integers are written as four- bytes, high-order bytes first.- </p>-<p>- UInt32 --> <Byte><sup>4</sup>--</p>-<a name="N10232"></a><a name="Uint64"></a>-<h3 class="boxed">Uint64</h3>-<p>- 64-bit unsigned integers are written as eight- bytes, high-order bytes first.- </p>-<p>UInt64 --> <Byte><sup>8</sup>--</p>-<a name="N10241"></a><a name="VInt"></a>-<h3 class="boxed">VInt</h3>-<p>- A variable-length format for positive integers is- defined where the high-order bit of each byte indicates whether more- bytes remain to be read. The low-order seven bits are appended as- increasingly more significant bits in the resulting integer value.- Thus values from zero to 127 may be stored in a single byte, values- from 128 to 16,383 may be stored in two bytes, and so on.- </p>-<p>--<b>VInt Encoding Example</b>--</p>-<table class="ForrestTable" cellspacing="0" cellpadding="4" border="0">--<col width="64*">--<col width="64*">--<col width="64*">--<col width="64*">--<tr valign="TOP">--<td width="25%">--<p align="RIGHT">--<b>Value</b>--</p>--</td>- <td width="25%">--<p align="RIGHT">--<b>First byte</b>--</p>--</td>- <td width="25%">--<p align="RIGHT">--<b>Second byte</b>--</p>--</td>- <td width="25%">--<p align="RIGHT">--<b>Third byte</b>--</p>--</td>--</tr>--<tr valign="BOTTOM">--<td sdnum="1033;0;#,##0" sdval="0" width="25%">--<p align="RIGHT">0- </p>--</td>- <td sdnum="1033;0;00000000" sdval="0" width="25%">--<p align="RIGHT" class="western" style="margin-left: 0.11cm; margin-right: 0.01cm">- 00000000- </p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.07cm; margin-right: 0.01cm">--<br>---</p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.47cm; margin-right: 0.01cm">--<br>---</p>--</td>--</tr>--<tr valign="BOTTOM">--<td sdnum="1033;0;#,##0" sdval="1" width="25%">--<p align="RIGHT">1- </p>--</td>- <td sdnum="1033;0;00000000" sdval="1" width="25%">--<p align="RIGHT" class="western" style="margin-left: 0.11cm; margin-right: 0.01cm">- 00000001- </p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.07cm; margin-right: 0.01cm">--<br>---</p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.47cm; margin-right: 0.01cm">--<br>---</p>--</td>--</tr>--<tr valign="BOTTOM">--<td sdnum="1033;0;#,##0" sdval="2" width="25%">--<p align="RIGHT">2- </p>--</td>- <td sdnum="1033;0;00000000" sdval="10" width="25%">--<p align="RIGHT" class="western" style="margin-left: 0.11cm; margin-right: 0.01cm">- 00000010- </p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.07cm; margin-right: 0.01cm">--<br>---</p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.47cm; margin-right: 0.01cm">--<br>---</p>--</td>--</tr>--<tr>--<td valign="TOP" width="25%">--<p align="RIGHT">...- </p>--</td>- <td sdnum="1033;0;00000000" valign="BOTTOM" width="25%">--<p align="RIGHT" style="margin-left: 0.11cm; margin-right: 0.01cm">--<br>---</p>--</td>- <td sdnum="1033;0;00000000" valign="BOTTOM" width="25%">--<p align="RIGHT" style="margin-left: -0.07cm; margin-right: 0.01cm">--<br>---</p>--</td>- <td sdnum="1033;0;00000000" valign="BOTTOM" width="25%">--<p align="RIGHT" style="margin-left: -0.47cm; margin-right: 0.01cm">--<br>---</p>--</td>--</tr>--<tr valign="BOTTOM">--<td sdnum="1033;0;#,##0" sdval="127" width="25%">--<p align="RIGHT">127- </p>--</td>- <td sdnum="1033;0;00000000" sdval="1111111" width="25%">--<p align="RIGHT" class="western" style="margin-left: 0.11cm; margin-right: 0.01cm">- 01111111- </p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.07cm; margin-right: 0.01cm">--<br>---</p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.47cm; margin-right: 0.01cm">--<br>---</p>--</td>--</tr>--<tr valign="BOTTOM">--<td sdnum="1033;0;#,##0" sdval="128" width="25%">--<p align="RIGHT">128- </p>--</td>- <td sdnum="1033;0;00000000" sdval="10000000" width="25%">--<p align="RIGHT" class="western" style="margin-left: 0.11cm; margin-right: 0.01cm">- 10000000- </p>--</td>- <td sdnum="1033;0;00000000" sdval="1" width="25%">--<p align="RIGHT" class="western" style="margin-left: -0.07cm; margin-right: 0.01cm">- 00000001- </p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.47cm; margin-right: 0.01cm">--<br>---</p>--</td>--</tr>--<tr valign="BOTTOM">--<td sdnum="1033;0;#,##0" sdval="129" width="25%">--<p align="RIGHT">129- </p>--</td>- <td sdnum="1033;0;00000000" sdval="10000001" width="25%">--<p align="RIGHT" class="western" style="margin-left: 0.11cm; margin-right: 0.01cm">- 10000001- </p>--</td>- <td sdnum="1033;0;00000000" sdval="1" width="25%">--<p align="RIGHT" class="western" style="margin-left: -0.07cm; margin-right: 0.01cm">- 00000001- </p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.47cm; margin-right: 0.01cm">--<br>---</p>--</td>--</tr>--<tr valign="BOTTOM">--<td sdnum="1033;0;#,##0" sdval="130" width="25%">--<p align="RIGHT">130- </p>--</td>- <td sdnum="1033;0;00000000" sdval="10000010" width="25%">--<p align="RIGHT" class="western" style="margin-left: 0.11cm; margin-right: 0.01cm">- 10000010- </p>--</td>- <td sdnum="1033;0;00000000" sdval="1" width="25%">--<p align="RIGHT" class="western" style="margin-left: -0.07cm; margin-right: 0.01cm">- 00000001- </p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.47cm; margin-right: 0.01cm">--<br>---</p>--</td>--</tr>--<tr>--<td valign="TOP" width="25%">--<p align="RIGHT">...- </p>--</td>- <td sdnum="1033;0;00000000" valign="BOTTOM" width="25%">--<p align="RIGHT" style="margin-left: 0.11cm; margin-right: 0.01cm">--<br>---</p>--</td>- <td sdnum="1033;0;00000000" valign="BOTTOM" width="25%">--<p align="RIGHT" style="margin-left: -0.07cm; margin-right: 0.01cm">--<br>---</p>--</td>- <td sdnum="1033;0;00000000" valign="BOTTOM" width="25%">--<p align="RIGHT" style="margin-left: -0.47cm; margin-right: 0.01cm">--<br>---</p>--</td>--</tr>--<tr valign="BOTTOM">--<td sdnum="1033;0;#,##0" sdval="16383" width="25%">--<p align="RIGHT">16,383- </p>--</td>- <td sdnum="1033;0;00000000" sdval="11111111" width="25%">--<p align="RIGHT" class="western" style="margin-left: 0.11cm; margin-right: 0.01cm">- 11111111- </p>--</td>- <td sdnum="1033;0;00000000" sdval="1111111" width="25%">--<p align="RIGHT" class="western" style="margin-left: -0.07cm; margin-right: 0.01cm">- 01111111- </p>--</td>- <td sdnum="1033;0;00000000" width="25%">--<p align="RIGHT" style="margin-left: -0.47cm; margin-right: 0.01cm">--<br>---</p>--</td>--</tr>--<tr valign="BOTTOM">--<td sdnum="1033;0;#,##0" sdval="16384" width="25%">--<p align="RIGHT">16,384- </p>--</td>- <td sdnum="1033;0;00000000" sdval="10000000" width="25%">--<p align="RIGHT" class="western" style="margin-left: 0.11cm; margin-right: 0.01cm">- 10000000- </p>--</td>- <td sdnum="1033;0;00000000" sdval="10000000" width="25%">--<p align="RIGHT" class="western" style="margin-left: -0.07cm; margin-right: 0.01cm">- 10000000- </p>--</td>- <td sdnum="1033;0;00000000" sdval="1" width="25%">--<p align="RIGHT" class="western" style="margin-left: -0.47cm; margin-right: 0.01cm">- 00000001- </p>--</td>--</tr>--<tr valign="BOTTOM">--<td sdnum="1033;0;#,##0" sdval="16385" width="25%">--<p align="RIGHT">16,385- </p>--</td>- <td sdnum="1033;0;00000000" sdval="10000001" width="25%">--<p align="RIGHT" class="western" style="margin-left: 0.11cm; margin-right: 0.01cm">- 10000001- </p>--</td>- <td sdnum="1033;0;00000000" sdval="10000000" width="25%">--<p align="RIGHT" class="western" style="margin-left: -0.07cm; margin-right: 0.01cm">- 10000000- </p>--</td>- <td sdnum="1033;0;00000000" sdval="1" width="25%">--<p align="RIGHT" class="western" style="margin-left: -0.47cm; margin-right: 0.01cm">- 00000001- </p>--</td>--</tr>--<tr>--<td valign="TOP" width="25%">--<p align="RIGHT">...- </p>--</td>- <td sdnum="1033;0;00000000" valign="BOTTOM" width="25%">--<p align="RIGHT" class="western" style="margin-left: 0.11cm; margin-right: 0.01cm">--<br>---</p>--</td>- <td sdnum="1033;0;00000000" valign="BOTTOM" width="25%">--<p align="RIGHT" class="western" style="margin-left: -0.07cm; margin-right: 0.01cm">--<br>---</p>--</td>- <td sdnum="1033;0;00000000" valign="BOTTOM" width="25%">--<p align="RIGHT" class="western" style="margin-left: -0.47cm; margin-right: 0.01cm">--<br>---</p>--</td>--</tr>--</table>-<p>- This provides compression while still being- efficient to decode.- </p>-<a name="N10526"></a><a name="Chars"></a>-<h3 class="boxed">Chars</h3>-<p>- Lucene writes unicode- character sequences as UTF-8 encoded bytes.- </p>-<a name="N1052F"></a><a name="String"></a>-<h3 class="boxed">String</h3>-<p>- Lucene writes strings as UTF-8 encoded bytes.- First the length, in bytes, is written as a VInt,- followed by the bytes.- </p>-<p>- String --> VInt, Chars- </p>-</div>---<a name="N1053C"></a><a name="Compound Types"></a>-<h2 class="boxed">Compound Types</h2>-<div class="section">-<a name="N10541"></a><a name="MapStringString"></a>-<h3 class="boxed">Map<String,String></h3>-<p>- In a couple places Lucene stores a Map- String->String.- </p>-<p>- Map<String,String> --> Count<String,String><sup>Count</sup>--</p>-</div>---<a name="N10551"></a><a name="Per-Index Files"></a>-<h2 class="boxed">Per-Index Files</h2>-<div class="section">-<p>- The files in this section exist one-per-index.- </p>-<a name="N10559"></a><a name="Segments File"></a>-<h3 class="boxed">Segments File</h3>-<p>- The active segments in the index are stored in the- segment info file,- <tt>segments_N</tt>.- There may- be one or more- <tt>segments_N</tt>- files in the- index; however, the one with the largest- generation is the active one (when older- segments_N files are present it's because they- temporarily cannot be deleted, or, a writer is in- the process of committing, or a custom- <a href="api/core/org/apache/lucene/index/IndexDeletionPolicy.html">IndexDeletionPolicy</a>- is in use). This file lists each- segment by name, has details about the separate- norms and deletion files, and also contains the- size of each segment.- </p>-<p>- As of 2.1, there is also a file- <tt>segments.gen</tt>.- This file contains the- current generation (the- <tt>_N</tt>- in- <tt>segments_N</tt>)- of the index. This is- used only as a fallback in case the current- generation cannot be accurately determined by- directory listing alone (as is the case for some- NFS clients with time-based directory cache- expiraation). This file simply contains an Int32- version header (SegmentInfos.FORMAT_LOCKLESS =- -2), followed by the generation recorded as Int64,- written twice.- </p>-<p>--<b>3.1</b>- Segments --> Format, Version, NameCounter, SegCount, <SegVersion, SegName, SegSize, DelGen, DocStoreOffset, [DocStoreSegment, DocStoreIsCompoundFile], HasSingleNormFile, NumField,- NormGen<sup>NumField</sup>,- IsCompoundFile, DeletionCount, HasProx, Diagnostics, HasVectors><sup>SegCount</sup>, CommitUserData, Checksum- </p>-<p>- Format, NameCounter, SegCount, SegSize, NumField,- DocStoreOffset, DeletionCount --> Int32- </p>-<p>- Version, DelGen, NormGen, Checksum --> Int64- </p>-<p>- SegVersion, SegName, DocStoreSegment --> String- </p>-<p>- Diagnostics --> Map<String,String>- </p>-<p>- IsCompoundFile, HasSingleNormFile,- DocStoreIsCompoundFile, HasProx, HasVectors --> Int8- </p>-<p>- CommitUserData --> Map<String,String>- </p>-<p>- Format is -9 (SegmentInfos.FORMAT_DIAGNOSTICS).- </p>-<p>- Version counts how often the index has been- changed by adding or deleting documents.- </p>-<p>- NameCounter is used to generate names for new segment files.- </p>-<p>- SegVersion is the code version that created the segment.- </p>-<p>- SegName is the name of the segment, and is used as the file name prefix- for all of the files that compose the segment's index.- </p>-<p>- SegSize is the number of documents contained in the segment index.- </p>-<p>- DelGen is the generation count of the separate- deletes file. If this is -1, there are no- separate deletes. If it is 0, this is a pre-2.1- segment and you must check filesystem for the- existence of _X.del. Anything above zero means- there are separate deletes (_X_N.del).- </p>-<p>- NumField is the size of the array for NormGen, or- -1 if there are no NormGens stored.- </p>-<p>- NormGen records the generation of the separate- norms files. If NumField is -1, there are no- normGens stored and they are all assumed to be 0- when the segment file was written pre-2.1 and all- assumed to be -1 when the segments file is 2.1 or- above. The generation then has the same meaning- as delGen (above).- </p>-<p>- IsCompoundFile records whether the segment is- written as a compound file or not. If this is -1,- the segment is not a compound file. If it is 1,- the segment is a compound file. Else it is 0,- which means we check filesystem to see if _X.cfs- exists.- </p>-<p>- If HasSingleNormFile is 1, then the field norms are- written as a single joined file (with extension- <tt>.nrm</tt>); if it is 0 then each field's norms- are stored as separate <tt>.fN</tt> files. See- "Normalization Factors" below for details.- </p>-<p>- DocStoreOffset, DocStoreSegment,- DocStoreIsCompoundFile: If DocStoreOffset is -1,- this segment has its own doc store (stored fields- values and term vectors) files and DocStoreSegment- and DocStoreIsCompoundFile are not stored. In- this case all files for stored field values- (<tt>*.fdt</tt> and <tt>*.fdx</tt>) and term- vectors (<tt>*.tvf</tt>, <tt>*.tvd</tt> and- <tt>*.tvx</tt>) will be stored with this segment.- Otherwise, DocStoreSegment is the name of the- segment that has the shared doc store files;- DocStoreIsCompoundFile is 1 if that segment is- stored in compound file format (as a <tt>.cfx</tt>- file); and DocStoreOffset is the starting document- in the shared doc store files where this segment's- documents begin. In this case, this segment does- not store its own doc store files but instead- shares a single set of these files with other- segments.- </p>-<p>- Checksum contains the CRC32 checksum of all bytes- in the segments_N file up until the checksum.- This is used to verify integrity of the file on- opening the index.- </p>-<p>- DeletionCount records the number of deleted- documents in this segment.- </p>-<p>- HasProx is 1 if any fields in this segment have- position data (IndexOptions.DOCS_AND_FREQS_AND_POSITIONS); else, it's 0.- </p>-<p>- CommitUserData stores an optional user-supplied- opaque Map<String,String> that was passed to- IndexWriter's commit or prepareCommit, or- IndexReader's flush methods.- </p>-<p>- The Diagnostics Map is privately written by- IndexWriter, as a debugging aid, for each segment- it creates. It includes metadata like the current- Lucene version, OS, Java version, why the segment- was created (merge, flush, addIndexes), etc.- </p>-<p> HasVectors is 1 if this segment stores term vectors,- else it's 0.- </p>-<a name="N105E4"></a><a name="Lock File"></a>-<h3 class="boxed">Lock File</h3>-<p>- The write lock, which is stored in the index- directory by default, is named "write.lock". If- the lock directory is different from the index- directory then the write lock will be named- "XXXX-write.lock" where XXXX is a unique prefix- derived from the full path to the index directory.- When this file is present, a writer is currently- modifying the index (adding or removing- documents). This lock file ensures that only one- writer is modifying the index at a time.- </p>-<a name="N105ED"></a><a name="Deletable File"></a>-<h3 class="boxed">Deletable File</h3>-<p>- A writer dynamically computes- the files that are deletable, instead, so no file- is written.- </p>-<a name="N105F6"></a><a name="Compound Files"></a>-<h3 class="boxed">Compound Files</h3>-<p>Starting with Lucene 1.4 the compound file format became default. This- is simply a container for all files described in the next section- (except for the .del file).</p>-<p>Compound Entry Table (.cfe) --> Version, FileCount, <FileName, DataOffset, DataLength>- <sup>FileCount</sup>--</p>-<p>Compound (.cfs) --> FileData <sup>FileCount</sup>--</p>-<p>Version --> Int</p>-<p>FileCount --> VInt</p>-<p>DataOffset --> Long</p>-<p>DataLength --> Long</p>-<p>FileName --> String</p>-<p>FileData --> raw file data</p>-<p>The raw file data is the data from the individual files named above.</p>-<p>Starting with Lucene 2.3, doc store files (stored- field values and term vectors) can be shared in a- single set of files for more than one segment. When- compound file is enabled, these shared files will be- added into a single compound file (same format as- above) but with the extension <tt>.cfx</tt>.- </p>-</div>---<a name="N10627"></a><a name="Per-Segment Files"></a>-<h2 class="boxed">Per-Segment Files</h2>-<div class="section">-<p>- The remaining files are all per-segment, and are- thus defined by suffix.- </p>-<a name="N1062F"></a><a name="Fields"></a>-<h3 class="boxed">Fields</h3>-<p>--<br>--<b>Field Info</b>--<br>--</p>-<p>- Field names are- stored in the field info file, with suffix .fnm.- </p>-<p>- FieldInfos- (.fnm) --> FNMVersion,FieldsCount, <FieldName,- FieldBits>- <sup>FieldsCount</sup>--</p>-<p>- FNMVersion, FieldsCount --> VInt- </p>-<p>- FieldName --> String- </p>-<p>- FieldBits --> Byte- </p>-<p>--<ul>--<li>- The low-order bit is one for- indexed fields, and zero for non-indexed fields.- </li>--<li>- The second lowest-order- bit is one for fields that have term vectors stored, and zero for fields- without term vectors.- </li>--<li>If the fifth lowest-order bit is set (0x10), norms are omitted for the indexed field.</li>--<li>If the sixth lowest-order bit is set (0x20), payloads are stored for the indexed field.</li>--<li>If the seventh lowest-order bit is set (0x40), term frequencies and positions omitted for the indexed field.</li>--<li>If the eighth lowest-order bit is set (0x80), positions are omitted for the indexed field.</li>--</ul>--</p>-<p>- FNMVersion (added in 2.9) is -2 for indexes from 2.9 - 3.3. It is -3 for indexes in Lucene 3.4+- </p>-<p>- Fields are numbered by their order in this file. Thus field zero is- the- first field in the file, field one the next, and so on. Note that,- like document numbers, field numbers are segment relative.- </p>-<p>--<br>--<b>Stored Fields</b>--<br>--</p>-<p>- Stored fields are represented by two files:- </p>-<ol>--<li>-<a name="field_index"></a>--<p>- The field index, or .fdx file.- </p>---<p>- This contains, for each document, a pointer to- its field data, as follows:- </p>---<p>- FieldIndex- (.fdx) -->- <FieldValuesPosition>- <sup>SegSize</sup>--</p>--<p>FieldValuesPosition- --> Uint64- </p>--<p>This- is used to find the location within the field data file of the- fields of a particular document. Because it contains fixed-length- data, this file may be easily randomly accessed. The position of- document- <i>n</i>- 's- <i></i>- field data is the Uint64 at- <i>n*8</i>- in- this file.- </p>--</li>--<li>--<p>-<a name="field_data"></a>- The field data, or .fdt file.-- </p>---<p>- This contains the stored fields of each document,- as follows:- </p>---<p>- FieldData (.fdt) -->- <DocFieldData>- <sup>SegSize</sup>--</p>--<p>DocFieldData -->- FieldCount, <FieldNum, Bits, Value>- <sup>FieldCount</sup>--</p>--<p>FieldCount -->- VInt- </p>--<p>FieldNum -->- VInt- </p>--<p>Bits -->- Byte- </p>--<p>--<ul>--<li>low order bit is one for tokenized fields</li>--<li>second bit is one for fields containing binary data</li>--<li>third bit is one for fields with compression option enabled- (if compression is enabled, the algorithm used is ZLIB),- only available for indexes until Lucene version 2.9.x</li>--<li>4th to 6th bit (mask: 0x7<<3) define the type of a- numeric field: <ul>--<li>all bits in mask are cleared if no numeric field at all</li>--<li>1<<3: Value is Int</li>--<li>2<<3: Value is Long</li>--<li>3<<3: Value is Int as Float (as of Float.intBitsToFloat)</li>--<li>4<<3: Value is Long as Double (as of Double.longBitsToDouble)</li>--</ul>-</li>--</ul>--</p>--<p>Value -->- String | BinaryValue | Int | Long (depending on Bits)- </p>--<p>BinaryValue -->- ValueSize, <Byte>^ValueSize- </p>--<p>ValueSize -->- VInt- </p>---</li>--</ol>-<a name="N106EA"></a><a name="Term Dictionary"></a>-<h3 class="boxed">Term Dictionary</h3>-<p>- The term dictionary is represented as two files:- </p>-<ol>--<li>-<a name="tis"></a>--<p>- The term infos, or tis file.- </p>---<p>- TermInfoFile (.tis)-->- TIVersion, TermCount, IndexInterval, SkipInterval, MaxSkipLevels, TermInfos- </p>--<p>TIVersion -->- UInt32- </p>--<p>TermCount -->- UInt64- </p>--<p>IndexInterval -->- UInt32- </p>--<p>SkipInterval -->- UInt32- </p>--<p>MaxSkipLevels -->- UInt32- </p>--<p>TermInfos -->- <TermInfo>- <sup>TermCount</sup>--</p>--<p>TermInfo -->- <Term, DocFreq, FreqDelta, ProxDelta, SkipDelta>- </p>--<p>Term -->- <PrefixLength, Suffix, FieldNum>- </p>--<p>Suffix -->- String- </p>--<p>PrefixLength,- DocFreq, FreqDelta, ProxDelta, SkipDelta- <br>- --> VInt- </p>--<p>- This file is sorted by Term. Terms are- ordered first lexicographically (by UTF16- character code) by the term's field name,- and within that lexicographically (by- UTF16 character code) by the term's text.- </p>--<p>TIVersion names the version of the format- of this file and is equal to TermInfosWriter.FORMAT_CURRENT.- </p>--<p>Term- text prefixes are shared. The PrefixLength is the number of initial- characters from the previous term which must be pre-pended to a- term's suffix in order to form the term's text. Thus, if the- previous term's text was "bone" and the term is "boy",- the PrefixLength is two and the suffix is "y".- </p>--<p>FieldNumber- determines the term's field, whose name is stored in the .fdt file.- </p>--<p>DocFreq- is the count of documents which contain the term.- </p>--<p>FreqDelta- determines the position of this term's TermFreqs within the .frq- file. In particular, it is the difference between the position of- this term's data in that file and the position of the previous- term's data (or zero, for the first term in the file).- </p>--<p>ProxDelta- determines the position of this term's TermPositions within the .prx- file. In particular, it is the difference between the position of- this term's data in that file and the position of the previous- term's data (or zero, for the first term in the file. For fields- that omit position data, this will be 0 since- prox information is not stored.- </p>--<p>SkipDelta determines the position of this- term's SkipData within the .frq file. In- particular, it is the number of bytes- after TermFreqs that the SkipData starts.- In other words, it is the length of the- TermFreq data. SkipDelta is only stored- if DocFreq is not smaller than SkipInterval.- </p>--</li>--<li>--<p>-<a name="tii"></a>- The term info index, or .tii file.- </p>---<p>- This contains every IndexInterval- <sup>th</sup>- entry from the .tis- file, along with its location in the "tis" file. This is- designed to be read entirely into memory and used to provide random- access to the "tis" file.- </p>---<p>- The structure of this file is very similar to the- .tis file, with the addition of one item per record, the IndexDelta.- </p>---<p>- TermInfoIndex (.tii)-->- TIVersion, IndexTermCount, IndexInterval, SkipInterval, MaxSkipLevels, TermIndices- </p>--<p>TIVersion -->- UInt32- </p>--<p>IndexTermCount -->- UInt64- </p>--<p>IndexInterval -->- UInt32- </p>--<p>SkipInterval -->- UInt32- </p>--<p>TermIndices -->- <TermInfo, IndexDelta>- <sup>IndexTermCount</sup>--</p>--<p>IndexDelta -->- VLong- </p>--<p>IndexDelta- determines the position of this term's TermInfo within the .tis file. In- particular, it is the difference between the position of this term's- entry in that file and the position of the previous term's entry.- </p>--<p>SkipInterval is the fraction of TermDocs stored in skip tables. It is used to accelerate TermDocs.skipTo(int).- Larger values result in smaller indexes, greater acceleration, but fewer accelerable cases, while- smaller values result in bigger indexes, less acceleration (in case of a small value for MaxSkipLevels) and more- accelerable cases.</p>--<p>MaxSkipLevels is the max. number of skip levels stored for each term in the .frq file. A low value results in- smaller indexes but less acceleration, a larger value results in slighly larger indexes but greater acceleration.- See format of .frq file for more information about skip levels.</p>--</li>--</ol>-<a name="N1076E"></a><a name="Frequencies"></a>-<h3 class="boxed">Frequencies</h3>-<p>- The .frq file contains the lists of documents- which contain each term, along with the frequency of the term in that- document (except when frequencies are omitted: IndexOptions.DOCS_ONLY).- </p>-<p>FreqFile (.frq) -->- <TermFreqs, SkipData>- <sup>TermCount</sup>--</p>-<p>TermFreqs -->- <TermFreq>- <sup>DocFreq</sup>--</p>-<p>TermFreq -->- DocDelta[, Freq?]- </p>-<p>SkipData -->- <<SkipLevelLength, SkipLevel>- <sup>NumSkipLevels-1</sup>, SkipLevel>- <SkipDatum>- </p>-<p>SkipLevel -->- <SkipDatum>- <sup>DocFreq/(SkipInterval^(Level + 1))</sup>--</p>-<p>SkipDatum -->- DocSkip,PayloadLength?,FreqSkip,ProxSkip,SkipChildLevelPointer?- </p>-<p>DocDelta,Freq,DocSkip,PayloadLength,FreqSkip,ProxSkip -->- VInt- </p>-<p>SkipChildLevelPointer -->- VLong- </p>-<p>TermFreqs- are ordered by term (the term is implicit, from the .tis file).- </p>-<p>TermFreq- entries are ordered by increasing document number.- </p>-<p>DocDelta: if frequencies are indexed, this determines both- the document number and the frequency. In- particular, DocDelta/2 is the difference between- this document number and the previous document- number (or zero when this is the first document in- a TermFreqs). When DocDelta is odd, the frequency- is one. When DocDelta is even, the frequency is- read as another VInt. If frequencies are omitted, DocDelta- contains the gap (not multiplied by 2) between- document numbers and no frequency information is- stored.- </p>-<p>For example, the TermFreqs for a term which occurs- once in document seven and three times in document- eleven, with frequencies indexed, would be the following- sequence of VInts:- </p>-<p>15, 8, 3- </p>-<p> If frequencies were omitted (IndexOptions.DOCS_ONLY) it would be this sequence- of VInts instead:- </p>-<p>- 7,4- </p>-<p>DocSkip records the document number before every- SkipInterval- <sup>th</sup>- document in TermFreqs.- If payloads are disabled for the term's field,- then DocSkip represents the difference from the- previous value in the sequence.- If payloads are enabled for the term's field,- then DocSkip/2 represents the difference from the- previous value in the sequence. If payloads are enabled- and DocSkip is odd,- then PayloadLength is stored indicating the length- of the last payload before the SkipInterval<sup>th</sup>- document in TermPositions.- FreqSkip and ProxSkip record the position of every- SkipInterval- <sup>th</sup>- entry in FreqFile and- ProxFile, respectively. File positions are- relative to the start of TermFreqs and Positions,- to the previous SkipDatum in the sequence.- </p>-<p>For example, if DocFreq=35 and SkipInterval=16,- then there are two SkipData entries, containing- the 15- <sup>th</sup>- and 31- <sup>st</sup>- document- numbers in TermFreqs. The first FreqSkip names- the number of bytes after the beginning of- TermFreqs that the 16- <sup>th</sup>- SkipDatum- starts, and the second the number of bytes after- that that the 32- <sup>nd</sup>- starts. The first- ProxSkip names the number of bytes after the- beginning of Positions that the 16- <sup>th</sup>- SkipDatum starts, and the second the number of- bytes after that that the 32- <sup>nd</sup>- starts.- </p>-<p>Each term can have multiple skip levels.- The amount of skip levels for a term is NumSkipLevels = Min(MaxSkipLevels, floor(log(DocFreq/log(SkipInterval)))).- The number of SkipData entries for a skip level is DocFreq/(SkipInterval^(Level + 1)), whereas the lowest skip- level is Level=0. <br>- Example: SkipInterval = 4, MaxSkipLevels = 2, DocFreq = 35. Then skip level 0 has 8 SkipData entries,- containing the 3<sup>rd</sup>, 7<sup>th</sup>, 11<sup>th</sup>, 15<sup>th</sup>, 19<sup>th</sup>, 23<sup>rd</sup>,- 27<sup>th</sup>, and 31<sup>st</sup> document numbers in TermFreqs. Skip level 1 has 2 SkipData entries, containing the- 15<sup>th</sup> and 31<sup>st</sup> document numbers in TermFreqs. <br>- The SkipData entries on all upper levels > 0 contain a SkipChildLevelPointer referencing the corresponding SkipData- entry in level-1. In the example has entry 15 on level 1 a pointer to entry 15 on level 0 and entry 31 on level 1 a pointer- to entry 31 on level 0.- </p>-<a name="N107F6"></a><a name="Positions"></a>-<h3 class="boxed">Positions</h3>-<p>- The .prx file contains the lists of positions that- each term occurs at within documents. Note that- fields omitting positional data do not store- anything into this file, and if all fields in the- index omit positional data then the .prx file will not- exist.- </p>-<p>ProxFile (.prx) -->- <TermPositions>- <sup>TermCount</sup>--</p>-<p>TermPositions -->- <Positions>- <sup>DocFreq</sup>--</p>-<p>Positions -->- <PositionDelta,Payload?>- <sup>Freq</sup>--</p>-<p>Payload -->- <PayloadLength?,PayloadData>- </p>-<p>PositionDelta -->- VInt- </p>-<p>PayloadLength -->- VInt- </p>-<p>PayloadData -->- byte<sup>PayloadLength</sup>--</p>-<p>TermPositions- are ordered by term (the term is implicit, from the .tis file).- </p>-<p>Positions- entries are ordered by increasing document number (the document- number is implicit from the .frq file).- </p>-<p>PositionDelta- is, if payloads are disabled for the term's field, the difference- between the position of the current occurrence in- the document and the previous occurrence (or zero, if this is the- first occurrence in this document).- If payloads are enabled for the term's field, then PositionDelta/2- is the difference between the current and the previous position. If- payloads are enabled and PositionDelta is odd, then PayloadLength is- stored, indicating the length of the payload at the current term position.- </p>-<p>- For example, the TermPositions for a- term which occurs as the fourth term in one document, and as the- fifth and ninth term in a subsequent document, would be the following- sequence of VInts (payloads disabled):- </p>-<p>4,- 5, 4- </p>-<p>PayloadData- is metadata associated with the current term position. If PayloadLength- is stored at the current position, then it indicates the length of this- Payload. If PayloadLength is not stored, then this Payload has the same- length as the Payload at the previous position.- </p>-<a name="N10832"></a><a name="Normalization Factors"></a>-<h3 class="boxed">Normalization Factors</h3>-<p>There's a single .nrm file containing all norms:- </p>-<p>AllNorms- (.nrm) --> NormsHeader,<Norms>- <sup>NumFieldsWithNorms</sup>--</p>-<p>Norms- --> <Byte>- <sup>SegSize</sup>--</p>-<p>NormsHeader- --> 'N','R','M',Version- </p>-<p>Version- --> Byte- </p>-<p>NormsHeader- has 4 bytes, last of which is the format version for this file, currently -1.- </p>-<p>Each- byte encodes a floating point value. Bits 0-2 contain the 3-bit- mantissa, and bits 3-8 contain the 5-bit exponent.- </p>-<p>These- are converted to an IEEE single float value as follows:- </p>-<ol>--<li>--<p>If- the byte is zero, use a zero float.- </p>--</li>--<li>--<p>Otherwise,- set the sign bit of the float to zero;- </p>--</li>--<li>--<p>add- 48 to the exponent and use this as the float's exponent;- </p>--</li>--<li>--<p>map- the mantissa to the high-order 3 bits of the float's mantissa; and-- </p>--</li>--<li>--<p>set- the low-order 21 bits of the float's mantissa to zero.- </p>--</li>--</ol>-<p>A separate norm file is created when the norm values of an existing segment are modified.- When field <em>N</em> is modified, a separate norm file <em>.sN</em>- is created, to maintain the norm values for that field.- </p>-<p>Separate norm files are created (when adequate) for both compound and non compound segments.- </p>-<a name="N10883"></a><a name="Term Vectors"></a>-<h3 class="boxed">Term Vectors</h3>-<p>- Term Vector support is an optional on a field by- field basis. It consists of 3 files.- </p>-<ol>--<li>-<a name="tvx"></a>--<p>The Document Index or .tvx file.</p>--<p>For each document, this stores the offset- into the document data (.tvd) and field- data (.tvf) files.- </p>--<p>DocumentIndex (.tvx) --> TVXVersion<DocumentPosition,FieldPosition>- <sup>NumDocs</sup>--</p>--<p>TVXVersion --> Int (TermVectorsReader.CURRENT)</p>--<p>DocumentPosition --> UInt64 (offset in- the .tvd file)</p>--<p>FieldPosition --> UInt64 (offset in the- .tvf file)</p>--</li>--<li>-<a name="tvd"></a>--<p>The Document or .tvd file.</p>--<p>This contains, for each document, the number of fields, a list of the fields with- term vector info and finally a list of pointers to the field information in the .tvf- (Term Vector Fields) file.</p>--<p>- Document (.tvd) --> TVDVersion<NumFields, FieldNums, FieldPositions>- <sup>NumDocs</sup>--</p>--<p>TVDVersion --> Int (TermVectorsReader.FORMAT_CURRENT)</p>--<p>NumFields --> VInt</p>--<p>FieldNums --> <FieldNumDelta>- <sup>NumFields</sup>--</p>--<p>FieldNumDelta --> VInt</p>--<p>FieldPositions --> <FieldPositionDelta>- <sup>NumFields-1</sup>--</p>--<p>FieldPositionDelta --> VLong</p>--<p>The .tvd file is used to map out the fields that have term vectors stored and- where the field information is in the .tvf file.</p>--</li>--<li>-<a name="tvf"></a>--<p>The Field or .tvf file.</p>--<p>This file contains, for each field that has a term vector stored, a list of- the terms, their frequencies and, optionally, position and offest information.</p>--<p>Field (.tvf) --> TVFVersion<NumTerms, Position/Offset, TermFreqs>- <sup>NumFields</sup>--</p>--<p>TVFVersion --> Int (TermVectorsReader.FORMAT_CURRENT)</p>--<p>NumTerms --> VInt</p>--<p>Position/Offset --> Byte</p>--<p>TermFreqs --> <TermText, TermFreq, Positions?, Offsets?>- <sup>NumTerms</sup>--</p>--<p>TermText --> <PrefixLength, Suffix></p>--<p>PrefixLength --> VInt</p>--<p>Suffix --> String</p>--<p>TermFreq --> VInt</p>--<p>Positions --> <VInt><sup>TermFreq</sup>-</p>--<p>Offsets --> <VInt, VInt><sup>TermFreq</sup>-</p>--<br>--<p>Notes:</p>--<ul>--<li>Position/Offset byte stores whether this term vector has position or offset information stored.</li>--<li>Term- text prefixes are shared. The PrefixLength is the number of initial- characters from the previous term which must be pre-pended to a- term's suffix in order to form the term's text. Thus, if the- previous term's text was "bone" and the term is "boy",- the PrefixLength is two and the suffix is "y".- </li>--<li>Positions are stored as delta encoded VInts. This means we only store the difference of the current position from the last position</li>--<li>Offsets are stored as delta encoded VInts. The first VInt is the startOffset, the second is the endOffset.</li>--</ul>----</li>--</ol>-<a name="N1091F"></a><a name="Deleted Documents"></a>-<h3 class="boxed">Deleted Documents</h3>-<p>The .del file is- optional, and only exists when a segment contains deletions.- </p>-<p>Although per-segment, this file is maintained exterior to compound segment files.- </p>-<p>- Deletions- (.del) --> [Format],ByteCount,BitCount, Bits | DGaps (depending on Format)- </p>-<p>Format,ByteSize,BitCount -->- Uint32- </p>-<p>Bits -->- <Byte>- <sup>ByteCount</sup>--</p>-<p>DGaps -->- <DGap,NonzeroByte>- <sup>NonzeroBytesCount</sup>--</p>-<p>DGap -->- VInt- </p>-<p>NonzeroByte -->- Byte- </p>-<p>Format- is Optional. -1 indicates DGaps. Non-negative value indicates Bits, and that Format is excluded.- </p>-<p>ByteCount- indicates the number of bytes in Bits. It is typically- (SegSize/8)+1.- </p>-<p>- BitCount- indicates the number of bits that are currently set in Bits.- </p>-<p>Bits- contains one bit for each document indexed. When the bit- corresponding to a document number is set, that document is marked as- deleted. Bit ordering is from least to most significant. Thus, if- Bits contains two bytes, 0x00 and 0x02, then document 9 is marked as- deleted.- </p>-<p>DGaps- represents sparse bit-vectors more efficiently than Bits.- It is made of DGaps on indexes of nonzero bytes in Bits,- and the nonzero bytes themselves. The number of nonzero bytes- in Bits (NonzeroBytesCount) is not stored.- </p>-<p>For example,- if there are 8000 bits and only bits 10,12,32 are set,- DGaps would be used:- </p>-<p>- (VInt) 1 , (byte) 20 , (VInt) 3 , (Byte) 1- </p>-</div>---<a name="N10959"></a><a name="Limitations"></a>-<h2 class="boxed">Limitations</h2>-<div class="section">-<p>- When referring to term numbers, Lucene's current- implementation uses a Java <span class="codefrag">int</span> to hold the- term index, which means the maximum number of unique- terms in any single index segment is ~2.1 billion times- the term index interval (default 128) = ~274 billion.- This is technically not a limitation of the index file- format, just of Lucene's current implementation.- </p>-<p>- Similarly, Lucene uses a Java <span class="codefrag">int</span> to refer- to document numbers, and the index file format uses an- <span class="codefrag">Int32</span> on-disk to store document numbers.- This is a limitation of both the index file format and- the current implementation. Eventually these should be- replaced with either <span class="codefrag">UInt64</span> values, or- better yet, <span class="codefrag">VInt</span> values which have no- limit.- </p>-</div>---</div>-<!--+- |end content- +-->-<div class="clearboth"> </div>-</div>-<div id="footer">-<!--+- |start bottomstrip- +-->-<div class="lastmodified">-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<div class="copyright">- Copyright ©- 2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>-</div>-<!--+- |end bottomstrip- +-->-</div>-<script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();--</script>-</body>-</html>diff --git a/lucene/site/build/site/gettingstarted.html b/lucene/site/build/site/gettingstarted.htmldeleted file mode 100644index ca6896c8167..00000000000--- a/lucene/site/build/site/gettingstarted.html+++ /dev/null@@ -1,310 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<html>-<head>-<META http-equiv="Content-Type" content="text/html; charset=UTF-8">-<meta content="Apache Forrest" name="Generator">-<meta name="Forrest-version" content="0.9">-<meta name="Forrest-skin-name" content="lucene">-<title>- Apache Lucene - Getting Started Guide- </title>-<link type="text/css" href="skin/basic.css" rel="stylesheet">-<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">-<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">-<link type="text/css" href="skin/profile.css" rel="stylesheet">-<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>-<link rel="shortcut icon" href="images/favicon.ico">-</head>-<body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<div id="top">-<!--+- |breadtrail- +-->-<div class="breadtrail">-<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>-</div>-<!--+- |header- +-->-<div class="header">-<!--+- |start group logo- +-->-<div class="grouplogo">-<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>-</div>-<!--+- |end group logo- +-->-<!--+- |start Project Logo- +-->-<div class="projectlogo">-<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>-</div>-<!--+- |end Project Logo- +-->-<!--+- |start Search- +-->-<div class="searchbox">-<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">-<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene"> - <input name="Search" value="Search" type="submit">-</form>-<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>-</div>-</div>-<!--+- |end search- +-->-<!--+- |start Tabs- +-->-<ul id="tabs">-<li class="current">-<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>-</li>-<li>-<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>-</li>-<li class="current">-<a class="selected" href="index.html">Lucene 4.0 Documentation</a>-</li>-</ul>-<!--+- |end Tabs- +-->-</div>-</div>-<div id="main">-<div id="publishedStrip">-<!--+- |start Subtabs- +-->-<div id="level2tabs"></div>-<!--+- |end Endtabs- +-->-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<!--+- |breadtrail- +-->-<div class="breadtrail">-- - </div>-<!--+- |start Menu, mainarea- +-->-<!--+- |start Menu- +-->-<div id="menu">-<div onclick="SwitchMenu('menu_selected_1.1', 'skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('skin/images/chapter_open.gif');">Documentation</div>-<div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;">-<div class="menuitem">-<a href="index.html">Overview</a>-</div>-<div class="menuitem">-<a href="changes/Changes.html">Changes</a>-</div>-<div onclick="SwitchMenu('menu_1.1.3', 'skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>-<div id="menu_1.1.3" class="menuitemgroup">-<div class="menuitem">-<a href="api/core/index.html">Core</a>-</div>-<div class="menuitem">-<a href="api/analyzers-common/index.html">Analysis: Common</a>-</div>-<div class="menuitem">-<a href="api/analyzers-kuromoji/index.html">Analysis: Kuromoji (Japanese)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-morfologik/index.html">Analysis: Morfologik (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-phonetic/index.html">Analysis: Phonetic</a>-</div>-<div class="menuitem">-<a href="api/analyzers-smartcn/index.html">Analysis: Smart Chinese</a>-</div>-<div class="menuitem">-<a href="api/analyzers-stempel/index.html">Analysis: Stempel (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-uima/index.html">Analysis: UIMA</a>-</div>-<div class="menuitem">-<a href="api/benchmark/index.html">Benchmark</a>-</div>-<div class="menuitem">-<a href="api/demo/index.html">Demo</a>-</div>-<div class="menuitem">-<a href="api/facet/index.html">Faceting</a>-</div>-<div class="menuitem">-<a href="api/grouping/index.html">Grouping</a>-</div>-<div class="menuitem">-<a href="api/highlighter/index.html">Highlighter</a>-</div>-<div class="menuitem">-<a href="api/join/index.html">Join</a>-</div>-<div class="menuitem">-<a href="api/memory/index.html">Memory</a>-</div>-<div class="menuitem">-<a href="api/misc/index.html">Miscellaneous</a>-</div>-<div class="menuitem">-<a href="api/queries/index.html">Queries</a>-</div>-<div class="menuitem">-<a href="api/queryparser/index.html">Query Parsers</a>-</div>-<div class="menuitem">-<a href="api/sandbox/index.html">Sandbox</a>-</div>-<div class="menuitem">-<a href="api/spatial/index.html">Spatial</a>-</div>-<div class="menuitem">-<a href="api/suggest/index.html">Suggest / Spellcheck</a>-</div>-<div class="menuitem">-<a href="api/test-framework/index.html">Test Framework</a>-</div>-</div>-<div class="menuitem">-<a href="systemrequirements.html">System Requirements</a>-</div>-<div class="menuitem">-<a href="contributions.html">Contributions</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>-</div>-<div class="menuitem">-<a href="fileformats.html">File Formats</a>-</div>-<div class="menupage">-<div class="menupagetitle">Getting Started</div>-</div>-<div class="menuitem">-<a href="queryparsersyntax.html">Query Syntax</a>-</div>-<div class="menuitem">-<a href="scoring.html">Scoring</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java">Wiki</a>-</div>-<div class="menuitem">-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a>-</div>-</div>-<div id="credit"></div>-<div id="roundbottom">-<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>-<!--+- |alternative credits- +-->-<div id="credit2"></div>-</div>-<!--+- |end Menu- +-->-<!--+- |start content- +-->-<div id="content">-<h1>- Apache Lucene - Getting Started Guide- </h1>-<div id="minitoc-area">-<ul class="minitoc">-<li>-<a href="#Getting Started">Getting Started</a>-</li>-</ul>-</div>---<a name="N10013"></a><a name="Getting Started"></a>-<h2 class="boxed">Getting Started</h2>-<div class="section">-<p>-This document is intended as a "getting started" guide. It has three audiences: first-time users-looking to install Apache Lucene in their application; developers looking to modify or base-the applications they develop on Lucene; and developers looking to become involved in and contribute-to the development of Lucene. This document is written in tutorial and walk-through format. The-goal is to help you "get started". It does not go into great depth on some of the conceptual or-inner details of Lucene.-</p>-<p>-Each section listed below builds on one another. More advanced users-may wish to skip sections.-</p>-<ul>--<li>-<a href="demo.html">About the command-line Lucene demo and its usage</a>. This section- is intended for anyone who wants to use the command-line Lucene demo.</li>---<li>-<a href="demo2.html">About the sources and implementation for the command-line Lucene- demo</a>. This section walks through the implementation details (sources) of the- command-line Lucene demo. This section is intended for developers.</li>--</ul>-</div>---</div>-<!--+- |end content- +-->-<div class="clearboth"> </div>-</div>-<div id="footer">-<!--+- |start bottomstrip- +-->-<div class="lastmodified">-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<div class="copyright">- Copyright ©- 2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>-</div>-<!--+- |end bottomstrip- +-->-</div>-<script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();--</script>-</body>-</html>diff --git a/lucene/site/build/site/images/built-with-forrest-button.png b/lucene/site/build/site/images/built-with-forrest-button.pngdeleted file mode 100644index 4a787abe4dc..00000000000Binary files a/lucene/site/build/site/images/built-with-forrest-button.png and /dev/null differdiff --git a/lucene/site/build/site/images/favicon.ico b/lucene/site/build/site/images/favicon.icodeleted file mode 100644index 552f2750157..00000000000Binary files a/lucene/site/build/site/images/favicon.ico and /dev/null differdiff --git a/lucene/site/build/site/images/instruction_arrow.png b/lucene/site/build/site/images/instruction_arrow.pngdeleted file mode 100644index 0fbc72452bf..00000000000Binary files a/lucene/site/build/site/images/instruction_arrow.png and /dev/null differdiff --git a/lucene/site/build/site/index.html b/lucene/site/build/site/index.htmldeleted file mode 100644index 6608ed5d206..00000000000--- a/lucene/site/build/site/index.html+++ /dev/null@@ -1,280 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<html>-<head>-<META http-equiv="Content-Type" content="text/html; charset=UTF-8">-<meta content="Apache Forrest" name="Generator">-<meta name="Forrest-version" content="0.9">-<meta name="Forrest-skin-name" content="lucene">-<title>Lucene Java Documentation</title>-<link type="text/css" href="skin/basic.css" rel="stylesheet">-<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">-<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">-<link type="text/css" href="skin/profile.css" rel="stylesheet">-<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>-<link rel="shortcut icon" href="images/favicon.ico">-</head>-<body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<div id="top">-<!--+- |breadtrail- +-->-<div class="breadtrail">-<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>-</div>-<!--+- |header- +-->-<div class="header">-<!--+- |start group logo- +-->-<div class="grouplogo">-<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>-</div>-<!--+- |end group logo- +-->-<!--+- |start Project Logo- +-->-<div class="projectlogo">-<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>-</div>-<!--+- |end Project Logo- +-->-<!--+- |start Search- +-->-<div class="searchbox">-<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">-<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene"> - <input name="Search" value="Search" type="submit">-</form>-<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>-</div>-</div>-<!--+- |end search- +-->-<!--+- |start Tabs- +-->-<ul id="tabs">-<li class="current">-<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>-</li>-<li>-<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>-</li>-<li class="current">-<a class="selected" href="index.html">Lucene 4.0 Documentation</a>-</li>-</ul>-<!--+- |end Tabs- +-->-</div>-</div>-<div id="main">-<div id="publishedStrip">-<!--+- |start Subtabs- +-->-<div id="level2tabs"></div>-<!--+- |end Endtabs- +-->-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<!--+- |breadtrail- +-->-<div class="breadtrail">-- - </div>-<!--+- |start Menu, mainarea- +-->-<!--+- |start Menu- +-->-<div id="menu">-<div onclick="SwitchMenu('menu_selected_1.1', 'skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('skin/images/chapter_open.gif');">Documentation</div>-<div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;">-<div class="menupage">-<div class="menupagetitle">Overview</div>-</div>-<div class="menuitem">-<a href="changes/Changes.html">Changes</a>-</div>-<div onclick="SwitchMenu('menu_1.1.3', 'skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>-<div id="menu_1.1.3" class="menuitemgroup">-<div class="menuitem">-<a href="api/core/index.html">Core</a>-</div>-<div class="menuitem">-<a href="api/analyzers-common/index.html">Analysis: Common</a>-</div>-<div class="menuitem">-<a href="api/analyzers-kuromoji/index.html">Analysis: Kuromoji (Japanese)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-morfologik/index.html">Analysis: Morfologik (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-phonetic/index.html">Analysis: Phonetic</a>-</div>-<div class="menuitem">-<a href="api/analyzers-smartcn/index.html">Analysis: Smart Chinese</a>-</div>-<div class="menuitem">-<a href="api/analyzers-stempel/index.html">Analysis: Stempel (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-uima/index.html">Analysis: UIMA</a>-</div>-<div class="menuitem">-<a href="api/benchmark/index.html">Benchmark</a>-</div>-<div class="menuitem">-<a href="api/demo/index.html">Demo</a>-</div>-<div class="menuitem">-<a href="api/facet/index.html">Faceting</a>-</div>-<div class="menuitem">-<a href="api/grouping/index.html">Grouping</a>-</div>-<div class="menuitem">-<a href="api/highlighter/index.html">Highlighter</a>-</div>-<div class="menuitem">-<a href="api/join/index.html">Join</a>-</div>-<div class="menuitem">-<a href="api/memory/index.html">Memory</a>-</div>-<div class="menuitem">-<a href="api/misc/index.html">Miscellaneous</a>-</div>-<div class="menuitem">-<a href="api/queries/index.html">Queries</a>-</div>-<div class="menuitem">-<a href="api/queryparser/index.html">Query Parsers</a>-</div>-<div class="menuitem">-<a href="api/sandbox/index.html">Sandbox</a>-</div>-<div class="menuitem">-<a href="api/spatial/index.html">Spatial</a>-</div>-<div class="menuitem">-<a href="api/suggest/index.html">Suggest / Spellcheck</a>-</div>-<div class="menuitem">-<a href="api/test-framework/index.html">Test Framework</a>-</div>-</div>-<div class="menuitem">-<a href="systemrequirements.html">System Requirements</a>-</div>-<div class="menuitem">-<a href="contributions.html">Contributions</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>-</div>-<div class="menuitem">-<a href="fileformats.html">File Formats</a>-</div>-<div class="menuitem">-<a href="gettingstarted.html">Getting Started</a>-</div>-<div class="menuitem">-<a href="queryparsersyntax.html">Query Syntax</a>-</div>-<div class="menuitem">-<a href="scoring.html">Scoring</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java">Wiki</a>-</div>-<div class="menuitem">-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a>-</div>-</div>-<div id="credit">-<hr>-<a href="http://forrest.apache.org/"><img border="0" title="Built with Apache Forrest" alt="Built with Apache Forrest - logo" src="images/built-with-forrest-button.png" style="width: 88px;height: 31px;"></a>-</div>-<div id="roundbottom">-<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>-<!--+- |alternative credits- +-->-<div id="credit2"></div>-</div>-<!--+- |end Menu- +-->-<!--+- |start content- +-->-<div id="content">-<h1>Lucene Java Documentation</h1>--<p>- This is the official documentation for Lucene Java<BR>- Please use the menu on the left to access the Javadocs and different documents.- </p>--<p>- Additional documentation is available in the <a href="http://wiki.apache.org/lucene-java">Wiki</a>.- </p>--</div>-<!--+- |end content- +-->-<div class="clearboth"> </div>-</div>-<div id="footer">-<!--+- |start bottomstrip- +-->-<div class="lastmodified">-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<div class="copyright">- Copyright ©- 2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>-</div>-<div id="logos"></div>-<!--+- |end bottomstrip- +-->-</div>-<script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();--</script>-</body>-</html>diff --git a/lucene/site/build/site/linkmap.html b/lucene/site/build/site/linkmap.htmldeleted file mode 100644index 607bef0f40b..00000000000--- a/lucene/site/build/site/linkmap.html+++ /dev/null@@ -1,501 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<html>-<head>-<META http-equiv="Content-Type" content="text/html; charset=UTF-8">-<meta content="Apache Forrest" name="Generator">-<meta name="Forrest-version" content="0.9">-<meta name="Forrest-skin-name" content="lucene">-<title>Site Linkmap Table of Contents</title>-<link type="text/css" href="skin/basic.css" rel="stylesheet">-<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">-<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">-<link type="text/css" href="skin/profile.css" rel="stylesheet">-<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>-<link rel="shortcut icon" href="images/favicon.ico">-</head>-<body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<div id="top">-<!--+- |breadtrail- +-->-<div class="breadtrail">-<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>-</div>-<!--+- |header- +-->-<div class="header">-<!--+- |start group logo- +-->-<div class="grouplogo">-<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>-</div>-<!--+- |end group logo- +-->-<!--+- |start Project Logo- +-->-<div class="projectlogo">-<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>-</div>-<!--+- |end Project Logo- +-->-<!--+- |start Search- +-->-<div class="searchbox">-<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">-<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene"> - <input name="Search" value="Search" type="submit">-</form>-<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>-</div>-</div>-<!--+- |end search- +-->-<!--+- |start Tabs- +-->-<ul id="tabs">-<li class="current">-<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>-</li>-<li>-<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>-</li>-<li class="current">-<a class="selected" href="index.html">Lucene 4.0 Documentation</a>-</li>-</ul>-<!--+- |end Tabs- +-->-</div>-</div>-<div id="main">-<div id="publishedStrip">-<!--+- |start Subtabs- +-->-<div id="level2tabs"></div>-<!--+- |end Endtabs- +-->-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<!--+- |breadtrail- +-->-<div class="breadtrail">-- - </div>-<!--+- |start Menu, mainarea- +-->-<!--+- |start Menu- +-->-<div id="menu">-<div onclick="SwitchMenu('menu_1.1', 'skin/')" id="menu_1.1Title" class="menutitle">Documentation</div>-<div id="menu_1.1" class="menuitemgroup">-<div class="menuitem">-<a href="index.html">Overview</a>-</div>-<div class="menuitem">-<a href="changes/Changes.html">Changes</a>-</div>-<div onclick="SwitchMenu('menu_1.1.3', 'skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>-<div id="menu_1.1.3" class="menuitemgroup">-<div class="menuitem">-<a href="api/core/index.html">Core</a>-</div>-<div class="menuitem">-<a href="api/analyzers-common/index.html">Analysis: Common</a>-</div>-<div class="menuitem">-<a href="api/analyzers-kuromoji/index.html">Analysis: Kuromoji (Japanese)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-morfologik/index.html">Analysis: Morfologik (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-phonetic/index.html">Analysis: Phonetic</a>-</div>-<div class="menuitem">-<a href="api/analyzers-smartcn/index.html">Analysis: Smart Chinese</a>-</div>-<div class="menuitem">-<a href="api/analyzers-stempel/index.html">Analysis: Stempel (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-uima/index.html">Analysis: UIMA</a>-</div>-<div class="menuitem">-<a href="api/benchmark/index.html">Benchmark</a>-</div>-<div class="menuitem">-<a href="api/demo/index.html">Demo</a>-</div>-<div class="menuitem">-<a href="api/facet/index.html">Faceting</a>-</div>-<div class="menuitem">-<a href="api/grouping/index.html">Grouping</a>-</div>-<div class="menuitem">-<a href="api/highlighter/index.html">Highlighter</a>-</div>-<div class="menuitem">-<a href="api/join/index.html">Join</a>-</div>-<div class="menuitem">-<a href="api/memory/index.html">Memory</a>-</div>-<div class="menuitem">-<a href="api/misc/index.html">Miscellaneous</a>-</div>-<div class="menuitem">-<a href="api/queries/index.html">Queries</a>-</div>-<div class="menuitem">-<a href="api/queryparser/index.html">Query Parsers</a>-</div>-<div class="menuitem">-<a href="api/sandbox/index.html">Sandbox</a>-</div>-<div class="menuitem">-<a href="api/spatial/index.html">Spatial</a>-</div>-<div class="menuitem">-<a href="api/suggest/index.html">Suggest / Spellcheck</a>-</div>-<div class="menuitem">-<a href="api/test-framework/index.html">Test Framework</a>-</div>-</div>-<div class="menuitem">-<a href="systemrequirements.html">System Requirements</a>-</div>-<div class="menuitem">-<a href="contributions.html">Contributions</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>-</div>-<div class="menuitem">-<a href="fileformats.html">File Formats</a>-</div>-<div class="menuitem">-<a href="gettingstarted.html">Getting Started</a>-</div>-<div class="menuitem">-<a href="queryparsersyntax.html">Query Syntax</a>-</div>-<div class="menuitem">-<a href="scoring.html">Scoring</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java">Wiki</a>-</div>-<div class="menuitem">-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a>-</div>-</div>-<div id="credit"></div>-<div id="roundbottom">-<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>-<!--+- |alternative credits- +-->-<div id="credit2"></div>-</div>-<!--+- |end Menu- +-->-<!--+- |start content- +-->-<div id="content">-<h1>Site Linkmap Table of Contents</h1>-<p>- This is a map of the complete site and its structure.- </p>-<ul>-<li>-<a>Lucene</a> ___________________ <em>site</em>-</li>-<ul>-----<ul>-<li>-<a>Documentation</a> ___________________ <em>docs</em>-</li>-<ul>--<ul>-<li>-<a href="index.html">Overview</a> ___________________ <em>overview</em>-</li>-</ul>--<ul>-<li>-<a href="changes/Changes.html">Changes</a> ___________________ <em>changes</em>-</li>-</ul>--<ul>-<li>-<a>Javadocs</a> ___________________ <em>javadoc</em>-</li>-<ul>--<ul>-<li>-<a href="api/core/index.html">Core</a> ___________________ <em>javadoc-core</em>-</li>-</ul>--<ul>-<li>-<a href="api/analyzers-common/index.html">Analysis: Common</a> ___________________ <em>javadoc-analyzers-common</em>-</li>-</ul>--<ul>-<li>-<a href="api/analyzers-kuromoji/index.html">Analysis: Kuromoji (Japanese)</a> ___________________ <em>javadoc-analyzers-kuromoji</em>-</li>-</ul>--<ul>-<li>-<a href="api/analyzers-morfologik/index.html">Analysis: Morfologik (Polish)</a> ___________________ <em>javadoc-analyzers-morfologik</em>-</li>-</ul>--<ul>-<li>-<a href="api/analyzers-phonetic/index.html">Analysis: Phonetic</a> ___________________ <em>javadoc-analyzers-phonetic</em>-</li>-</ul>--<ul>-<li>-<a href="api/analyzers-smartcn/index.html">Analysis: Smart Chinese</a> ___________________ <em>javadoc-analyzers-smartcn</em>-</li>-</ul>--<ul>-<li>-<a href="api/analyzers-stempel/index.html">Analysis: Stempel (Polish)</a> ___________________ <em>javadoc-analyzers-stempel</em>-</li>-</ul>--<ul>-<li>-<a href="api/analyzers-uima/index.html">Analysis: UIMA</a> ___________________ <em>javadoc-analyzers-uima</em>-</li>-</ul>--<ul>-<li>-<a href="api/benchmark/index.html">Benchmark</a> ___________________ <em>javadoc-benchmark</em>-</li>-</ul>--<ul>-<li>-<a href="api/demo/index.html">Demo</a> ___________________ <em>javadoc-demo</em>-</li>-</ul>--<ul>-<li>-<a href="api/facet/index.html">Faceting</a> ___________________ <em>javadoc-facet</em>-</li>-</ul>--<ul>-<li>-<a href="api/grouping/index.html">Grouping</a> ___________________ <em>javadoc-grouping</em>-</li>-</ul>--<ul>-<li>-<a href="api/highlighter/index.html">Highlighter</a> ___________________ <em>javadoc-highlighter</em>-</li>-</ul>--<ul>-<li>-<a href="api/join/index.html">Join</a> ___________________ <em>javadoc-join</em>-</li>-</ul>--<ul>-<li>-<a href="api/memory/index.html">Memory</a> ___________________ <em>javadoc-memory</em>-</li>-</ul>--<ul>-<li>-<a href="api/misc/index.html">Miscellaneous</a> ___________________ <em>javadoc-misc</em>-</li>-</ul>--<ul>-<li>-<a href="api/queries/index.html">Queries</a> ___________________ <em>javadoc-queries</em>-</li>-</ul>--<ul>-<li>-<a href="api/queryparser/index.html">Query Parsers</a> ___________________ <em>javadoc-queryparser</em>-</li>-</ul>--<ul>-<li>-<a href="api/sandbox/index.html">Sandbox</a> ___________________ <em>javadoc-sandbox</em>-</li>-</ul>--<ul>-<li>-<a href="api/spatial/index.html">Spatial</a> ___________________ <em>javadoc-spatial</em>-</li>-</ul>--<ul>-<li>-<a href="api/suggest/index.html">Suggest / Spellcheck</a> ___________________ <em>javadoc-suggest</em>-</li>-</ul>--<ul>-<li>-<a href="api/test-framework/index.html">Test Framework</a> ___________________ <em>javadoc-test-framework</em>-</li>-</ul>--</ul>-</ul>--<ul>-<li>-<a href="systemrequirements.html">System Requirements</a> ___________________ <em>systemrequirements</em>-</li>-</ul>--<ul>-<li>-<a href="contributions.html">Contributions</a> ___________________ <em>contributions</em>-</li>-</ul>--<ul>-<li>-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a> ___________________ <em>faq</em>-</li>-</ul>--<ul>-<li>-<a href="fileformats.html">File Formats</a> ___________________ <em>file-formats</em>-</li>-</ul>--<ul>-<li>-<a href="gettingstarted.html">Getting Started</a> ___________________ <em>tutorial</em>-</li>-</ul>--<ul>-<li>-<a href="queryparsersyntax.html">Query Syntax</a> ___________________ <em>query-syntax</em>-</li>-</ul>--<ul>-<li>-<a href="scoring.html">Scoring</a> ___________________ <em>scoring</em>-</li>-</ul>--<ul>-<li>-<a href="http://wiki.apache.org/lucene-java">Wiki</a> ___________________ <em>wiki</em>-</li>-</ul>--<ul>-<li>-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a> ___________________ <em>privacy</em>-</li>-</ul>--</ul>-</ul>-------</ul>-</ul>-</div>-<!--+- |end content- +-->-<div class="clearboth"> </div>-</div>-<div id="footer">-<!--+- |start bottomstrip- +-->-<div class="lastmodified">-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<div class="copyright">- Copyright ©- 2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>-</div>-<!--+- |end bottomstrip- +-->-</div>-<script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();--</script>-</body>-</html>diff --git a/lucene/site/build/site/lucene-contrib/index.html b/lucene/site/build/site/lucene-contrib/index.htmldeleted file mode 100644index f09b622345f..00000000000--- a/lucene/site/build/site/lucene-contrib/index.html+++ /dev/null@@ -1,420 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<html>-<head>-<META http-equiv="Content-Type" content="text/html; charset=UTF-8">-<meta content="Apache Forrest" name="Generator">-<meta name="Forrest-version" content="0.9">-<meta name="Forrest-skin-name" content="lucene">-<title>- Apache Lucene - Lucene Contrib- </title>-<link type="text/css" href="../skin/basic.css" rel="stylesheet">-<link media="screen" type="text/css" href="../skin/screen.css" rel="stylesheet">-<link media="print" type="text/css" href="../skin/print.css" rel="stylesheet">-<link type="text/css" href="../skin/profile.css" rel="stylesheet">-<script src="../skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="../skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="../skin/fontsize.js" language="javascript" type="text/javascript"></script>-<link rel="shortcut icon" href="../images/favicon.ico">-</head>-<body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<div id="top">-<!--+- |breadtrail- +-->-<div class="breadtrail">-<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="../skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>-</div>-<!--+- |header- +-->-<div class="header">-<!--+- |start group logo- +-->-<div class="grouplogo">-<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>-</div>-<!--+- |end group logo- +-->-<!--+- |start Project Logo- +-->-<div class="projectlogo">-<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>-</div>-<!--+- |end Project Logo- +-->-<!--+- |start Search- +-->-<div class="searchbox">-<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">-<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene"> - <input name="Search" value="Search" type="submit">-</form>-<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>-</div>-</div>-<!--+- |end search- +-->-<!--+- |start Tabs- +-->-<ul id="tabs">-<li class="current">-<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>-</li>-<li>-<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>-</li>-<li class="current">-<a class="selected" href="../index.html">Lucene 4.0 Documentation</a>-</li>-</ul>-<!--+- |end Tabs- +-->-</div>-</div>-<div id="main">-<div id="publishedStrip">-<!--+- |start Subtabs- +-->-<div id="level2tabs"></div>-<!--+- |end Endtabs- +-->-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<!--+- |breadtrail- +-->-<div class="breadtrail">-- - </div>-<!--+- |start Menu, mainarea- +-->-<!--+- |start Menu- +-->-<div id="menu">-<div onclick="SwitchMenu('menu_selected_1.1', '../skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('../skin/images/chapter_open.gif');">Documentation</div>-<div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;">-<div class="menuitem">-<a href="../index.html">Overview</a>-</div>-<div onclick="SwitchMenu('menu_1.1.2', '../skin/')" id="menu_1.1.2Title" class="menutitle">Changes</div>-<div id="menu_1.1.2" class="menuitemgroup">-<div class="menuitem">-<a href="../changes/Changes.html">Core</a>-</div>-<div class="menuitem">-<a href="../changes/Contrib-Changes.html">Contrib</a>-</div>-</div>-<div onclick="SwitchMenu('menu_1.1.3', '../skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>-<div id="menu_1.1.3" class="menuitemgroup">-<div class="menuitem">-<a href="../api/all/index.html">All</a>-</div>-<div class="menuitem">-<a href="../api/core/index.html">Core</a>-</div>-<div class="menuitem">-<a href="../api/test-framework/index.html">Test Framework</a>-</div>-<div onclick="SwitchMenu('menu_1.1.3.4', '../skin/')" id="menu_1.1.3.4Title" class="menutitle">Contrib</div>-<div id="menu_1.1.3.4" class="menuitemgroup">-<div class="menuitem">-<a href="../api/contrib-benchmark/index.html">Benchmark</a>-</div>-<div class="menuitem">-<a href="../api/contrib-demo/index.html">Demo</a>-</div>-<div class="menuitem">-<a href="../api/contrib-highlighter/index.html">Highlighter</a>-</div>-<div class="menuitem">-<a href="../api/contrib-instantiated/index.html">Instantiated</a>-</div>-<div class="menuitem">-<a href="../api/contrib-memory/index.html">Memory</a>-</div>-<div class="menuitem">-<a href="../api/contrib-misc/index.html">Miscellaneous</a>-</div>-<div class="menuitem">-<a href="../api/contrib-queries/index.html">Queries</a>-</div>-<div class="menuitem">-<a href="../api/contrib-queryparser/index.html">Query Parser Framework</a>-</div>-<div class="menuitem">-<a href="../api/contrib-remote/index.html">Remote</a>-</div>-<div class="menuitem">-<a href="../api/contrib-spatial/index.html">Spatial</a>-</div>-<div class="menuitem">-<a href="../api/contrib-spellchecker/index.html">Spellchecker</a>-</div>-<div class="menuitem">-<a href="../api/contrib-xml-query-parser/index.html">XML Query Parser</a>-</div>-</div>-</div>-<div class="menuitem">-<a href="../systemrequirements.html">System Requirements</a>-</div>-<div class="menuitem">-<a href="../contributions.html">Contributions</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>-</div>-<div class="menuitem">-<a href="../fileformats.html">File Formats</a>-</div>-<div class="menuitem">-<a href="../gettingstarted.html">Getting Started</a>-</div>-<div class="menupage">-<div class="menupagetitle">Lucene Contrib</div>-</div>-<div class="menuitem">-<a href="../queryparsersyntax.html">Query Syntax</a>-</div>-<div class="menuitem">-<a href="../scoring.html">Scoring</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java">Wiki</a>-</div>-<div class="menuitem">-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a>-</div>-</div>-<div id="credit">-<hr>-<a href="http://forrest.apache.org/"><img border="0" title="Built with Apache Forrest" alt="Built with Apache Forrest - logo" src="../images/built-with-forrest-button.png" style="width: 88px;height: 31px;"></a>-</div>-<div id="roundbottom">-<img style="display: none" class="corner" height="15" width="15" alt="" src="../skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>-<!--+- |alternative credits- +-->-<div id="credit2"></div>-</div>-<!--+- |end Menu- +-->-<!--+- |start content- +-->-<div id="content">-<h1>- Apache Lucene - Lucene Contrib- </h1>-<div id="minitoc-area">-<ul class="minitoc">-<li>-<a href="#Contrib">Lucene Contrib</a>-<ul class="minitoc">-<li>-<a href="#benchmark">benchmark</a>-</li>-<li>-<a href="#demo">demo</a>-</li>-<li>-<a href="#highlighter">highlighter</a>-</li>-<li>-<a href="#instantiated">instantiated</a>-</li>-<li>-<a href="#memory">memory</a>-</li>-<li>-<a href="#misc">misc</a>-</li>-<li>-<a href="#queryparser">queryparser</a>-</li>-<li>-<a href="#queries">queries</a>-</li>-<li>-<a href="#remote">remote</a>-</li>-<li>-<a href="#spatial">spatial</a>-</li>-<li>-<a href="#spellchecker">spellchecker</a>-</li>-<li>-<a href="#xml-query-parser">xml-query-parser</a>-</li>-</ul>-</li>-</ul>-</div>---<a name="N1000C"></a><a name="Contrib"></a>-<h2 class="boxed">Lucene Contrib</h2>-<div class="section">-<p>- The Lucene Java project also contains a workspace, Lucene Contrib- (formerly known as the Lucene Sandbox), that is open both to all Lucene- Java core committers and to developers whose commit rights are- restricted to the Contrib workspace; these developers are referred to- as "Contrib committers". The Lucene Contrib workspace hosts the- following types of packages:- </p>-<ul>--<li>Various third party contributions.</li>--<li>- Contributions with third party dependencies - the Lucene Java core- distribution has no external runtime dependencies.- </li>--<li>- New ideas that are intended for eventual inclusion into the Lucene- Java core.- </li>--</ul>-<p>- Users are free to experiment with the components developed in the- Contrib workspace, but Contrib packages will not necessarily be- maintained, particularly in their current state. The Lucene Java core- backwards compatibility commitments (see- <a href="http://wiki.apache.org/lucene-java/BackwardsCompatibility">http://wiki.apache.org/lucene-java/BackwardsCompatibility</a>)- do not necessarily extend to the packages in the Contrib workspace.- See the README.txt file for each Contrib package for details. If the- README.txt file does not address its backwards compatibility- commitments, users should assume it does not make any compatibility- commitments.- </p>-<p>- See <a href="../changes/Contrib-Changes.html">Contrib CHANGES</a> for changes included in the current release.- </p>-<p>- You can access the current trunk Contrib repository at- <a href="http://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/contrib/">http://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/contrib/</a>.- </p>-<a name="N10035"></a><a name="benchmark"></a>-<h3 class="boxed">benchmark</h3>-<p>The benchmark contribution contains tools for benchmarking Lucene using standard, freely available corpora.</p>-<p>See <a href="../api/contrib-benchmark/index.html">benchmark javadoc</a>-</p>-<a name="N10044"></a><a name="demo"></a>-<h3 class="boxed">demo</h3>-<p>The demo contrib contains the Lucene demo: IndexFiles and SearchFiles, described under- <a href="../gettingstarted.html">Getting Started</a>.</p>-<p>See <a href="../api/contrib-demo/index.html">demo javadoc</a>-</p>-<a name="N10057"></a><a name="highlighter"></a>-<h3 class="boxed">highlighter</h3>-<p>A set of classes for highlighting matching terms in search results.</p>-<p>See <a href="../api/contrib-highlighter/index.html">highlighter javadoc</a>-</p>-<a name="N10066"></a><a name="instantiated"></a>-<h3 class="boxed">instantiated</h3>-<p>RAM-based index that enables much faster searching than RAMDirectory in certain situations.</p>-<p>See <a href="../api/contrib-instantiated/index.html">instantiated javadoc</a>-</p>-<a name="N10075"></a><a name="memory"></a>-<h3 class="boxed">memory</h3>-<p>High-performance single-document main memory index.</p>-<p>See <a href="../api/contrib-memory/index.html">memory javadoc</a>-</p>-<a name="N10084"></a><a name="misc"></a>-<h3 class="boxed">misc</h3>-<p>A variety of miscellaneous files, including QueryParsers, and other alternate Lucene class implementations and tools.</p>-<p>See <a href="../api/contrib-misc/index.html">misc javadoc</a>-</p>-<a name="N10093"></a><a name="queryparser"></a>-<h3 class="boxed">queryparser</h3>-<p>A new Lucene query parser implementation, which matches the syntax of the core QueryParser but offers a more modular architecture to enable customization.</p>-<p>See <a href="../api/contrib-queryparser/index.html">queryparser javadoc</a>-</p>-<a name="N100A2"></a><a name="queries"></a>-<h3 class="boxed">queries</h3>-<p>Additional queries for Lucene.</p>-<p>See <a href="../api/contrib-queries/index.html">queries javadoc</a>-</p>-<a name="N100B1"></a><a name="remote"></a>-<h3 class="boxed">remote</h3>-<p>Classes to help use Lucene with RMI.</p>-<p>See <a href="../api/contrib-remote/index.html">remote javadoc</a>-</p>-<a name="N100C0"></a><a name="spatial"></a>-<h3 class="boxed">spatial</h3>-<p>Classes to help with efficient distance based sorting.</p>-<p>See <a href="../api/contrib-spatial/index.html">spatial javadoc</a>-</p>-<a name="N100CF"></a><a name="spellchecker"></a>-<h3 class="boxed">spellchecker</h3>-<p>Provides tools for spellchecking and suggestions with Lucene.</p>-<p>See <a href="../api/contrib-spellchecker/index.html">spellchecker javadoc</a>-</p>-<a name="N100DE"></a><a name="xml-query-parser"></a>-<h3 class="boxed">xml-query-parser</h3>-<p>A QueryParser that can read queries written in an XML format.</p>-<p>See <a href="../api/contrib-xml-query-parser/index.html">xml-query-parser javadoc</a>-</p>-</div>--</div>-<!--+- |end content- +-->-<div class="clearboth"> </div>-</div>-<div id="footer">-<!--+- |start bottomstrip- +-->-<div class="lastmodified">-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<div class="copyright">- Copyright ©- 2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>-</div>-<div id="logos"></div>-<!--+- |end bottomstrip- +-->-</div>-<script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();--</script>-</body>-</html>diff --git a/lucene/site/build/site/queryparsersyntax.html b/lucene/site/build/site/queryparsersyntax.htmldeleted file mode 100644index c239d7d4ae8..00000000000--- a/lucene/site/build/site/queryparsersyntax.html+++ /dev/null@@ -1,536 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<html>-<head>-<META http-equiv="Content-Type" content="text/html; charset=UTF-8">-<meta content="Apache Forrest" name="Generator">-<meta name="Forrest-version" content="0.9">-<meta name="Forrest-skin-name" content="lucene">-<title>- Apache Lucene - Query Parser Syntax- </title>-<link type="text/css" href="skin/basic.css" rel="stylesheet">-<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">-<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">-<link type="text/css" href="skin/profile.css" rel="stylesheet">-<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>-<link rel="shortcut icon" href="images/favicon.ico">-</head>-<body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<div id="top">-<!--+- |breadtrail- +-->-<div class="breadtrail">-<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>-</div>-<!--+- |header- +-->-<div class="header">-<!--+- |start group logo- +-->-<div class="grouplogo">-<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>-</div>-<!--+- |end group logo- +-->-<!--+- |start Project Logo- +-->-<div class="projectlogo">-<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>-</div>-<!--+- |end Project Logo- +-->-<!--+- |start Search- +-->-<div class="searchbox">-<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">-<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene"> - <input name="Search" value="Search" type="submit">-</form>-<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>-</div>-</div>-<!--+- |end search- +-->-<!--+- |start Tabs- +-->-<ul id="tabs">-<li class="current">-<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>-</li>-<li>-<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>-</li>-<li class="current">-<a class="selected" href="index.html">Lucene 4.0 Documentation</a>-</li>-</ul>-<!--+- |end Tabs- +-->-</div>-</div>-<div id="main">-<div id="publishedStrip">-<!--+- |start Subtabs- +-->-<div id="level2tabs"></div>-<!--+- |end Endtabs- +-->-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<!--+- |breadtrail- +-->-<div class="breadtrail">-- - </div>-<!--+- |start Menu, mainarea- +-->-<!--+- |start Menu- +-->-<div id="menu">-<div onclick="SwitchMenu('menu_selected_1.1', 'skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('skin/images/chapter_open.gif');">Documentation</div>-<div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;">-<div class="menuitem">-<a href="index.html">Overview</a>-</div>-<div class="menuitem">-<a href="changes/Changes.html">Changes</a>-</div>-<div onclick="SwitchMenu('menu_1.1.3', 'skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>-<div id="menu_1.1.3" class="menuitemgroup">-<div class="menuitem">-<a href="api/core/index.html">Core</a>-</div>-<div class="menuitem">-<a href="api/analyzers-common/index.html">Analysis: Common</a>-</div>-<div class="menuitem">-<a href="api/analyzers-kuromoji/index.html">Analysis: Kuromoji (Japanese)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-morfologik/index.html">Analysis: Morfologik (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-phonetic/index.html">Analysis: Phonetic</a>-</div>-<div class="menuitem">-<a href="api/analyzers-smartcn/index.html">Analysis: Smart Chinese</a>-</div>-<div class="menuitem">-<a href="api/analyzers-stempel/index.html">Analysis: Stempel (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-uima/index.html">Analysis: UIMA</a>-</div>-<div class="menuitem">-<a href="api/benchmark/index.html">Benchmark</a>-</div>-<div class="menuitem">-<a href="api/demo/index.html">Demo</a>-</div>-<div class="menuitem">-<a href="api/facet/index.html">Faceting</a>-</div>-<div class="menuitem">-<a href="api/grouping/index.html">Grouping</a>-</div>-<div class="menuitem">-<a href="api/highlighter/index.html">Highlighter</a>-</div>-<div class="menuitem">-<a href="api/join/index.html">Join</a>-</div>-<div class="menuitem">-<a href="api/memory/index.html">Memory</a>-</div>-<div class="menuitem">-<a href="api/misc/index.html">Miscellaneous</a>-</div>-<div class="menuitem">-<a href="api/queries/index.html">Queries</a>-</div>-<div class="menuitem">-<a href="api/queryparser/index.html">Query Parsers</a>-</div>-<div class="menuitem">-<a href="api/sandbox/index.html">Sandbox</a>-</div>-<div class="menuitem">-<a href="api/spatial/index.html">Spatial</a>-</div>-<div class="menuitem">-<a href="api/suggest/index.html">Suggest / Spellcheck</a>-</div>-<div class="menuitem">-<a href="api/test-framework/index.html">Test Framework</a>-</div>-</div>-<div class="menuitem">-<a href="systemrequirements.html">System Requirements</a>-</div>-<div class="menuitem">-<a href="contributions.html">Contributions</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>-</div>-<div class="menuitem">-<a href="fileformats.html">File Formats</a>-</div>-<div class="menuitem">-<a href="gettingstarted.html">Getting Started</a>-</div>-<div class="menupage">-<div class="menupagetitle">Query Syntax</div>-</div>-<div class="menuitem">-<a href="scoring.html">Scoring</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java">Wiki</a>-</div>-<div class="menuitem">-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a>-</div>-</div>-<div id="credit"></div>-<div id="roundbottom">-<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>-<!--+- |alternative credits- +-->-<div id="credit2"></div>-</div>-<!--+- |end Menu- +-->-<!--+- |start content- +-->-<div id="content">-<h1>- Apache Lucene - Query Parser Syntax- </h1>-<div id="minitoc-area">-<ul class="minitoc">-<li>-<a href="#Overview">Overview</a>-</li>-<li>-<a href="#Terms">Terms</a>-</li>-<li>-<a href="#Fields">Fields</a>-</li>-<li>-<a href="#Term Modifiers">Term Modifiers</a>-<ul class="minitoc">-<li>-<a href="#Wildcard Searches">Wildcard Searches</a>-</li>-<li>-<a href="#Fuzzy Searches">Fuzzy Searches</a>-</li>-<li>-<a href="#Proximity Searches">Proximity Searches</a>-</li>-<li>-<a href="#Range Searches">Range Searches</a>-</li>-<li>-<a href="#Boosting a Term">Boosting a Term</a>-</li>-</ul>-</li>-<li>-<a href="#Boolean operators">Boolean Operators</a>-<ul class="minitoc">-<li>-<a href="#OR"></a>-</li>-<li>-<a href="#AND">AND</a>-</li>-<li>-<a href="#+">+</a>-</li>-<li>-<a href="#NOT">NOT</a>-</li>-<li>-<a href="#-">-</a>-</li>-</ul>-</li>-<li>-<a href="#Grouping">Grouping</a>-</li>-<li>-<a href="#Field Grouping">Field Grouping</a>-</li>-<li>-<a href="#Escaping Special Characters">Escaping Special Characters</a>-</li>-</ul>-</div>--<a name="N10013"></a><a name="Overview"></a>-<h2 class="boxed">Overview</h2>-<div class="section">-<p>Although Lucene provides the ability to create your own- queries through its API, it also provides a rich query- language through the Query Parser, a lexer which- interprets a string into a Lucene Query using JavaCC.- </p>-<p>Generally, the query parser syntax may change from- release to release. This page describes the syntax as of- the current release. If you are using a different- version of Lucene, please consult the copy of- <span class="codefrag">docs/queryparsersyntax.html</span> that was distributed- with the version you are using.- </p>-<p>- Before choosing to use the provided Query Parser, please consider the following:- <ol>--<li>If you are programmatically generating a query string and then- parsing it with the query parser then you should seriously consider building- your queries directly with the query API. In other words, the query- parser is designed for human-entered text, not for program-generated- text.</li>---<li>Untokenized fields are best added directly to queries, and not- through the query parser. If a field's values are generated programmatically- by the application, then so should query clauses for this field.- An analyzer, which the query parser uses, is designed to convert human-entered- text to terms. Program-generated values, like dates, keywords, etc.,- should be consistently program-generated.</li>---<li>In a query form, fields which are general text should use the query- parser. All others, such as date ranges, keywords, etc. are better added- directly through the query API. A field with a limit set of values,- that can be specified with a pull-down menu should not be added to a- query string which is subsequently parsed, but rather added as a- TermQuery clause.</li>--</ol>--</p>-</div>---<a name="N10032"></a><a name="Terms"></a>-<h2 class="boxed">Terms</h2>-<div class="section">-<p>A query is broken up into terms and operators. There are two types of terms: Single Terms and Phrases.</p>-<p>A Single Term is a single word such as "test" or "hello".</p>-<p>A Phrase is a group of words surrounded by double quotes such as "hello dolly".</p>-<p>Multiple terms can be combined together with Boolean operators to form a more complex query (see below).</p>-<p>Note: The analyzer used to create the index will be used on the terms and phrases in the query string.- So it is important to choose an analyzer that will not interfere with the terms used in the query string.</p>-</div>---<a name="N10048"></a><a name="Fields"></a>-<h2 class="boxed">Fields</h2>-<div class="section">-<p>Lucene supports fielded data. When performing a search you can either specify a field, or use the default field. The field names and default field is implementation specific.</p>-<p>You can search any field by typing the field name followed by a colon ":" and then the term you are looking for. </p>-<p>As an example, let's assume a Lucene index contains two fields, title and text and text is the default field.- If you want to find the document entitled "The Right Way" which contains the text "don't go this way", you can enter: </p>-<pre class="code">title:"The Right Way" AND text:go</pre>-<p>or</p>-<pre class="code">title:"Do it right" AND right</pre>-<p>Since text is the default field, the field indicator is not required.</p>-<p>Note: The field is only valid for the term that it directly precedes, so the query</p>-<pre class="code">title:Do it right</pre>-<p>Will only find "Do" in the title field. It will find "it" and "right" in the default field (in this case the text field). </p>-</div>---<a name="N1006D"></a><a name="Term Modifiers"></a>-<h2 class="boxed">Term Modifiers</h2>-<div class="section">-<p>Lucene supports modifying query terms to provide a wide range of searching options.</p>-<a name="N10076"></a><a name="Wildcard Searches"></a>-<h3 class="boxed">Wildcard Searches</h3>-<p>Lucene supports single and multiple character wildcard searches within single terms- (not within phrase queries).</p>-<p>To perform a single character wildcard search use the "?" symbol.</p>-<p>To perform a multiple character wildcard search use the "*" symbol.</p>-<p>The single character wildcard search looks for terms that match that with the single character replaced. For example, to search for "text" or "test" you can use the search:</p>-<pre class="code">te?t</pre>-<p>Multiple character wildcard searches looks for 0 or more characters. For example, to search for test, tests or tester, you can use the search: </p>-<pre class="code">test*</pre>-<p>You can also use the wildcard searches in the middle of a term.</p>-<pre class="code">te*t</pre>-<p>Note: You cannot use a * or ? symbol as the first character of a search.</p>-<a name="N1009B"></a><a name="Fuzzy Searches"></a>-<h3 class="boxed">Fuzzy Searches</h3>-<p>Lucene supports fuzzy searches based on the Levenshtein Distance, or Edit Distance algorithm. To do a fuzzy search use the tilde, "~", symbol at the end of a Single word Term. For example to search for a term similar in spelling to "roam" use the fuzzy search: </p>-<pre class="code">roam~</pre>-<p>This search will find terms like foam and roams.</p>-<p>Starting with Lucene 1.9 an additional (optional) parameter can specify the required similarity. The value is between 0 and 1, with a value closer to 1 only terms with a higher similarity will be matched. For example:</p>-<pre class="code">roam~0.8</pre>-<p>The default that is used if the parameter is not given is 0.5.</p>-<a name="N100B4"></a><a name="Proximity Searches"></a>-<h3 class="boxed">Proximity Searches</h3>-<p>Lucene supports finding words are a within a specific distance away. To do a proximity search use the tilde, "~", symbol at the end of a Phrase. For example to search for a "apache" and "jakarta" within 10 words of each other in a document use the search: </p>-<pre class="code">"jakarta apache"~10</pre>-<a name="N100C1"></a><a name="Range Searches"></a>-<h3 class="boxed">Range Searches</h3>-<p>Range Queries allow one to match documents whose field(s) values- are between the lower and upper bound specified by the Range Query.- Range Queries can be inclusive or exclusive of the upper and lower bounds.- Sorting is done lexicographically.</p>-<pre class="code">mod_date:[20020101 TO 20030101]</pre>-<p>This will find documents whose mod_date fields have values between 20020101 and 20030101, inclusive.- Note that Range Queries are not reserved for date fields. You could also use range queries with non-date fields:</p>-<pre class="code">title:{Aida TO Carmen}</pre>-<p>This will find all documents whose titles are between Aida and Carmen, but not including Aida and Carmen.</p>-<p>Inclusive range queries are denoted by square brackets. Exclusive range queries are denoted by- curly brackets.</p>-<a name="N100DA"></a><a name="Boosting a Term"></a>-<h3 class="boxed">Boosting a Term</h3>-<p>Lucene provides the relevance level of matching documents based on the terms found. To boost a term use the caret, "^", symbol with a boost factor (a number) at the end of the term you are searching. The higher the boost factor, the more relevant the term will be.</p>-<p>Boosting allows you to control the relevance of a document by boosting its term. For example, if you are searching for</p>-<pre class="code">jakarta apache</pre>-<p>and you want the term "jakarta" to be more relevant boost it using the ^ symbol along with the boost factor next to the term.- You would type:</p>-<pre class="code">jakarta^4 apache</pre>-<p>This will make documents with the term jakarta appear more relevant. You can also boost Phrase Terms as in the example: </p>-<pre class="code">"jakarta apache"^4 "Apache Lucene"</pre>-<p>By default, the boost factor is 1. Although the boost factor must be positive, it can be less than 1 (e.g. 0.2)</p>-</div>----<a name="N100FA"></a><a name="Boolean operators"></a>-<h2 class="boxed">Boolean Operators</h2>-<div class="section">-<p>Boolean operators allow terms to be combined through logic operators.- Lucene supports AND, "+", OR, NOT and "-" as Boolean operators(Note: Boolean operators must be ALL CAPS).</p>-<a name="N10103"></a><a name="OR"></a>-<h3 class="boxed"></h3>-<p>The OR operator is the default conjunction operator. This means that if there is no Boolean operator between two terms, the OR operator is used.- The OR operator links two terms and finds a matching document if either of the terms exist in a document. This is equivalent to a union using sets.- The symbol || can be used in place of the word OR.</p>-<p>To search for documents that contain either "jakarta apache" or just "jakarta" use the query:</p>-<pre class="code">"jakarta apache" jakarta</pre>-<p>or</p>-<pre class="code">"jakarta apache" OR jakarta</pre>-<a name="N10116"></a><a name="AND"></a>-<h3 class="boxed">AND</h3>-<p>The AND operator matches documents where both terms exist anywhere in the text of a single document.- This is equivalent to an intersection using sets. The symbol && can be used in place of the word AND.</p>-<p>To search for documents that contain "jakarta apache" and "Apache Lucene" use the query: </p>-<pre class="code">"jakarta apache" AND "Apache Lucene"</pre>-<a name="N10126"></a><a name="+"></a>-<h3 class="boxed">+</h3>-<p>The "+" or required operator requires that the term after the "+" symbol exist somewhere in a the field of a single document.</p>-<p>To search for documents that must contain "jakarta" and may contain "lucene" use the query:</p>-<pre class="code">+jakarta lucene</pre>-<a name="N10136"></a><a name="NOT"></a>-<h3 class="boxed">NOT</h3>-<p>The NOT operator excludes documents that contain the term after NOT.- This is equivalent to a difference using sets. The symbol ! can be used in place of the word NOT.</p>-<p>To search for documents that contain "jakarta apache" but not "Apache Lucene" use the query: </p>-<pre class="code">"jakarta apache" NOT "Apache Lucene"</pre>-<p>Note: The NOT operator cannot be used with just one term. For example, the following search will return no results:</p>-<pre class="code">NOT "jakarta apache"</pre>-<a name="N1014C"></a><a name="-"></a>-<h3 class="boxed">-</h3>-<p>The "-" or prohibit operator excludes documents that contain the term after the "-" symbol.</p>-<p>To search for documents that contain "jakarta apache" but not "Apache Lucene" use the query: </p>-<pre class="code">"jakarta apache" -"Apache Lucene"</pre>-</div>---<a name="N1015D"></a><a name="Grouping"></a>-<h2 class="boxed">Grouping</h2>-<div class="section">-<p>Lucene supports using parentheses to group clauses to form sub queries. This can be very useful if you want to control the boolean logic for a query.</p>-<p>To search for either "jakarta" or "apache" and "website" use the query:</p>-<pre class="code">(jakarta OR apache) AND website</pre>-<p>This eliminates any confusion and makes sure you that website must exist and either term jakarta or apache may exist.</p>-</div>---<a name="N10170"></a><a name="Field Grouping"></a>-<h2 class="boxed">Field Grouping</h2>-<div class="section">-<p>Lucene supports using parentheses to group multiple clauses to a single field.</p>-<p>To search for a title that contains both the word "return" and the phrase "pink panther" use the query:</p>-<pre class="code">title:(+return +"pink panther")</pre>-</div>---<a name="N10180"></a><a name="Escaping Special Characters"></a>-<h2 class="boxed">Escaping Special Characters</h2>-<div class="section">-<p>Lucene supports escaping special characters that are part of the query syntax. The current list special characters are</p>-<p>+ - && || ! ( ) { } [ ] ^ " ~ * ? : \</p>-<p>To escape these character use the \ before the character. For example to search for (1+1):2 use the query:</p>-<pre class="code">\(1\+1\)\:2</pre>-</div>---</div>-<!--+- |end content- +-->-<div class="clearboth"> </div>-</div>-<div id="footer">-<!--+- |start bottomstrip- +-->-<div class="lastmodified">-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<div class="copyright">- Copyright ©- 2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>-</div>-<!--+- |end bottomstrip- +-->-</div>-<script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();--</script>-</body>-</html>diff --git a/lucene/site/build/site/skin/CommonMessages_de.xml b/lucene/site/build/site/skin/CommonMessages_de.xmldeleted file mode 100644index bc461196e64..00000000000--- a/lucene/site/build/site/skin/CommonMessages_de.xml+++ /dev/null@@ -1,23 +0,0 @@-<?xml version="1.0" encoding="ISO-8859-1"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<catalogue>- <message key="Font size:">Schriftgr�sse:</message>- <message key="Last Published:">Zuletzt ver�ffentlicht:</message>- <message key="Search">Suche:</message>- <message key="Search the site with">Suche auf der Seite mit</message>-</catalogue>diff --git a/lucene/site/build/site/skin/CommonMessages_en_US.xml b/lucene/site/build/site/skin/CommonMessages_en_US.xmldeleted file mode 100644index 88dfe143118..00000000000--- a/lucene/site/build/site/skin/CommonMessages_en_US.xml+++ /dev/null@@ -1,23 +0,0 @@-<?xml version="1.0" encoding="ISO-8859-1"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<catalogue>- <message key="Font size:">Font size:</message>- <message key="Last Published:">Last Published:</message>- <message key="Search">Search</message>- <message key="Search the site with">Search site with</message>-</catalogue>diff --git a/lucene/site/build/site/skin/CommonMessages_es.xml b/lucene/site/build/site/skin/CommonMessages_es.xmldeleted file mode 100644index 63be6712b30..00000000000--- a/lucene/site/build/site/skin/CommonMessages_es.xml+++ /dev/null@@ -1,23 +0,0 @@-<?xml version="1.0" encoding="ISO-8859-1"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<catalogue>- <message key="Font size:">Tama�o del texto:</message>- <message key="Last Published:">Fecha de publicaci�n:</message>- <message key="Search">Buscar</message>- <message key="Search the site with">Buscar en</message>-</catalogue>diff --git a/lucene/site/build/site/skin/CommonMessages_fr.xml b/lucene/site/build/site/skin/CommonMessages_fr.xmldeleted file mode 100644index 622569a4ffa..00000000000--- a/lucene/site/build/site/skin/CommonMessages_fr.xml+++ /dev/null@@ -1,23 +0,0 @@-<?xml version="1.0" encoding="ISO-8859-1"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<catalogue>- <message key="Font size:">Taille :</message>- <message key="Last Published:">Derni�re publication :</message>- <message key="Search">Rechercher</message>- <message key="Search the site with">Rechercher sur le site avec</message>-</catalogue>diff --git a/lucene/site/build/site/skin/basic.css b/lucene/site/build/site/skin/basic.cssdeleted file mode 100644index eb24c326c6c..00000000000--- a/lucene/site/build/site/skin/basic.css+++ /dev/null@@ -1,166 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-/**- * General- */--img { border: 0; }--#content table {- border: 0;- width: 100%;-}-/*Hack to get IE to render the table at 100%*/-* html #content table { margin-left: -3px; }--#content th,-#content td {- margin: 0;- padding: 0;- vertical-align: top;-}--.clearboth {- clear: both;-}--.note, .warning, .fixme {- border: solid black 1px;- margin: 1em 3em;-}--.note .label {- background: #369;- color: white;- font-weight: bold;- padding: 5px 10px;-}-.note .content {- background: #F0F0FF;- color: black;- line-height: 120%;- font-size: 90%;- padding: 5px 10px;-}-.warning .label {- background: #C00;- color: white;- font-weight: bold;- padding: 5px 10px;-}-.warning .content {- background: #FFF0F0;- color: black;- line-height: 120%;- font-size: 90%;- padding: 5px 10px;-}-.fixme .label {- background: #C6C600;- color: black;- font-weight: bold;- padding: 5px 10px;-}-.fixme .content {- padding: 5px 10px;-}--/**- * Typography- */--body {- font-family: verdana, "Trebuchet MS", arial, helvetica, sans-serif;- font-size: 100%;-}--#content {- font-family: Georgia, Palatino, Times, serif;- font-size: 95%;-}-#tabs {- font-size: 70%;-}-#menu {- font-size: 80%;-}-#footer {- font-size: 70%;-}--h1, h2, h3, h4, h5, h6 {- font-family: "Trebuchet MS", verdana, arial, helvetica, sans-serif;- font-weight: bold;- margin-top: 1em;- margin-bottom: .5em;-}--h1 {- margin-top: 0;- margin-bottom: 1em;- font-size: 1.4em;-}-#content h1 {- font-size: 160%;- margin-bottom: .5em;-}-#menu h1 {- margin: 0;- padding: 10px;- background: #336699;- color: white;-}-h2 { font-size: 120%; }-h3 { font-size: 100%; }-h4 { font-size: 90%; }-h5 { font-size: 80%; }-h6 { font-size: 75%; }--p {- line-height: 120%;- text-align: left;- margin-top: .5em;- margin-bottom: 1em;-}--#content li,-#content th,-#content td,-#content li ul,-#content li ol{- margin-top: .5em;- margin-bottom: .5em;-}---#content li li,-#minitoc-area li{- margin-top: 0em;- margin-bottom: 0em;-}--#content .attribution {- text-align: right;- font-style: italic;- font-size: 85%;- margin-top: 1em;-}--.codefrag {- font-family: "Courier New", Courier, monospace;- font-size: 110%;-}\ No newline at end of filediff --git a/lucene/site/build/site/skin/breadcrumbs-optimized.js b/lucene/site/build/site/skin/breadcrumbs-optimized.jsdeleted file mode 100644index 507612af872..00000000000--- a/lucene/site/build/site/skin/breadcrumbs-optimized.js+++ /dev/null@@ -1,90 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-var PREPREND_CRUMBS=new Array();-var link1="@skinconfig.trail.link1.name@";-var link2="@skinconfig.trail.link2.name@";-var link3="@skinconfig.trail.link3.name@";-if(!(link1=="")&&!link1.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link1, @skinconfig.trail.link1.href@ ) ); }-if(!(link2=="")&&!link2.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link2, @skinconfig.trail.link2.href@ ) ); }-if(!(link3=="")&&!link3.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link3, @skinconfig.trail.link3.href@ ) ); }-var DISPLAY_SEPARATOR=" > ";-var DISPLAY_PREPREND=" > ";-var DISPLAY_POSTPREND=":";-var CSS_CLASS_CRUMB="breadcrumb";-var CSS_CLASS_TRAIL="breadcrumbTrail";-var CSS_CLASS_SEPARATOR="crumbSeparator";-var FILE_EXTENSIONS=new Array( ".html", ".htm", ".jsp", ".php", ".php3", ".php4" );-var PATH_SEPARATOR="/";--function sc(s) {- var l=s.toLowerCase();- return l.substr(0,1).toUpperCase()+l.substr(1);-}-function getdirs() {- var t=document.location.pathname.split(PATH_SEPARATOR);- var lc=t[t.length-1];- for(var i=0;i < FILE_EXTENSIONS.length;i++)- {- if(lc.indexOf(FILE_EXTENSIONS[i]))- return t.slice(1,t.length-1); }- return t.slice(1,t.length);-}-function getcrumbs( d )-{- var pre = "/";- var post = "/";- var c = new Array();- if( d != null )- {- for(var i=0;i < d.length;i++) {- pre+=d[i]+postfix;- c.push(new Array(d[i],pre)); }- }- if(PREPREND_CRUMBS.length > 0 )- return PREPREND_CRUMBS.concat( c );- return c;-}-function gettrail( c )-{- var h=DISPLAY_PREPREND;- for(var i=0;i < c.length;i++)- {- h+='<a href="'+c[i][1]+'" >'+sc(c[i][0])+'</a>';- if(i!=(c.length-1))- h+=DISPLAY_SEPARATOR; }- return h+DISPLAY_POSTPREND;-}--function gettrailXHTML( c )-{- var h='<span class="'+CSS_CLASS_TRAIL+'">'+DISPLAY_PREPREND;- for(var i=0;i < c.length;i++)- {- h+='<a href="'+c[i][1]+'" class="'+CSS_CLASS_CRUMB+'">'+sc(c[i][0])+'</a>';- if(i!=(c.length-1))- h+='<span class="'+CSS_CLASS_SEPARATOR+'">'+DISPLAY_SEPARATOR+'</span>'; }- return h+DISPLAY_POSTPREND+'</span>';-}--if(document.location.href.toLowerCase().indexOf("http://")==-1)- document.write(gettrail(getcrumbs()));-else- document.write(gettrail(getcrumbs(getdirs())));-diff --git a/lucene/site/build/site/skin/breadcrumbs.js b/lucene/site/build/site/skin/breadcrumbs.jsdeleted file mode 100644index aea80ec045b..00000000000--- a/lucene/site/build/site/skin/breadcrumbs.js+++ /dev/null@@ -1,237 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-/**- * This script, when included in a html file, builds a neat breadcrumb trail- * based on its url. That is, if it doesn't contains bugs (I'm relatively- * sure it does).- *- * Typical usage:- * <script type="text/javascript" language="JavaScript" src="breadcrumbs.js"></script>- */--/**- * IE 5 on Mac doesn't know Array.push.- *- * Implement it - courtesy to fritz.- */-var abc = new Array();-if (!abc.push) {- Array.prototype.push = function(what){this[this.length]=what}-}--/* ========================================================================- CONSTANTS- ======================================================================== */--/**- * Two-dimensional array containing extra crumbs to place at the front of- * the trail. Specify first the name of the crumb, then the URI that belongs- * to it. You'll need to modify this for every domain or subdomain where- * you use this script (you can leave it as an empty array if you wish)- */-var PREPREND_CRUMBS = new Array();--var link1 = "@skinconfig.trail.link1.name@";-var link2 = "@skinconfig.trail.link2.name@";-var link3 = "@skinconfig.trail.link3.name@";--var href1 = "@skinconfig.trail.link1.href@";-var href2 = "@skinconfig.trail.link2.href@";-var href3 = "@skinconfig.trail.link3.href@";-- if(!(link1=="")&&!link1.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link1, href1 ) );- }- if(!(link2=="")&&!link2.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link2, href2 ) );- }- if(!(link3=="")&&!link3.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link3, href3 ) );- }--/**- * String to include between crumbs:- */-var DISPLAY_SEPARATOR = " > ";-/**- * String to include at the beginning of the trail- */-var DISPLAY_PREPREND = " > ";-/**- * String to include at the end of the trail- */-var DISPLAY_POSTPREND = "";--/**- * CSS Class to use for a single crumb:- */-var CSS_CLASS_CRUMB = "breadcrumb";--/**- * CSS Class to use for the complete trail:- */-var CSS_CLASS_TRAIL = "breadcrumbTrail";--/**- * CSS Class to use for crumb separator:- */-var CSS_CLASS_SEPARATOR = "crumbSeparator";--/**- * Array of strings containing common file extensions. We use this to- * determine what part of the url to ignore (if it contains one of the- * string specified here, we ignore it).- */-var FILE_EXTENSIONS = new Array( ".html", ".htm", ".jsp", ".php", ".php3", ".php4" );--/**- * String that separates parts of the breadcrumb trail from each other.- * When this is no longer a slash, I'm sure I'll be old and grey.- */-var PATH_SEPARATOR = "/";--/* ========================================================================- UTILITY FUNCTIONS- ======================================================================== */-/**- * Capitalize first letter of the provided string and return the modified- * string.- */-function sentenceCase( string )-{ return string;- //var lower = string.toLowerCase();- //return lower.substr(0,1).toUpperCase() + lower.substr(1);-}--/**- * Returns an array containing the names of all the directories in the- * current document URL- */-function getDirectoriesInURL()-{- var trail = document.location.pathname.split( PATH_SEPARATOR );-- // check whether last section is a file or a directory- var lastcrumb = trail[trail.length-1];- for( var i = 0; i < FILE_EXTENSIONS.length; i++ )- {- if( lastcrumb.indexOf( FILE_EXTENSIONS[i] ) )- {- // it is, remove it and send results- return trail.slice( 1, trail.length-1 );- }- }-- // it's not; send the trail unmodified- return trail.slice( 1, trail.length );-}--/* ========================================================================- BREADCRUMB FUNCTIONALITY- ======================================================================== */-/**- * Return a two-dimensional array describing the breadcrumbs based on the- * array of directories passed in.- */-function getBreadcrumbs( dirs )-{- var prefix = "/";- var postfix = "/";-- // the array we will return- var crumbs = new Array();-- if( dirs != null )- {- for( var i = 0; i < dirs.length; i++ )- {- prefix += dirs[i] + postfix;- crumbs.push( new Array( dirs[i], prefix ) );- }- }-- // preprend the PREPREND_CRUMBS- if(PREPREND_CRUMBS.length > 0 )- {- return PREPREND_CRUMBS.concat( crumbs );- }-- return crumbs;-}--/**- * Return a string containing a simple text breadcrumb trail based on the- * two-dimensional array passed in.- */-function getCrumbTrail( crumbs )-{- var xhtml = DISPLAY_PREPREND;-- for( var i = 0; i < crumbs.length; i++ )- {- xhtml += '<a href="' + crumbs[i][1] + '" >';- xhtml += unescape( crumbs[i][0] ) + '</a>';- if( i != (crumbs.length-1) )- {- xhtml += DISPLAY_SEPARATOR;- }- }-- xhtml += DISPLAY_POSTPREND;-- return xhtml;-}--/**- * Return a string containing an XHTML breadcrumb trail based on the- * two-dimensional array passed in.- */-function getCrumbTrailXHTML( crumbs )-{- var xhtml = '<span class="' + CSS_CLASS_TRAIL + '">';- xhtml += DISPLAY_PREPREND;-- for( var i = 0; i < crumbs.length; i++ )- {- xhtml += '<a href="' + crumbs[i][1] + '" class="' + CSS_CLASS_CRUMB + '">';- xhtml += unescape( crumbs[i][0] ) + '</a>';- if( i != (crumbs.length-1) )- {- xhtml += '<span class="' + CSS_CLASS_SEPARATOR + '">' + DISPLAY_SEPARATOR + '</span>';- }- }-- xhtml += DISPLAY_POSTPREND;- xhtml += '</span>';-- return xhtml;-}--/* ========================================================================- PRINT BREADCRUMB TRAIL- ======================================================================== */--// check if we're local; if so, only print the PREPREND_CRUMBS-if( document.location.href.toLowerCase().indexOf( "http://" ) == -1 )-{- document.write( getCrumbTrail( getBreadcrumbs() ) );-}-else-{- document.write( getCrumbTrail( getBreadcrumbs( getDirectoriesInURL() ) ) );-}-diff --git a/lucene/site/build/site/skin/fontsize.js b/lucene/site/build/site/skin/fontsize.jsdeleted file mode 100644index 11722bfc52f..00000000000--- a/lucene/site/build/site/skin/fontsize.js+++ /dev/null@@ -1,166 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-function init()-{ //embedded in the doc- //ndeSetTextSize();-}--function checkBrowser(){- if (!document.getElementsByTagName){- return true;- }- else{- return false;- }-}---function ndeSetTextSize(chgsize,rs)-{- var startSize;- var newSize;-- if (!checkBrowser)- {- return;- }-- startSize = parseInt(ndeGetDocTextSize());-- if (!startSize)- {- startSize = 16;- }-- switch (chgsize)- {- case 'incr':- newSize = startSize + 2;- break;-- case 'decr':- newSize = startSize - 2;- break;-- case 'reset':- if (rs) {newSize = rs;} else {newSize = 16;}- break;-- default:- try{- newSize = parseInt(ndeReadCookie("nde-textsize"));- }- catch(e){- alert(e);- }-- if (!newSize || newSize == 'NaN')- {- newSize = startSize;- }- break;-- }-- if (newSize < 10)- {- newSize = 10;- }-- newSize += 'px';-- document.getElementsByTagName('html')[0].style.fontSize = newSize;- document.getElementsByTagName('body')[0].style.fontSize = newSize;-- ndeCreateCookie("nde-textsize", newSize, 365);-}--function ndeGetDocTextSize()-{- if (!checkBrowser)- {- return 0;- }-- var size = 0;- var body = document.getElementsByTagName('body')[0];-- if (body.style && body.style.fontSize)- {- size = body.style.fontSize;- }- else if (typeof(getComputedStyle) != 'undefined')- {- size = getComputedStyle(body,'').getPropertyValue('font-size');- }- else if (body.currentStyle)- {- size = body.currentStyle.fontSize;- }-- //fix IE bug- if( isNaN(size)){- if(size.substring(size.length-1)=="%"){- return- }-- }-- return size;--}----function ndeCreateCookie(name,value,days)-{- var cookie = name + "=" + value + ";";-- if (days)- {- var date = new Date();- date.setTime(date.getTime()+(days*24*60*60*1000));- cookie += " expires=" + date.toGMTString() + ";";- }- cookie += " path=/";-- document.cookie = cookie;--}--function ndeReadCookie(name)-{- var nameEQ = name + "=";- var ca = document.cookie.split(';');--- for(var i = 0; i < ca.length; i++)- {- var c = ca[i];- while (c.charAt(0) == ' ')- {- c = c.substring(1, c.length);- }-- ctest = c.substring(0,name.length);-- if(ctest == name){- return c.substring(nameEQ.length,c.length);- }- }- return null;-}diff --git a/lucene/site/build/site/skin/getBlank.js b/lucene/site/build/site/skin/getBlank.jsdeleted file mode 100644index d9978c0b3e6..00000000000--- a/lucene/site/build/site/skin/getBlank.js+++ /dev/null@@ -1,40 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-/**- * getBlank script - when included in a html file and called from a form text field, will set the value of this field to ""- * if the text value is still the standard value.- * getPrompt script - when included in a html file and called from a form text field, will set the value of this field to the prompt- * if the text value is empty.- *- * Typical usage:- * <script type="text/javascript" language="JavaScript" src="getBlank.js"></script>- * <input type="text" id="query" value="Search the site:" onFocus="getBlank (this, 'Search the site:');" onBlur="getBlank (this, 'Search the site:');"/>- */-<!---function getBlank (form, stdValue){-if (form.value == stdValue){- form.value = '';- }-return true;-}-function getPrompt (form, stdValue){-if (form.value == ''){- form.value = stdValue;- }-return true;-}-//-->diff --git a/lucene/site/build/site/skin/getMenu.js b/lucene/site/build/site/skin/getMenu.jsdeleted file mode 100644index b17aad61858..00000000000--- a/lucene/site/build/site/skin/getMenu.js+++ /dev/null@@ -1,45 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-/**- * This script, when included in a html file, can be used to make collapsible menus- *- * Typical usage:- * <script type="text/javascript" language="JavaScript" src="menu.js"></script>- */--if (document.getElementById){- document.write('<style type="text/css">.menuitemgroup{display: none;}</style>')-}---function SwitchMenu(obj, thePath)-{-var open = 'url("'+thePath + 'images/chapter_open.gif")';-var close = 'url("'+thePath + 'images/chapter.gif")';- if(document.getElementById) {- var el = document.getElementById(obj);- var title = document.getElementById(obj+'Title');-- if(el.style.display != "block"){- title.style.backgroundImage = open;- el.style.display = "block";- }else{- title.style.backgroundImage = close;- el.style.display = "none";- }- }// end - if(document.getElementById)-}//end - function SwitchMenu(obj)diff --git a/lucene/site/build/site/skin/images/README.txt b/lucene/site/build/site/skin/images/README.txtdeleted file mode 100644index e0932f4a46d..00000000000--- a/lucene/site/build/site/skin/images/README.txt+++ /dev/null@@ -1 +0,0 @@-The images in this directory are used if the current skin lacks them.diff --git a/lucene/site/build/site/skin/images/add.jpg b/lucene/site/build/site/skin/images/add.jpgdeleted file mode 100644index 06831eeb3dd..00000000000Binary files a/lucene/site/build/site/skin/images/add.jpg and /dev/null differdiff --git a/lucene/site/build/site/skin/images/apache-thanks.png b/lucene/site/build/site/skin/images/apache-thanks.pngdeleted file mode 100644index c0bea09cc8b..00000000000Binary files a/lucene/site/build/site/skin/images/apache-thanks.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/built-with-cocoon.gif b/lucene/site/build/site/skin/images/built-with-cocoon.gifdeleted file mode 100644index 0b38f7857b6..00000000000Binary files a/lucene/site/build/site/skin/images/built-with-cocoon.gif and /dev/null differdiff --git a/lucene/site/build/site/skin/images/built-with-forrest-button.png b/lucene/site/build/site/skin/images/built-with-forrest-button.pngdeleted file mode 100644index 4a787abe4dc..00000000000Binary files a/lucene/site/build/site/skin/images/built-with-forrest-button.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/chapter.gif b/lucene/site/build/site/skin/images/chapter.gifdeleted file mode 100644index d3d8245d0c7..00000000000Binary files a/lucene/site/build/site/skin/images/chapter.gif and /dev/null differdiff --git a/lucene/site/build/site/skin/images/corner-imports.svg.xslt b/lucene/site/build/site/skin/images/corner-imports.svg.xsltdeleted file mode 100644index 95b58d26f3c..00000000000--- a/lucene/site/build/site/skin/images/corner-imports.svg.xslt+++ /dev/null@@ -1,92 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:param name="orientation-tb"/>- <xsl:param name="orientation-lr"/>- <xsl:param name="size"/>- <xsl:param name="bg-color-name"/>- <xsl:param name="stroke-color-name"/>- <xsl:param name="fg-color-name"/>-<!-- if not all colors are present, don't even try to render the corners -->- <xsl:variable name="isize">- <xsl:choose>- <xsl:when test="$bg-color-name and $stroke-color-name and $fg-color-name">- <xsl:value-of select="$size"/>- </xsl:when>- <xsl:otherwise>0</xsl:otherwise>- </xsl:choose>- </xsl:variable>- <xsl:variable name="smallersize" select="number($isize)-1"/>- <xsl:variable name="biggersize" select="number($isize)+1"/>- <xsl:variable name="bg">- <xsl:if test="skinconfig/colors/color[@name=$bg-color-name]">fill:<xsl:value-of select="skinconfig/colors/color[@name=$bg-color-name]/@value"/>;</xsl:if>- </xsl:variable>- <xsl:variable name="fill">- <xsl:if test="skinconfig/colors/color[@name=$stroke-color-name]">fill:<xsl:value-of select="skinconfig/colors/color[@name=$stroke-color-name]/@value"/>;</xsl:if>- </xsl:variable>- <xsl:variable name="stroke">- <xsl:if test="skinconfig/colors/color[@name=$fg-color-name]">stroke:<xsl:value-of select="skinconfig/colors/color[@name=$fg-color-name]/@value"/>;</xsl:if>- </xsl:variable>- <xsl:template match="skinconfig">- <svg width="{$isize}" height="{$isize}">-<!-- background-->- <rect x="-1" y="-1" width="{$biggersize}" height="{$biggersize}" style="{$bg}stroke-width:0"/>-<!-- 0,0 0,-4 4,0 4,-4-->- <xsl:variable name="flip-tb-scale">- <xsl:choose>- <xsl:when test="$orientation-tb='t'">1</xsl:when>- <xsl:otherwise>-1</xsl:otherwise>- </xsl:choose>- </xsl:variable>- <xsl:variable name="flip-lr-scale">- <xsl:choose>- <xsl:when test="$orientation-lr='l'">1</xsl:when>- <xsl:otherwise>-1</xsl:otherwise>- </xsl:choose>- </xsl:variable>- <xsl:variable name="flip-tb-translate">- <xsl:choose>- <xsl:when test="$orientation-tb='t'">0</xsl:when>- <xsl:otherwise>-<xsl:value-of select="$isize" />- </xsl:otherwise>- </xsl:choose>- </xsl:variable>- <xsl:variable name="flip-lr-translate">- <xsl:choose>- <xsl:when test="$orientation-lr='l'">0</xsl:when>- <xsl:otherwise>-<xsl:value-of select="$isize" />- </xsl:otherwise>- </xsl:choose>- </xsl:variable>-<!-- flip transform -->- <g transform="scale({$flip-lr-scale},{$flip-tb-scale}) translate({$flip-lr-translate}, {$flip-tb-translate})">- <xsl:call-template name="figure" />- </g>- </svg>- </xsl:template>- <xsl:template name="figure">-<!-- Just change shape here -->- <g transform="translate(0.5 0.5)">- <ellipse cx="{$smallersize}" cy="{$smallersize}" rx="{$smallersize}" ry="{$smallersize}"- style="{$fill}{$stroke}stroke-width:1"/>- </g>-<!-- end -->- </xsl:template>- <xsl:template match="*"></xsl:template>- <xsl:template match="text()"></xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/build/site/skin/images/current.gif b/lucene/site/build/site/skin/images/current.gifdeleted file mode 100644index fd82c082012..00000000000Binary files a/lucene/site/build/site/skin/images/current.gif and /dev/null differdiff --git a/lucene/site/build/site/skin/images/dc.svg.xslt b/lucene/site/build/site/skin/images/dc.svg.xsltdeleted file mode 100644index f900f2f9549..00000000000--- a/lucene/site/build/site/skin/images/dc.svg.xslt+++ /dev/null@@ -1,28 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:import href="corner-imports.svg.xslt" />-<!-- Diagonal 45 degrees corner -->- <xsl:template name="figure">- <xsl:variable name="biggersize" select="number($size)+number($size)"/>- <g transform="translate(0 0.5)">- <polygon points="0,{$size} {$size},0 {$biggersize},0 {$biggersize},{$biggersize} 0,{$biggersize}"- style="{$fill}{$stroke}stroke-width:1"/>- </g>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/build/site/skin/images/external-link.gif b/lucene/site/build/site/skin/images/external-link.gifdeleted file mode 100644index ff2f7b2a0ed..00000000000Binary files a/lucene/site/build/site/skin/images/external-link.gif and /dev/null differdiff --git a/lucene/site/build/site/skin/images/fix.jpg b/lucene/site/build/site/skin/images/fix.jpgdeleted file mode 100644index 1d6820b43b7..00000000000Binary files a/lucene/site/build/site/skin/images/fix.jpg and /dev/null differdiff --git a/lucene/site/build/site/skin/images/forrest-credit-logo.png b/lucene/site/build/site/skin/images/forrest-credit-logo.pngdeleted file mode 100644index 8a63e42038d..00000000000Binary files a/lucene/site/build/site/skin/images/forrest-credit-logo.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/hack.jpg b/lucene/site/build/site/skin/images/hack.jpgdeleted file mode 100644index f38d50fe4e8..00000000000Binary files a/lucene/site/build/site/skin/images/hack.jpg and /dev/null differdiff --git a/lucene/site/build/site/skin/images/page.gif b/lucene/site/build/site/skin/images/page.gifdeleted file mode 100644index a144d3295be..00000000000Binary files a/lucene/site/build/site/skin/images/page.gif and /dev/null differdiff --git a/lucene/site/build/site/skin/images/pdfdoc.gif b/lucene/site/build/site/skin/images/pdfdoc.gifdeleted file mode 100644index 00dee28aad4..00000000000Binary files a/lucene/site/build/site/skin/images/pdfdoc.gif and /dev/null differdiff --git a/lucene/site/build/site/skin/images/poddoc.png b/lucene/site/build/site/skin/images/poddoc.pngdeleted file mode 100644index a393df73723..00000000000Binary files a/lucene/site/build/site/skin/images/poddoc.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/poddoc.svg.xslt b/lucene/site/build/site/skin/images/poddoc.svg.xsltdeleted file mode 100644index 6097d2b357d..00000000000--- a/lucene/site/build/site/skin/images/poddoc.svg.xslt+++ /dev/null@@ -1,55 +0,0 @@-<?xml version="1.0" encoding="UTF-8" standalone="no"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<svg width="20pt" height="20pt"- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink">- <defs- id="defs550">- <linearGradient id="gray2white">- <stop style="stop-color:#7f7f7f;stop-opacity:1;" offset="0.000000"/>- <stop style="stop-color:#ffffff;stop-opacity:1;" offset="1.000000"/>- </linearGradient>- <linearGradient id="pageshade" xlink:href="#gray2white"- x1="0.95" y1="0.95"- x2="0.40" y2="0.20"- gradientUnits="objectBoundingBox" spreadMethod="pad" />- <path d="M 0 0 L 200 0" style="stroke:#000000;stroke-width:1pt;" id="hr"/>- </defs>- <g transform="scale(0.08)">- <g transform="translate(40, 0)">- <rect width="230" height="300" x="0" y="0"- style="fill:url(#pageshade);fill-rule:evenodd;- stroke:#000000;stroke-width:1.25;"/>- <g transform="translate(15, 60)">- <use xlink:href="#hr" x="0" y="0"/>- <use xlink:href="#hr" x="0" y="60"/>- <use xlink:href="#hr" x="0" y="120"/>- <use xlink:href="#hr" x="0" y="180"/>- </g>- </g>- <g transform="translate(0,70),scale(1.1,1.6)">- <rect width="200" height="100" x="0" y="0"- style="fill:#ff0000;fill-rule:evenodd;- stroke:#000000;stroke-width:2.33903;"/>- <text x="20" y="75"- style="stroke:#ffffff;stroke-width:1.0;- font-size:72;font-weight:normal;fill:#ffffff;- font-family:Arial;text-anchor:start;">POD</text>- </g>- </g>-</svg>diff --git a/lucene/site/build/site/skin/images/printer.gif b/lucene/site/build/site/skin/images/printer.gifdeleted file mode 100644index 5021187b064..00000000000Binary files a/lucene/site/build/site/skin/images/printer.gif and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rc-b-l-15-1body-2menu-3menu.png b/lucene/site/build/site/skin/images/rc-b-l-15-1body-2menu-3menu.pngdeleted file mode 100644index cdb460a1da7..00000000000Binary files a/lucene/site/build/site/skin/images/rc-b-l-15-1body-2menu-3menu.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rc-b-r-15-1body-2menu-3menu.png b/lucene/site/build/site/skin/images/rc-b-r-15-1body-2menu-3menu.pngdeleted file mode 100644index 3eff254fd17..00000000000Binary files a/lucene/site/build/site/skin/images/rc-b-r-15-1body-2menu-3menu.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rc-b-r-5-1header-2tab-selected-3tab-selected.png b/lucene/site/build/site/skin/images/rc-b-r-5-1header-2tab-selected-3tab-selected.pngdeleted file mode 100644index b175f27b16e..00000000000Binary files a/lucene/site/build/site/skin/images/rc-b-r-5-1header-2tab-selected-3tab-selected.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rc-t-l-5-1header-2searchbox-3searchbox.png b/lucene/site/build/site/skin/images/rc-t-l-5-1header-2searchbox-3searchbox.pngdeleted file mode 100644index e9f4440d1f5..00000000000Binary files a/lucene/site/build/site/skin/images/rc-t-l-5-1header-2searchbox-3searchbox.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rc-t-l-5-1header-2tab-selected-3tab-selected.png b/lucene/site/build/site/skin/images/rc-t-l-5-1header-2tab-selected-3tab-selected.pngdeleted file mode 100644index f1e015b36c3..00000000000Binary files a/lucene/site/build/site/skin/images/rc-t-l-5-1header-2tab-selected-3tab-selected.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png b/lucene/site/build/site/skin/images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.pngdeleted file mode 100644index e9f4440d1f5..00000000000Binary files a/lucene/site/build/site/skin/images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rc-t-r-15-1body-2menu-3menu.png b/lucene/site/build/site/skin/images/rc-t-r-15-1body-2menu-3menu.pngdeleted file mode 100644index 29388b5efc9..00000000000Binary files a/lucene/site/build/site/skin/images/rc-t-r-15-1body-2menu-3menu.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rc-t-r-5-1header-2searchbox-3searchbox.png b/lucene/site/build/site/skin/images/rc-t-r-5-1header-2searchbox-3searchbox.pngdeleted file mode 100644index 944ed73333d..00000000000Binary files a/lucene/site/build/site/skin/images/rc-t-r-5-1header-2searchbox-3searchbox.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rc-t-r-5-1header-2tab-selected-3tab-selected.png b/lucene/site/build/site/skin/images/rc-t-r-5-1header-2tab-selected-3tab-selected.pngdeleted file mode 100644index c4d4a8c7ce3..00000000000Binary files a/lucene/site/build/site/skin/images/rc-t-r-5-1header-2tab-selected-3tab-selected.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png b/lucene/site/build/site/skin/images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.pngdeleted file mode 100644index 944ed73333d..00000000000Binary files a/lucene/site/build/site/skin/images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rc.svg.xslt b/lucene/site/build/site/skin/images/rc.svg.xsltdeleted file mode 100644index d8924fec1b4..00000000000--- a/lucene/site/build/site/skin/images/rc.svg.xslt+++ /dev/null@@ -1,27 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:import href="corner-imports.svg.xslt" />-<!-- Rounded corner -->- <xsl:template name="figure">- <g transform="translate(0.5 0.5)">- <ellipse cx="{$smallersize}" cy="{$smallersize}" rx="{$smallersize}" ry="{$smallersize}"- style="{$fill}{$stroke}stroke-width:1"/>- </g>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/build/site/skin/images/remove.jpg b/lucene/site/build/site/skin/images/remove.jpgdeleted file mode 100644index 8c9b9efa8fe..00000000000Binary files a/lucene/site/build/site/skin/images/remove.jpg and /dev/null differdiff --git a/lucene/site/build/site/skin/images/rss.png b/lucene/site/build/site/skin/images/rss.pngdeleted file mode 100644index f0796ac8862..00000000000Binary files a/lucene/site/build/site/skin/images/rss.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/spacer.gif b/lucene/site/build/site/skin/images/spacer.gifdeleted file mode 100644index 35d42e808f0..00000000000Binary files a/lucene/site/build/site/skin/images/spacer.gif and /dev/null differdiff --git a/lucene/site/build/site/skin/images/txtdoc.png b/lucene/site/build/site/skin/images/txtdoc.pngdeleted file mode 100644index bf8b3744ab2..00000000000Binary files a/lucene/site/build/site/skin/images/txtdoc.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/txtdoc.svg.xslt b/lucene/site/build/site/skin/images/txtdoc.svg.xsltdeleted file mode 100644index d85715c750d..00000000000--- a/lucene/site/build/site/skin/images/txtdoc.svg.xslt+++ /dev/null@@ -1,55 +0,0 @@-<?xml version="1.0" encoding="UTF-8" standalone="no"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<svg width="20pt" height="20pt"- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink">- <defs- id="defs550">- <linearGradient id="gray2white">- <stop style="stop-color:#7f7f7f;stop-opacity:1;" offset="0.000000"/>- <stop style="stop-color:#ffffff;stop-opacity:1;" offset="1.000000"/>- </linearGradient>- <linearGradient id="pageshade" xlink:href="#gray2white"- x1="0.95" y1="0.95"- x2="0.40" y2="0.20"- gradientUnits="objectBoundingBox" spreadMethod="pad" />- <path d="M 0 0 L 200 0" style="stroke:#000000;stroke-width:1pt;" id="hr"/>- </defs>- <g transform="scale(0.08)">- <g transform="translate(40, 0)">- <rect width="230" height="300" x="0" y="0"- style="fill:url(#pageshade);fill-rule:evenodd;- stroke:#000000;stroke-width:1.25;"/>- <g transform="translate(15, 60)">- <use xlink:href="#hr" x="0" y="0"/>- <use xlink:href="#hr" x="0" y="60"/>- <use xlink:href="#hr" x="0" y="120"/>- <use xlink:href="#hr" x="0" y="180"/>- </g>- </g>- <g transform="translate(0,70),scale(1.1,1.6)">- <rect width="200" height="100" x="0" y="0"- style="fill:#ff0000;fill-rule:evenodd;- stroke:#000000;stroke-width:2.33903;"/>- <text x="20" y="75"- style="stroke:#ffffff;stroke-width:1.0;- font-size:72;font-weight:normal;fill:#ffffff;- font-family:Arial;text-anchor:start;">TXT</text>- </g>- </g>-</svg>diff --git a/lucene/site/build/site/skin/images/update.jpg b/lucene/site/build/site/skin/images/update.jpgdeleted file mode 100644index beb9207336f..00000000000Binary files a/lucene/site/build/site/skin/images/update.jpg and /dev/null differdiff --git a/lucene/site/build/site/skin/images/valid-html401.png b/lucene/site/build/site/skin/images/valid-html401.pngdeleted file mode 100644index 3855210c6c3..00000000000Binary files a/lucene/site/build/site/skin/images/valid-html401.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/vcss.png b/lucene/site/build/site/skin/images/vcss.pngdeleted file mode 100644index 9b2f596e016..00000000000Binary files a/lucene/site/build/site/skin/images/vcss.png and /dev/null differdiff --git a/lucene/site/build/site/skin/images/xmldoc.gif b/lucene/site/build/site/skin/images/xmldoc.gifdeleted file mode 100644index ca1224f61f1..00000000000Binary files a/lucene/site/build/site/skin/images/xmldoc.gif and /dev/null differdiff --git a/lucene/site/build/site/skin/menu.js b/lucene/site/build/site/skin/menu.jsdeleted file mode 100644index 06ea471dc57..00000000000--- a/lucene/site/build/site/skin/menu.js+++ /dev/null@@ -1,48 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-/**- * This script, when included in a html file, can be used to make collapsible menus- *- * Typical usage:- * <script type="text/javascript" language="JavaScript" src="menu.js"></script>- */--if (document.getElementById){- document.write('<style type="text/css">.menuitemgroup{display: none;}</style>')-}--function SwitchMenu(obj)-{- if(document.getElementById) {- var el = document.getElementById(obj);- var title = document.getElementById(obj+'Title');-- if(obj.indexOf("_selected_")==0&&el.style.display == ""){- el.style.display = "block";- title.className = "pagegroupselected";- }-- if(el.style.display != "block"){- el.style.display = "block";- title.className = "pagegroupopen";- }- else{- el.style.display = "none";- title.className = "pagegroup";- }- }// end - if(document.getElementById)-}//end - function SwitchMenu(obj)diff --git a/lucene/site/build/site/skin/note.txt b/lucene/site/build/site/skin/note.txtdeleted file mode 100644index d34c8db5ef4..00000000000--- a/lucene/site/build/site/skin/note.txt+++ /dev/null@@ -1,50 +0,0 @@-Notes for developer:----Legend--------------------TODO -> blocker-DONE -> blocker-ToDo -> enhancement bug-done -> enhancement bug----Issues--------------------- the corner images should be rendered through svg with the header color.--> DONE--> ToDo: get rid of the images and use only divs!--- the menu points should be displayed "better".--> DONE--- Use the krysalis-site menu approach for the overall menu display.--> DONE--- Use the old lenya innermenu approch to further enhance the menu .--> DONE--- the content area needs some attention.--> DONE--- introduce the heading scheme from krysalis (<headings type="clean|box|underlined"/>)--> DONE--> ToDo: make box with round corners--> done: make underlined with variable border height--> ToDo: make underline with bottom round corner--- introduce the toc for each html-page--> DONE--- introduce the external-link-images.--> DONE--- the publish note should be where now only a border is.-Like <div id="published"/>--> DONE-, but make it configurable.--> DONE-- footer needs some attention--> DONE--- the footer do not have the color profile! Enable it!--> DONE--- the footer should as well contain a feedback link.-See http://issues.apache.org/eyebrowse/[email protected]&msgNo=71--> DONE--- introduce credits alternativ location--> DONE--- border for published / breadtrail / menu /tab divs--> ToDo\ No newline at end of filediff --git a/lucene/site/build/site/skin/print.css b/lucene/site/build/site/skin/print.cssdeleted file mode 100644index aaa99319acd..00000000000--- a/lucene/site/build/site/skin/print.css+++ /dev/null@@ -1,54 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-body {- font-family: Georgia, Palatino, serif;- font-size: 12pt;- background: white;-}--#tabs,-#menu,-#content .toc {- display: none;-}--#content {- width: auto;- padding: 0;- float: none !important;- color: black;- background: inherit;-}--a:link, a:visited {- color: #336699;- background: inherit;- text-decoration: underline;-}--#top .logo {- padding: 0;- margin: 0 0 2em 0;-}--#footer {- margin-top: 4em;-}--acronym {- border: 0;-}\ No newline at end of filediff --git a/lucene/site/build/site/skin/profile.css b/lucene/site/build/site/skin/profile.cssdeleted file mode 100644index 2ed95546ec6..00000000000--- a/lucene/site/build/site/skin/profile.css+++ /dev/null@@ -1,175 +0,0 @@---/* ==================== aural ============================ */--@media aural {- h1, h2, h3, h4, h5, h6 { voice-family: paul, male; stress: 20; richness: 90 }- h1 { pitch: x-low; pitch-range: 90 }- h2 { pitch: x-low; pitch-range: 80 }- h3 { pitch: low; pitch-range: 70 }- h4 { pitch: medium; pitch-range: 60 }- h5 { pitch: medium; pitch-range: 50 }- h6 { pitch: medium; pitch-range: 40 }- li, dt, dd { pitch: medium; richness: 60 }- dt { stress: 80 }- pre, code, tt { pitch: medium; pitch-range: 0; stress: 0; richness: 80 }- em { pitch: medium; pitch-range: 60; stress: 60; richness: 50 }- strong { pitch: medium; pitch-range: 60; stress: 90; richness: 90 }- dfn { pitch: high; pitch-range: 60; stress: 60 }- s, strike { richness: 0 }- i { pitch: medium; pitch-range: 60; stress: 60; richness: 50 }- b { pitch: medium; pitch-range: 60; stress: 90; richness: 90 }- u { richness: 0 }-- :link { voice-family: harry, male }- :visited { voice-family: betty, female }- :active { voice-family: betty, female; pitch-range: 80; pitch: x-high }-}--a.external {- padding: 0 20px 0px 0px;- display:inline;- background-repeat: no-repeat;- background-position: center right;- background-image: url(images/external-link.gif);-}--#top { background-color: #FFFFFF;}--#top .header .current { background-color: #4C6C8F;}-#top .header .current a:link { color: #ffffff; }-#top .header .current a:visited { color: #ffffff; }-#top .header .current a:hover { color: #ffffff; }--#tabs li { background-color: #E5E4D9 ;}-#tabs li a:link { color: #000000; }-#tabs li a:visited { color: #000000; }-#tabs li a:hover { color: #000000; }--#level2tabs a.selected { background-color: #4C6C8F ;}-#level2tabs a:link { color: #ffffff; }-#level2tabs a:visited { color: #ffffff; }-#level2tabs a:hover { color: #ffffff; }--#level2tabs { background-color: #E5E4D9;}-#level2tabs a.unselected:link { color: #000000; }-#level2tabs a.unselected:visited { color: #000000; }-#level2tabs a.unselected:hover { color: #000000; }--.heading { background-color: #E5E4D9;}--.boxed { background-color: #E5E4D9;}-.underlined_5 {border-bottom: solid 5px #E5E4D9;}-.underlined_10 {border-bottom: solid 10px #E5E4D9;}-table caption {-background-color: #E5E4D9;-color: #000000;-}--#feedback {-color: #FFFFFF;-background: #4C6C8F;-text-align: center;-}-#feedback #feedbackto {-color: #FFFFFF;-}--#publishedStrip {-color: #FFFFFF;-background: #4C6C8F;-}--#publishedStrip {-color: #000000;-background: #E5E4D9;-}--#menu .menupagetitle { background-color: #CFDCED;- color: #000000;}--#menu { border-color: #999999;}-#menu .menupagetitle { border-color: #999999;}-#menu .menupageitemgroup { border-color: #999999;}--#menu { background-color: #4C6C8F;}-#menu { color: #ffffff;}-#menu a:link { color: #ffffff;}-#menu a:visited { color: #ffffff;}-#menu a:hover {-background-color: #4C6C8F;-color: #ffffff;}--#menu h1 {-color: #000000;-background-color: #cfdced;-}--#top .searchbox {-background-color: #E5E4D9 ;-color: #000000;-}--#menu .menupageitemgroup {-background-color: #E5E4D9;-}-#menu .menupageitem {-color: #000000;-}-#menu .menupageitem a:link { color: #000000;}-#menu .menupageitem a:visited { color: #000000;}-#menu .menupageitem a:hover {-background-color: #E5E4D9;-color: #000000;-}--body{-background-color: #ffffff;-color: #000000;-}-a:link { color:#0000ff}-a:visited { color:#009999}-a:hover { color:#6587ff}---.ForrestTable { background-color: #ccc;}--.ForrestTable td { background-color: #ffffff;}--.highlight { background-color: #ffff00;}--.fixme { border-color: #c60;}--.note { border-color: #069;}--.warning { border-color: #900;}--.code { border-color: #a5b6c6;}--#footer { background-color: #E5E4D9;}-/* extra-css */-- p.quote {- margin-left: 2em;- padding: .5em;- background-color: #f0f0f0;- font-family: monospace;- }- img.float-right {- float: right;- margin-left: 2em;- padding: .5em;- }-- #footer a { color: #0F3660; }- #footer a:visited { color: #009999; }-- pre.code {- margin-left: 2em;- margin-right: 2em;- padding: 0.5em;- background-color: #f0f0f0;- }---\ No newline at end of filediff --git a/lucene/site/build/site/skin/prototype.js b/lucene/site/build/site/skin/prototype.jsdeleted file mode 100644index ed7d920cb5f..00000000000--- a/lucene/site/build/site/skin/prototype.js+++ /dev/null@@ -1,1257 +0,0 @@-/* Prototype JavaScript framework, version 1.4.0_pre4- * (c) 2005 Sam Stephenson <[email protected]>- *- * THIS FILE IS AUTOMATICALLY GENERATED. When sending patches, please diff- * against the source tree, available from the Prototype darcs repository.- *- * Prototype is freely distributable under the terms of an MIT-style license.- *- * For details, see the Prototype web site: http://prototype.conio.net/- *-/*--------------------------------------------------------------------------*/--var Prototype = {- Version: '1.4.0_pre4',-- emptyFunction: function() {},- K: function(x) {return x}-}--var Class = {- create: function() {- return function() {- this.initialize.apply(this, arguments);- }- }-}--var Abstract = new Object();--Object.extend = function(destination, source) {- for (property in source) {- destination[property] = source[property];- }- return destination;-}--Function.prototype.bind = function(object) {- var __method = this;- return function() {- return __method.apply(object, arguments);- }-}--Function.prototype.bindAsEventListener = function(object) {- var __method = this;- return function(event) {- return __method.call(object, event || window.event);- }-}--Number.prototype.toColorPart = function() {- var digits = this.toString(16);- if (this < 16) return '0' + digits;- return digits;-}--var Try = {- these: function() {- var returnValue;-- for (var i = 0; i < arguments.length; i++) {- var lambda = arguments[i];- try {- returnValue = lambda();- break;- } catch (e) {}- }-- return returnValue;- }-}--/*--------------------------------------------------------------------------*/--var PeriodicalExecuter = Class.create();-PeriodicalExecuter.prototype = {- initialize: function(callback, frequency) {- this.callback = callback;- this.frequency = frequency;- this.currentlyExecuting = false;-- this.registerCallback();- },-- registerCallback: function() {- setInterval(this.onTimerEvent.bind(this), this.frequency * 1000);- },-- onTimerEvent: function() {- if (!this.currentlyExecuting) {- try {- this.currentlyExecuting = true;- this.callback();- } finally {- this.currentlyExecuting = false;- }- }- }-}--/*--------------------------------------------------------------------------*/--function $() {- var elements = new Array();-- for (var i = 0; i < arguments.length; i++) {- var element = arguments[i];- if (typeof element == 'string')- element = document.getElementById(element);-- if (arguments.length == 1)- return element;-- elements.push(element);- }-- return elements;-}--if (!Array.prototype.push) {- Array.prototype.push = function() {- var startLength = this.length;- for (var i = 0; i < arguments.length; i++)- this[startLength + i] = arguments[i];- return this.length;- }-}--if (!Function.prototype.apply) {- // Based on code from http://www.youngpup.net/- Function.prototype.apply = function(object, parameters) {- var parameterStrings = new Array();- if (!object) object = window;- if (!parameters) parameters = new Array();-- for (var i = 0; i < parameters.length; i++)- parameterStrings[i] = 'parameters[' + i + ']';-- object.__apply__ = this;- var result = eval('object.__apply__(' +- parameterStrings.join(', ') + ')');- object.__apply__ = null;-- return result;- }-}--Object.extend(String.prototype, {- stripTags: function() {- return this.replace(/<\/?[^>]+>/gi, '');- },-- escapeHTML: function() {- var div = document.createElement('div');- var text = document.createTextNode(this);- div.appendChild(text);- return div.innerHTML;- },-- unescapeHTML: function() {- var div = document.createElement('div');- div.innerHTML = this.stripTags();- return div.childNodes[0].nodeValue;- },-- parseQuery: function() {- var str = this;- if (str.substring(0,1) == '?') {- str = this.substring(1);- }- var result = {};- var pairs = str.split('&');- for (var i = 0; i < pairs.length; i++) {- var pair = pairs[i].split('=');- result[pair[0]] = pair[1];- }- return result;- }-});---var _break = new Object();-var _continue = new Object();--var Enumerable = {- each: function(iterator) {- var index = 0;- try {- this._each(function(value) {- try {- iterator(value, index++);- } catch (e) {- if (e != _continue) throw e;- }- });- } catch (e) {- if (e != _break) throw e;- }- },-- all: function(iterator) {- var result = true;- this.each(function(value, index) {- if (!(result &= (iterator || Prototype.K)(value, index)))- throw _break;- });- return result;- },-- any: function(iterator) {- var result = true;- this.each(function(value, index) {- if (result &= (iterator || Prototype.K)(value, index))- throw _break;- });- return result;- },-- collect: function(iterator) {- var results = [];- this.each(function(value, index) {- results.push(iterator(value, index));- });- return results;- },-- detect: function (iterator) {- var result;- this.each(function(value, index) {- if (iterator(value, index)) {- result = value;- throw _break;- }- });- return result;- },-- findAll: function(iterator) {- var results = [];- this.each(function(value, index) {- if (iterator(value, index))- results.push(value);- });- return results;- },-- grep: function(pattern, iterator) {- var results = [];- this.each(function(value, index) {- var stringValue = value.toString();- if (stringValue.match(pattern))- results.push((iterator || Prototype.K)(value, index));- })- return results;- },-- include: function(object) {- var found = false;- this.each(function(value) {- if (value == object) {- found = true;- throw _break;- }- });- return found;- },-- inject: function(memo, iterator) {- this.each(function(value, index) {- memo = iterator(memo, value, index);- });- return memo;- },-- invoke: function(method) {- var args = $A(arguments).slice(1);- return this.collect(function(value) {- return value[method].apply(value, args);- });- },-- max: function(iterator) {- var result;- this.each(function(value, index) {- value = (iterator || Prototype.K)(value, index);- if (value >= (result || value))- result = value;- });- return result;- },-- min: function(iterator) {- var result;- this.each(function(value, index) {- value = (iterator || Prototype.K)(value, index);- if (value <= (result || value))- result = value;- });- return result;- },-- partition: function(iterator) {- var trues = [], falses = [];- this.each(function(value, index) {- ((iterator || Prototype.K)(value, index) ?- trues : falses).push(value);- });- return [trues, falses];- },-- pluck: function(property) {- var results = [];- this.each(function(value, index) {- results.push(value[property]);- });- return results;- },-- reject: function(iterator) {- var results = [];- this.each(function(value, index) {- if (!iterator(value, index))- results.push(value);- });- return results;- },-- sortBy: function(iterator) {- return this.collect(function(value, index) {- return {value: value, criteria: iterator(value, index)};- }).sort(function(left, right) {- var a = left.criteria, b = right.criteria;- return a < b ? -1 : a > b ? 1 : 0;- }).pluck('value');- },-- toArray: function() {- return this.collect(Prototype.K);- },-- zip: function() {- var iterator = Prototype.K, args = $A(arguments);- if (typeof args.last() == 'function')- iterator = args.pop();-- var collections = [this].concat(args).map($A);- return this.map(function(value, index) {- iterator(value = collections.pluck(index));- return value;- });- }-}--Object.extend(Enumerable, {- map: Enumerable.collect,- find: Enumerable.detect,- select: Enumerable.findAll,- member: Enumerable.include,- entries: Enumerable.toArray-});--$A = Array.from = function(iterable) {- var results = [];- for (var i = 0; i < iterable.length; i++)- results.push(iterable[i]);- return results;-}--Object.extend(Array.prototype, {- _each: function(iterator) {- for (var i = 0; i < this.length; i++)- iterator(this[i]);- },-- first: function() {- return this[0];- },-- last: function() {- return this[this.length - 1];- }-});--Object.extend(Array.prototype, Enumerable);---var Ajax = {- getTransport: function() {- return Try.these(- function() {return new ActiveXObject('Msxml2.XMLHTTP')},- function() {return new ActiveXObject('Microsoft.XMLHTTP')},- function() {return new XMLHttpRequest()}- ) || false;- }-}--Ajax.Base = function() {};-Ajax.Base.prototype = {- setOptions: function(options) {- this.options = {- method: 'post',- asynchronous: true,- parameters: ''- }- Object.extend(this.options, options || {});- },-- responseIsSuccess: function() {- return this.transport.status == undefined- || this.transport.status == 0- || (this.transport.status >= 200 && this.transport.status < 300);- },-- responseIsFailure: function() {- return !this.responseIsSuccess();- }-}--Ajax.Request = Class.create();-Ajax.Request.Events =- ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete'];--Ajax.Request.prototype = Object.extend(new Ajax.Base(), {- initialize: function(url, options) {- this.transport = Ajax.getTransport();- this.setOptions(options);- this.request(url);- },-- request: function(url) {- var parameters = this.options.parameters || '';- if (parameters.length > 0) parameters += '&_=';-- try {- if (this.options.method == 'get')- url += '?' + parameters;-- this.transport.open(this.options.method, url,- this.options.asynchronous);-- if (this.options.asynchronous) {- this.transport.onreadystatechange = this.onStateChange.bind(this);- setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);- }-- this.setRequestHeaders();-- var body = this.options.postBody ? this.options.postBody : parameters;- this.transport.send(this.options.method == 'post' ? body : null);-- } catch (e) {- }- },-- setRequestHeaders: function() {- var requestHeaders =- ['X-Requested-With', 'XMLHttpRequest',- 'X-Prototype-Version', Prototype.Version];-- if (this.options.method == 'post') {- requestHeaders.push('Content-type',- 'application/x-www-form-urlencoded');-- /* Force "Connection: close" for Mozilla browsers to work around- * a bug where XMLHttpReqeuest sends an incorrect Content-length- * header. See Mozilla Bugzilla #246651.- */- if (this.transport.overrideMimeType)- requestHeaders.push('Connection', 'close');- }-- if (this.options.requestHeaders)- requestHeaders.push.apply(requestHeaders, this.options.requestHeaders);-- for (var i = 0; i < requestHeaders.length; i += 2)- this.transport.setRequestHeader(requestHeaders[i], requestHeaders[i+1]);- },-- onStateChange: function() {- var readyState = this.transport.readyState;- if (readyState != 1)- this.respondToReadyState(this.transport.readyState);- },-- respondToReadyState: function(readyState) {- var event = Ajax.Request.Events[readyState];-- if (event == 'Complete')- (this.options['on' + this.transport.status]- || this.options['on' + (this.responseIsSuccess() ? 'Success' : 'Failure')]- || Prototype.emptyFunction)(this.transport);-- (this.options['on' + event] || Prototype.emptyFunction)(this.transport);-- /* Avoid memory leak in MSIE: clean up the oncomplete event handler */- if (event == 'Complete')- this.transport.onreadystatechange = Prototype.emptyFunction;- }-});--Ajax.Updater = Class.create();-Ajax.Updater.ScriptFragment = '(?:<script.*?>)((\n|.)*?)(?:<\/script>)';--Object.extend(Object.extend(Ajax.Updater.prototype, Ajax.Request.prototype), {- initialize: function(container, url, options) {- this.containers = {- success: container.success ? $(container.success) : $(container),- failure: container.failure ? $(container.failure) :- (container.success ? null : $(container))- }-- this.transport = Ajax.getTransport();- this.setOptions(options);-- var onComplete = this.options.onComplete || Prototype.emptyFunction;- this.options.onComplete = (function() {- this.updateContent();- onComplete(this.transport);- }).bind(this);-- this.request(url);- },-- updateContent: function() {- var receiver = this.responseIsSuccess() ?- this.containers.success : this.containers.failure;-- var match = new RegExp(Ajax.Updater.ScriptFragment, 'img');- var response = this.transport.responseText.replace(match, '');- var scripts = this.transport.responseText.match(match);-- if (receiver) {- if (this.options.insertion) {- new this.options.insertion(receiver, response);- } else {- receiver.innerHTML = response;- }- }-- if (this.responseIsSuccess()) {- if (this.onComplete)- setTimeout((function() {this.onComplete(- this.transport)}).bind(this), 10);- }-- if (this.options.evalScripts && scripts) {- match = new RegExp(Ajax.Updater.ScriptFragment, 'im');- setTimeout((function() {- for (var i = 0; i < scripts.length; i++)- eval(scripts[i].match(match)[1]);- }).bind(this), 10);- }- }-});--Ajax.PeriodicalUpdater = Class.create();-Ajax.PeriodicalUpdater.prototype = Object.extend(new Ajax.Base(), {- initialize: function(container, url, options) {- this.setOptions(options);- this.onComplete = this.options.onComplete;-- this.frequency = (this.options.frequency || 2);- this.decay = 1;-- this.updater = {};- this.container = container;- this.url = url;-- this.start();- },-- start: function() {- this.options.onComplete = this.updateComplete.bind(this);- this.onTimerEvent();- },-- stop: function() {- this.updater.onComplete = undefined;- clearTimeout(this.timer);- (this.onComplete || Ajax.emptyFunction).apply(this, arguments);- },-- updateComplete: function(request) {- if (this.options.decay) {- this.decay = (request.responseText == this.lastText ?- this.decay * this.options.decay : 1);-- this.lastText = request.responseText;- }- this.timer = setTimeout(this.onTimerEvent.bind(this),- this.decay * this.frequency * 1000);- },-- onTimerEvent: function() {- this.updater = new Ajax.Updater(this.container, this.url, this.options);- }-});--document.getElementsByClassName = function(className) {- var children = document.getElementsByTagName('*') || document.all;- var elements = new Array();-- for (var i = 0; i < children.length; i++) {- var child = children[i];- var classNames = child.className.split(' ');- for (var j = 0; j < classNames.length; j++) {- if (classNames[j] == className) {- elements.push(child);- break;- }- }- }-- return elements;-}--/*--------------------------------------------------------------------------*/--if (!window.Element) {- var Element = new Object();-}--Object.extend(Element, {- toggle: function() {- for (var i = 0; i < arguments.length; i++) {- var element = $(arguments[i]);- element.style.display =- (element.style.display == 'none' ? '' : 'none');- }- },-- hide: function() {- for (var i = 0; i < arguments.length; i++) {- var element = $(arguments[i]);- element.style.display = 'none';- }- },-- show: function() {- for (var i = 0; i < arguments.length; i++) {- var element = $(arguments[i]);- element.style.display = '';- }- },-- remove: function(element) {- element = $(element);- element.parentNode.removeChild(element);- },-- getHeight: function(element) {- element = $(element);- return element.offsetHeight;- },-- hasClassName: function(element, className) {- element = $(element);- if (!element)- return;- var a = element.className.split(' ');- for (var i = 0; i < a.length; i++) {- if (a[i] == className)- return true;- }- return false;- },-- addClassName: function(element, className) {- element = $(element);- Element.removeClassName(element, className);- element.className += ' ' + className;- },-- removeClassName: function(element, className) {- element = $(element);- if (!element)- return;- var newClassName = '';- var a = element.className.split(' ');- for (var i = 0; i < a.length; i++) {- if (a[i] != className) {- if (i > 0)- newClassName += ' ';- newClassName += a[i];- }- }- element.className = newClassName;- },-- // removes whitespace-only text node children- cleanWhitespace: function(element) {- var element = $(element);- for (var i = 0; i < element.childNodes.length; i++) {- var node = element.childNodes[i];- if (node.nodeType == 3 && !/\S/.test(node.nodeValue))- Element.remove(node);- }- }-});--var Toggle = new Object();-Toggle.display = Element.toggle;--/*--------------------------------------------------------------------------*/--Abstract.Insertion = function(adjacency) {- this.adjacency = adjacency;-}--Abstract.Insertion.prototype = {- initialize: function(element, content) {- this.element = $(element);- this.content = content;-- if (this.adjacency && this.element.insertAdjacentHTML) {- this.element.insertAdjacentHTML(this.adjacency, this.content);- } else {- this.range = this.element.ownerDocument.createRange();- if (this.initializeRange) this.initializeRange();- this.fragment = this.range.createContextualFragment(this.content);- this.insertContent();- }- }-}--var Insertion = new Object();--Insertion.Before = Class.create();-Insertion.Before.prototype = Object.extend(new Abstract.Insertion('beforeBegin'), {- initializeRange: function() {- this.range.setStartBefore(this.element);- },-- insertContent: function() {- this.element.parentNode.insertBefore(this.fragment, this.element);- }-});--Insertion.Top = Class.create();-Insertion.Top.prototype = Object.extend(new Abstract.Insertion('afterBegin'), {- initializeRange: function() {- this.range.selectNodeContents(this.element);- this.range.collapse(true);- },-- insertContent: function() {- this.element.insertBefore(this.fragment, this.element.firstChild);- }-});--Insertion.Bottom = Class.create();-Insertion.Bottom.prototype = Object.extend(new Abstract.Insertion('beforeEnd'), {- initializeRange: function() {- this.range.selectNodeContents(this.element);- this.range.collapse(this.element);- },-- insertContent: function() {- this.element.appendChild(this.fragment);- }-});--Insertion.After = Class.create();-Insertion.After.prototype = Object.extend(new Abstract.Insertion('afterEnd'), {- initializeRange: function() {- this.range.setStartAfter(this.element);- },-- insertContent: function() {- this.element.parentNode.insertBefore(this.fragment,- this.element.nextSibling);- }-});--var Field = {- clear: function() {- for (var i = 0; i < arguments.length; i++)- $(arguments[i]).value = '';- },-- focus: function(element) {- $(element).focus();- },-- present: function() {- for (var i = 0; i < arguments.length; i++)- if ($(arguments[i]).value == '') return false;- return true;- },-- select: function(element) {- $(element).select();- },-- activate: function(element) {- $(element).focus();- $(element).select();- }-}--/*--------------------------------------------------------------------------*/--var Form = {- serialize: function(form) {- var elements = Form.getElements($(form));- var queryComponents = new Array();-- for (var i = 0; i < elements.length; i++) {- var queryComponent = Form.Element.serialize(elements[i]);- if (queryComponent)- queryComponents.push(queryComponent);- }-- return queryComponents.join('&');- },-- getElements: function(form) {- var form = $(form);- var elements = new Array();-- for (tagName in Form.Element.Serializers) {- var tagElements = form.getElementsByTagName(tagName);- for (var j = 0; j < tagElements.length; j++)- elements.push(tagElements[j]);- }- return elements;- },-- getInputs: function(form, typeName, name) {- var form = $(form);- var inputs = form.getElementsByTagName('input');-- if (!typeName && !name)- return inputs;-- var matchingInputs = new Array();- for (var i = 0; i < inputs.length; i++) {- var input = inputs[i];- if ((typeName && input.type != typeName) ||- (name && input.name != name))- continue;- matchingInputs.push(input);- }-- return matchingInputs;- },-- disable: function(form) {- var elements = Form.getElements(form);- for (var i = 0; i < elements.length; i++) {- var element = elements[i];- element.blur();- element.disabled = 'true';- }- },-- enable: function(form) {- var elements = Form.getElements(form);- for (var i = 0; i < elements.length; i++) {- var element = elements[i];- element.disabled = '';- }- },-- focusFirstElement: function(form) {- var form = $(form);- var elements = Form.getElements(form);- for (var i = 0; i < elements.length; i++) {- var element = elements[i];- if (element.type != 'hidden' && !element.disabled) {- Field.activate(element);- break;- }- }- },-- reset: function(form) {- $(form).reset();- }-}--Form.Element = {- serialize: function(element) {- var element = $(element);- var method = element.tagName.toLowerCase();- var parameter = Form.Element.Serializers[method](element);-- if (parameter)- return encodeURIComponent(parameter[0]) + '=' +- encodeURIComponent(parameter[1]);- },-- getValue: function(element) {- var element = $(element);- var method = element.tagName.toLowerCase();- var parameter = Form.Element.Serializers[method](element);-- if (parameter)- return parameter[1];- }-}--Form.Element.Serializers = {- input: function(element) {- switch (element.type.toLowerCase()) {- case 'submit':- case 'hidden':- case 'password':- case 'text':- return Form.Element.Serializers.textarea(element);- case 'checkbox':- case 'radio':- return Form.Element.Serializers.inputSelector(element);- }- return false;- },-- inputSelector: function(element) {- if (element.checked)- return [element.name, element.value];- },-- textarea: function(element) {- return [element.name, element.value];- },-- select: function(element) {- var value = '';- if (element.type == 'select-one') {- var index = element.selectedIndex;- if (index >= 0)- value = element.options[index].value || element.options[index].text;- } else {- value = new Array();- for (var i = 0; i < element.length; i++) {- var opt = element.options[i];- if (opt.selected)- value.push(opt.value || opt.text);- }- }- return [element.name, value];- }-}--/*--------------------------------------------------------------------------*/--var $F = Form.Element.getValue;--/*--------------------------------------------------------------------------*/--Abstract.TimedObserver = function() {}-Abstract.TimedObserver.prototype = {- initialize: function(element, frequency, callback) {- this.frequency = frequency;- this.element = $(element);- this.callback = callback;-- this.lastValue = this.getValue();- this.registerCallback();- },-- registerCallback: function() {- setInterval(this.onTimerEvent.bind(this), this.frequency * 1000);- },-- onTimerEvent: function() {- var value = this.getValue();- if (this.lastValue != value) {- this.callback(this.element, value);- this.lastValue = value;- }- }-}--Form.Element.Observer = Class.create();-Form.Element.Observer.prototype = Object.extend(new Abstract.TimedObserver(), {- getValue: function() {- return Form.Element.getValue(this.element);- }-});--Form.Observer = Class.create();-Form.Observer.prototype = Object.extend(new Abstract.TimedObserver(), {- getValue: function() {- return Form.serialize(this.element);- }-});--/*--------------------------------------------------------------------------*/--Abstract.EventObserver = function() {}-Abstract.EventObserver.prototype = {- initialize: function(element, callback) {- this.element = $(element);- this.callback = callback;-- this.lastValue = this.getValue();- if (this.element.tagName.toLowerCase() == 'form')- this.registerFormCallbacks();- else- this.registerCallback(this.element);- },-- onElementEvent: function() {- var value = this.getValue();- if (this.lastValue != value) {- this.callback(this.element, value);- this.lastValue = value;- }- },-- registerFormCallbacks: function() {- var elements = Form.getElements(this.element);- for (var i = 0; i < elements.length; i++)- this.registerCallback(elements[i]);- },-- registerCallback: function(element) {- if (element.type) {- switch (element.type.toLowerCase()) {- case 'checkbox':- case 'radio':- element.target = this;- element.prev_onclick = element.onclick || Prototype.emptyFunction;- element.onclick = function() {- this.prev_onclick();- this.target.onElementEvent();- }- break;- case 'password':- case 'text':- case 'textarea':- case 'select-one':- case 'select-multiple':- element.target = this;- element.prev_onchange = element.onchange || Prototype.emptyFunction;- element.onchange = function() {- this.prev_onchange();- this.target.onElementEvent();- }- break;- }- }- }-}--Form.Element.EventObserver = Class.create();-Form.Element.EventObserver.prototype = Object.extend(new Abstract.EventObserver(), {- getValue: function() {- return Form.Element.getValue(this.element);- }-});--Form.EventObserver = Class.create();-Form.EventObserver.prototype = Object.extend(new Abstract.EventObserver(), {- getValue: function() {- return Form.serialize(this.element);- }-});---if (!window.Event) {- var Event = new Object();-}--Object.extend(Event, {- KEY_BACKSPACE: 8,- KEY_TAB: 9,- KEY_RETURN: 13,- KEY_ESC: 27,- KEY_LEFT: 37,- KEY_UP: 38,- KEY_RIGHT: 39,- KEY_DOWN: 40,- KEY_DELETE: 46,-- element: function(event) {- return event.target || event.srcElement;- },-- isLeftClick: function(event) {- return (((event.which) && (event.which == 1)) ||- ((event.button) && (event.button == 1)));- },-- pointerX: function(event) {- return event.pageX || (event.clientX +- (document.documentElement.scrollLeft || document.body.scrollLeft));- },-- pointerY: function(event) {- return event.pageY || (event.clientY +- (document.documentElement.scrollTop || document.body.scrollTop));- },-- stop: function(event) {- if (event.preventDefault) {- event.preventDefault();- event.stopPropagation();- } else {- event.returnValue = false;- }- },-- // find the first node with the given tagName, starting from the- // node the event was triggered on; traverses the DOM upwards- findElement: function(event, tagName) {- var element = Event.element(event);- while (element.parentNode && (!element.tagName ||- (element.tagName.toUpperCase() != tagName.toUpperCase())))- element = element.parentNode;- return element;- },-- observers: false,-- _observeAndCache: function(element, name, observer, useCapture) {- if (!this.observers) this.observers = [];- if (element.addEventListener) {- this.observers.push([element, name, observer, useCapture]);- element.addEventListener(name, observer, useCapture);- } else if (element.attachEvent) {- this.observers.push([element, name, observer, useCapture]);- element.attachEvent('on' + name, observer);- }- },-- unloadCache: function() {- if (!Event.observers) return;- for (var i = 0; i < Event.observers.length; i++) {- Event.stopObserving.apply(this, Event.observers[i]);- Event.observers[i][0] = null;- }- Event.observers = false;- },-- observe: function(element, name, observer, useCapture) {- var element = $(element);- useCapture = useCapture || false;-- if (name == 'keypress' &&- ((/Konqueror|Safari|KHTML/.test(navigator.userAgent))- || element.attachEvent))- name = 'keydown';-- this._observeAndCache(element, name, observer, useCapture);- },-- stopObserving: function(element, name, observer, useCapture) {- var element = $(element);- useCapture = useCapture || false;-- if (name == 'keypress' &&- ((/Konqueror|Safari|KHTML/.test(navigator.userAgent))- || element.detachEvent))- name = 'keydown';-- if (element.removeEventListener) {- element.removeEventListener(name, observer, useCapture);- } else if (element.detachEvent) {- element.detachEvent('on' + name, observer);- }- }-});--/* prevent memory leaks in IE */-Event.observe(window, 'unload', Event.unloadCache, false);--var Position = {-- // set to true if needed, warning: firefox performance problems- // NOT neeeded for page scrolling, only if draggable contained in- // scrollable elements- includeScrollOffsets: false,-- // must be called before calling withinIncludingScrolloffset, every time the- // page is scrolled- prepare: function() {- this.deltaX = window.pageXOffset- || document.documentElement.scrollLeft- || document.body.scrollLeft- || 0;- this.deltaY = window.pageYOffset- || document.documentElement.scrollTop- || document.body.scrollTop- || 0;- },-- realOffset: function(element) {- var valueT = 0, valueL = 0;- do {- valueT += element.scrollTop || 0;- valueL += element.scrollLeft || 0;- element = element.parentNode;- } while (element);- return [valueL, valueT];- },-- cumulativeOffset: function(element) {- var valueT = 0, valueL = 0;- do {- valueT += element.offsetTop || 0;- valueL += element.offsetLeft || 0;- element = element.offsetParent;- } while (element);- return [valueL, valueT];- },-- // caches x/y coordinate pair to use with overlap- within: function(element, x, y) {- if (this.includeScrollOffsets)- return this.withinIncludingScrolloffsets(element, x, y);- this.xcomp = x;- this.ycomp = y;- this.offset = this.cumulativeOffset(element);-- return (y >= this.offset[1] &&- y < this.offset[1] + element.offsetHeight &&- x >= this.offset[0] &&- x < this.offset[0] + element.offsetWidth);- },-- withinIncludingScrolloffsets: function(element, x, y) {- var offsetcache = this.realOffset(element);-- this.xcomp = x + offsetcache[0] - this.deltaX;- this.ycomp = y + offsetcache[1] - this.deltaY;- this.offset = this.cumulativeOffset(element);-- return (this.ycomp >= this.offset[1] &&- this.ycomp < this.offset[1] + element.offsetHeight &&- this.xcomp >= this.offset[0] &&- this.xcomp < this.offset[0] + element.offsetWidth);- },-- // within must be called directly before- overlap: function(mode, element) {- if (!mode) return 0;- if (mode == 'vertical')- return ((this.offset[1] + element.offsetHeight) - this.ycomp) /- element.offsetHeight;- if (mode == 'horizontal')- return ((this.offset[0] + element.offsetWidth) - this.xcomp) /- element.offsetWidth;- },-- clone: function(source, target) {- source = $(source);- target = $(target);- target.style.position = 'absolute';- var offsets = this.cumulativeOffset(source);- target.style.top = offsets[1] + 'px';- target.style.left = offsets[0] + 'px';- target.style.width = source.offsetWidth + 'px';- target.style.height = source.offsetHeight + 'px';- }-}diff --git a/lucene/site/build/site/skin/screen.css b/lucene/site/build/site/skin/screen.cssdeleted file mode 100644index c6084f81df3..00000000000--- a/lucene/site/build/site/skin/screen.css+++ /dev/null@@ -1,587 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-body { margin: 0px 0px 0px 0px; font-family: Verdana, Helvetica, sans-serif; }--h1 { font-size : 160%; margin: 0px 0px 0px 0px; padding: 0px; }-h2 { font-size : 140%; margin: 1em 0px 0.8em 0px; padding: 0px; font-weight : bold;}-h3 { font-size : 130%; margin: 0.8em 0px 0px 0px; padding: 0px; font-weight : bold; }-.h3 { margin: 22px 0px 3px 0px; }-h4 { font-size : 120%; margin: 0.7em 0px 0px 0px; padding: 0px; font-weight : normal; text-align: left; }-.h4 { margin: 18px 0px 0px 0px; }-h4.faq { font-size : 120%; margin: 18px 0px 0px 0px; padding: 0px; font-weight : bold; text-align: left; }-h5 { font-size : 100%; margin: 14px 0px 0px 0px; padding: 0px; font-weight : normal; text-align: left; }--/**-* table-*/-table .title { background-color: #000000; }-.ForrestTable {- color: #ffffff;- background-color: #7099C5;- width: 100%;- font-size : 100%;- empty-cells: show;-}-table caption {- padding-left: 5px;- color: white;- text-align: left;- font-weight: bold;- background-color: #000000;-}-.ForrestTable td {- color: black;- background-color: #f0f0ff;-}-.ForrestTable th { text-align: center; }-/**- * Page Header- */--#top {- position: relative;- float: left;- width: 100%;- background: #294563; /* if you want a background in the header, put it here */-}--#top .breadtrail {- background: #CFDCED;- color: black;- border-bottom: solid 1px white;- padding: 3px 10px;- font-size: 75%;-}-#top .breadtrail a { color: black; }--#top .header {- float: left;- width: 100%;- background: url("images/header_white_line.gif") repeat-x bottom;-}--#top .grouplogo {- padding: 7px 0 10px 10px;- float: left;- text-align: left;-}-#top .projectlogo {- padding: 7px 0 10px 10px;- float: left;- width: 33%;- text-align: right;-}-#top .projectlogoA1 {- padding: 7px 0 10px 10px;- float: right;-}-html>body #top .searchbox {- bottom: 0px;-}-#top .searchbox {- position: absolute;- right: 10px;- height: 42px;- font-size: 70%;- white-space: nowrap;- text-align: right;- color: white;- background-color: #000000;- z-index:0;- background-image: url(images/rc-t-l-5-1header-2searchbox-3searchbox.png);- background-repeat: no-repeat;- background-position: top left;- bottom: -1px; /* compensate for IE rendering issue */-}--#top .searchbox form {- padding: 5px 10px;- margin: 0;-}-#top .searchbox p {- padding: 0 0 2px 0;- margin: 0;-}-#top .searchbox input {- font-size: 100%;-}--#tabs {- clear: both;- padding-left: 10px;- margin: 0;- list-style: none;-}-/* background: #CFDCED url("images/tab-right.gif") no-repeat right top;*/-#tabs li {- float: left;- background-image: url(images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png);- background-repeat: no-repeat;- background-position: top right;- background-color: #000000;- margin: 0 3px 0 0;- padding: 0;-}--/*background: url("images/tab-left.gif") no-repeat left top;*/-#tabs li a {- float: left;- display: block;- font-family: verdana, arial, sans-serif;- text-decoration: none;- color: black;- white-space: nowrap;- background-image: url(images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png);- background-repeat: no-repeat;- background-position: top left;- padding: 5px 15px 4px;- width: .1em; /* IE/Win fix */-}--#tabs li a:hover {-- cursor: pointer;- text-decoration:underline;-}--#tabs > li a { width: auto; } /* Rest of IE/Win fix */--/* Commented Backslash Hack hides rule from IE5-Mac \*/-#tabs a { float: none; }-/* End IE5-Mac hack */--#top .header .current {- background-color: #4C6C8F;- background-image: url(images/rc-t-r-5-1header-2tab-selected-3tab-selected.png);- background-repeat: no-repeat;- background-position: top right;-}-#top .header .current a {- font-weight: bold;- padding-bottom: 5px;- color: white;- background-image: url(images/rc-t-l-5-1header-2tab-selected-3tab-selected.png);- background-repeat: no-repeat;- background-position: top left;-}-#publishedStrip {- padding-right: 10px;- padding-left: 20px;- padding-top: 3px;- padding-bottom:3px;- color: #ffffff;- font-size : 60%;- font-weight: bold;- background-color: #4C6C8F;- text-align:right;-}--#level2tabs {-margin: 0;-float:left;-position:relative;--}----#level2tabs a:hover {-- cursor: pointer;- text-decoration:underline;--}--#level2tabs a{-- cursor: pointer;- text-decoration:none;- background-image: url('images/chapter.gif');- background-repeat: no-repeat;- background-position: center left;- padding-left: 6px;- margin-left: 6px;-}--/*-* border-top: solid #4C6C8F 15px;-*/-#main {- position: relative;- background: white;- clear:both;-}-#main .breadtrail {- clear:both;- position: relative;- background: #CFDCED;- color: black;- border-bottom: solid 1px black;- border-top: solid 1px black;- padding: 0px 180px;- font-size: 75%;- z-index:10;-}-/**-* Round corner-*/-#roundtop {- background-image: url(images/rc-t-r-15-1body-2menu-3menu.png);- background-repeat: no-repeat;- background-position: top right;-}--#roundbottom {- background-image: url(images/rc-b-r-15-1body-2menu-3menu.png);- background-repeat: no-repeat;- background-position: top right;-}--img.corner {- width: 15px;- height: 15px;- border: none;- display: block !important;-}--.roundtopsmall {- background-image: url(images/rc-t-r-5-1header-2searchbox-3searchbox.png);- background-repeat: no-repeat;- background-position: top right;-}--#roundbottomsmall {- background-image: url(images/rc-b-r-5-1header-2tab-selected-3tab-selected.png);- background-repeat: no-repeat;- background-position: top right;-}--img.cornersmall {- width: 5px;- height: 5px;- border: none;- display: block !important;-}-/**- * Side menu- */-#menu a { font-weight: normal; text-decoration: none;}-#menu a:visited { font-weight: normal; }-#menu a:active { font-weight: normal; }-#menu a:hover { font-weight: normal; text-decoration:underline;}--#menuarea { width:10em;}-#menu {- position: relative;- float: left;- width: 160px;- padding-top: 0px;- top:-18px;- left:10px;- z-index: 20;- background-color: #f90;- font-size : 70%;--}--.menutitle {- cursor:pointer;- padding: 3px 12px;- margin-left: 10px;- background-image: url('images/chapter.gif');- background-repeat: no-repeat;- background-position: center left;- font-weight : bold;---}--.menutitle:hover{text-decoration:underline;cursor: pointer;}--#menu .menuitemgroup {- margin: 0px 0px 6px 8px;- padding: 0px;- font-weight : bold; }--#menu .selectedmenuitemgroup{- margin: 0px 0px 0px 8px;- padding: 0px;- font-weight : normal;-- }--#menu .menuitem {- padding: 2px 0px 1px 13px;- background-image: url('images/page.gif');- background-repeat: no-repeat;- background-position: center left;- font-weight : normal;- margin-left: 10px;-}--#menu .menupage {- margin: 2px 0px 1px 10px;- padding: 0px 3px 0px 12px;- background-image: url('images/page.gif');- background-repeat: no-repeat;- background-position: center left;- font-style : normal;-}-#menu .menupagetitle {- padding: 0px 0px 0px 1px;- font-style : normal;- border-style: solid;- border-width: 1px;- margin-right: 10px;--}-#menu .menupageitemgroup {- padding: 3px 0px 4px 6px;- font-style : normal;- border-bottom: 1px solid ;- border-left: 1px solid ;- border-right: 1px solid ;- margin-right: 10px;-}-#menu .menupageitem {- font-style : normal;- font-weight : normal;- border-width: 0px;- font-size : 90%;-}-#menu #credit {- text-align: center;-}-#menu #credit2 {- text-align: center;- padding: 3px 3px 3px 3px;- background-color: #ffffff;-}-#menu .searchbox {- text-align: center;-}-#menu .searchbox form {- padding: 3px 3px;- margin: 0;-}-#menu .searchbox input {- font-size: 100%;-}--#content {- padding: 20px 20px 20px 180px;- margin: 0;- font : small Verdana, Helvetica, sans-serif;- font-size : 80%;-}--#content ul {- margin: 0;- padding: 0 25px;-}-#content li {- padding: 0 5px;-}-#feedback {- color: black;- background: #CFDCED;- text-align:center;- margin-top: 5px;-}-#feedback #feedbackto {- font-size: 90%;- color: black;-}-#footer {- clear: both;- position: relative; /* IE bugfix (http://www.dracos.co.uk/web/css/ie6floatbug/) */- width: 100%;- background: #CFDCED;- border-top: solid 1px #4C6C8F;- color: black;-}-#footer .copyright {- position: relative; /* IE bugfix cont'd */- padding: 5px;- margin: 0;- width: 45%;-}-#footer .lastmodified {- position: relative; /* IE bugfix cont'd */- float: right;- width: 45%;- padding: 5px;- margin: 0;- text-align: right;-}-#footer a { color: white; }--#footer #logos {- text-align: left;-}---/**- * Misc Styles- */--acronym { cursor: help; }-.boxed { background-color: #a5b6c6;}-.underlined_5 {border-bottom: solid 5px #4C6C8F;}-.underlined_10 {border-bottom: solid 10px #4C6C8F;}-/* ==================== snail trail ============================ */--.trail {- position: relative; /* IE bugfix cont'd */- font-size: 70%;- text-align: right;- float: right;- margin: -10px 5px 0px 5px;- padding: 0;-}--#motd-area {- position: relative; /* IE bugfix cont'd */- float: right;- width: 35%;- background-color: #f0f0ff;- border-top: solid 1px #4C6C8F;- border-bottom: solid 1px #4C6C8F;- margin-bottom: 15px;- margin-left: 15px;- margin-right: 10%;- padding-bottom: 5px;- padding-top: 5px;-}--#minitoc-area {- border-top: solid 1px #4C6C8F;- border-bottom: solid 1px #4C6C8F;- margin: 15px 10% 5px 15px;- /* margin-bottom: 15px;- margin-left: 15px;- margin-right: 10%;*/- padding-bottom: 7px;- padding-top: 5px;-}-.minitoc {- list-style-image: url('images/current.gif');- font-weight: normal;-}--li p {- margin: 0;- padding: 0;-}--.pdflink {- position: relative; /* IE bugfix cont'd */- float: right;- margin: 0px 5px;- padding: 0;-}-.pdflink br {- margin-top: -10px;- padding-left: 1px;-}-.pdflink a {- display: block;- font-size: 70%;- text-align: center;- margin: 0;- padding: 0;-}--.pdflink img {- display: block;- height: 16px;- width: 16px;-}-.xmllink {- position: relative; /* IE bugfix cont'd */- float: right;- margin: 0px 5px;- padding: 0;-}-.xmllink br {- margin-top: -10px;- padding-left: 1px;-}-.xmllink a {- display: block;- font-size: 70%;- text-align: center;- margin: 0;- padding: 0;-}--.xmllink img {- display: block;- height: 16px;- width: 16px;-}-.podlink {- position: relative; /* IE bugfix cont'd */- float: right;- margin: 0px 5px;- padding: 0;-}-.podlink br {- margin-top: -10px;- padding-left: 1px;-}-.podlink a {- display: block;- font-size: 70%;- text-align: center;- margin: 0;- padding: 0;-}--.podlink img {- display: block;- height: 16px;- width: 16px;-}--.printlink {- position: relative; /* IE bugfix cont'd */- float: right;-}-.printlink br {- margin-top: -10px;- padding-left: 1px;-}-.printlink a {- display: block;- font-size: 70%;- text-align: center;- margin: 0;- padding: 0;-}-.printlink img {- display: block;- height: 16px;- width: 16px;-}--p.instruction {- display: list-item;- list-style-image: url('../images/instruction_arrow.png');- list-style-position: outside;- margin-left: 2em;-}\ No newline at end of filediff --git a/lucene/site/build/site/skin/skinconf.xsl b/lucene/site/build/site/skin/skinconf.xsldeleted file mode 100644index 2f8df12903c..00000000000--- a/lucene/site/build/site/skin/skinconf.xsl+++ /dev/null@@ -1,137 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:template match="skinconfig">- <xsl:if test="not(colors)">- <colors>-<!-- Lenya -->- <color name="header" value="#ffffff"/>- <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>- <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>- <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="heading" value="#E5E4D9"/>- <color name="subheading" value="#E5E4D9"/>- <color name="published" value="#4C6C8F" font="#FFFFFF"/>- <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>- <color name="navstrip" value="#E5E4D9" font="#000000"/>- <color name="toolbox" value="#CFDCED" font="#000000"/>- <color name="border" value="#999999"/>- <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" />- <color name="menuheading" value="#cfdced" font="#000000" />- <color name="searchbox" value="#E5E4D9" font="#000000"/>- <color name="dialog" value="#E5E4D9" font="#000000"/>- <color name="body" value="#ffffff" />- <color name="table" value="#ccc"/>- <color name="table-cell" value="#ffffff"/>- <color name="highlight" value="#ffff00"/>- <color name="fixme" value="#cc6600"/>- <color name="note" value="#006699"/>- <color name="warning" value="#990000"/>- <color name="code" value="#003366"/>- <color name="footer" value="#E5E4D9"/>- </colors>- </xsl:if>- <xsl:copy>- <xsl:copy-of select="@*"/>- <xsl:copy-of select="node()[not(name(.)='colors')]"/>- <xsl:apply-templates select="colors"/>- </xsl:copy>- </xsl:template>- <xsl:template match="colors">- <xsl:copy>- <xsl:copy-of select="@*"/>- <xsl:copy-of select="node()[name(.)='color']"/>- <xsl:if test="not(color[@name='header'])">- <color name="header" value="#FFFFFF"/>- </xsl:if>- <xsl:if test="not(color[@name='tab-selected'])">- <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>- </xsl:if>- <xsl:if test="not(color[@name='tab-unselected'])">- <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='subtab-selected'])">- <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>- </xsl:if>- <xsl:if test="not(color[@name='subtab-unselected'])">- <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='heading'])">- <color name="heading" value="#E5E4D9"/>- </xsl:if>- <xsl:if test="not(color[@name='subheading'])">- <color name="subheading" value="#E5E4D9"/>- </xsl:if>- <xsl:if test="not(color[@name='feedback'])">- <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>- </xsl:if>- <xsl:if test="not(color[@name='published'])">- <color name="published" value="#4C6C8F" font="#FFFFFF"/>- </xsl:if>- <xsl:if test="not(color[@name='navstrip'])">- <color name="navstrip" value="#E5E4D9" font="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='toolbox'])">- <color name="toolbox" value="#CFDCED" font="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='border'])">- <color name="border" value="#999999"/>- </xsl:if>- <xsl:if test="not(color[@name='menu'])">- <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" />- </xsl:if>- <xsl:if test="not(color[@name='menuheading'])">- <color name="menuheading" value="#cfdced" font="#000000" />- </xsl:if>- <xsl:if test="not(color[@name='searchbox'])">- <color name="searchbox" value="#E5E4D9" font="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='dialog'])">- <color name="dialog" value="#E5E4D9" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='body'])">- <color name="body" value="#ffffff" />- </xsl:if>- <xsl:if test="not(color[@name='table'])">- <color name="table" value="#ccc"/>- </xsl:if>- <xsl:if test="not(color[@name='table-cell'])">- <color name="table-cell" value="#ffffff"/>- </xsl:if>- <xsl:if test="not(color[@name='highlight'])">- <color name="highlight" value="#ffff00"/>- </xsl:if>- <xsl:if test="not(color[@name='fixme'])">- <color name="fixme" value="#c60"/>- </xsl:if>- <xsl:if test="not(color[@name='note'])">- <color name="note" value="#069"/>- </xsl:if>- <xsl:if test="not(color[@name='warning'])">- <color name="warning" value="#900"/>- </xsl:if>- <xsl:if test="not(color[@name='code'])">- <color name="code" value="#a5b6c6"/>- </xsl:if>- <xsl:if test="not(color[@name='footer'])">- <color name="footer" value="#E5E4D9"/>- </xsl:if>- </xsl:copy>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/build/site/systemrequirements.html b/lucene/site/build/site/systemrequirements.htmldeleted file mode 100644index 895464176fc..00000000000--- a/lucene/site/build/site/systemrequirements.html+++ /dev/null@@ -1,299 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-<html>-<head>-<META http-equiv="Content-Type" content="text/html; charset=UTF-8">-<meta content="Apache Forrest" name="Generator">-<meta name="Forrest-version" content="0.9">-<meta name="Forrest-skin-name" content="lucene">-<title>Apache Lucene - System Requirements</title>-<link type="text/css" href="skin/basic.css" rel="stylesheet">-<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">-<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">-<link type="text/css" href="skin/profile.css" rel="stylesheet">-<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>-<link rel="shortcut icon" href="images/favicon.ico">-</head>-<body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<div id="top">-<!--+- |breadtrail- +-->-<div class="breadtrail">-<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>-</div>-<!--+- |header- +-->-<div class="header">-<!--+- |start group logo- +-->-<div class="grouplogo">-<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>-</div>-<!--+- |end group logo- +-->-<!--+- |start Project Logo- +-->-<div class="projectlogo">-<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>-</div>-<!--+- |end Project Logo- +-->-<!--+- |start Search- +-->-<div class="searchbox">-<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">-<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene"> - <input name="Search" value="Search" type="submit">-</form>-<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>-</div>-</div>-<!--+- |end search- +-->-<!--+- |start Tabs- +-->-<ul id="tabs">-<li class="current">-<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>-</li>-<li>-<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>-</li>-<li class="current">-<a class="selected" href="index.html">Lucene 4.0 Documentation</a>-</li>-</ul>-<!--+- |end Tabs- +-->-</div>-</div>-<div id="main">-<div id="publishedStrip">-<!--+- |start Subtabs- +-->-<div id="level2tabs"></div>-<!--+- |end Endtabs- +-->-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<!--+- |breadtrail- +-->-<div class="breadtrail">-- - </div>-<!--+- |start Menu, mainarea- +-->-<!--+- |start Menu- +-->-<div id="menu">-<div onclick="SwitchMenu('menu_selected_1.1', 'skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('skin/images/chapter_open.gif');">Documentation</div>-<div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;">-<div class="menuitem">-<a href="index.html">Overview</a>-</div>-<div class="menuitem">-<a href="changes/Changes.html">Changes</a>-</div>-<div onclick="SwitchMenu('menu_1.1.3', 'skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>-<div id="menu_1.1.3" class="menuitemgroup">-<div class="menuitem">-<a href="api/core/index.html">Core</a>-</div>-<div class="menuitem">-<a href="api/analyzers-common/index.html">Analysis: Common</a>-</div>-<div class="menuitem">-<a href="api/analyzers-kuromoji/index.html">Analysis: Kuromoji (Japanese)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-morfologik/index.html">Analysis: Morfologik (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-phonetic/index.html">Analysis: Phonetic</a>-</div>-<div class="menuitem">-<a href="api/analyzers-smartcn/index.html">Analysis: Smart Chinese</a>-</div>-<div class="menuitem">-<a href="api/analyzers-stempel/index.html">Analysis: Stempel (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-uima/index.html">Analysis: UIMA</a>-</div>-<div class="menuitem">-<a href="api/benchmark/index.html">Benchmark</a>-</div>-<div class="menuitem">-<a href="api/demo/index.html">Demo</a>-</div>-<div class="menuitem">-<a href="api/facet/index.html">Faceting</a>-</div>-<div class="menuitem">-<a href="api/grouping/index.html">Grouping</a>-</div>-<div class="menuitem">-<a href="api/highlighter/index.html">Highlighter</a>-</div>-<div class="menuitem">-<a href="api/join/index.html">Join</a>-</div>-<div class="menuitem">-<a href="api/memory/index.html">Memory</a>-</div>-<div class="menuitem">-<a href="api/misc/index.html">Miscellaneous</a>-</div>-<div class="menuitem">-<a href="api/queries/index.html">Queries</a>-</div>-<div class="menuitem">-<a href="api/queryparser/index.html">Query Parsers</a>-</div>-<div class="menuitem">-<a href="api/sandbox/index.html">Sandbox</a>-</div>-<div class="menuitem">-<a href="api/spatial/index.html">Spatial</a>-</div>-<div class="menuitem">-<a href="api/suggest/index.html">Suggest / Spellcheck</a>-</div>-<div class="menuitem">-<a href="api/test-framework/index.html">Test Framework</a>-</div>-</div>-<div class="menupage">-<div class="menupagetitle">System Requirements</div>-</div>-<div class="menuitem">-<a href="contributions.html">Contributions</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>-</div>-<div class="menuitem">-<a href="fileformats.html">File Formats</a>-</div>-<div class="menuitem">-<a href="gettingstarted.html">Getting Started</a>-</div>-<div class="menuitem">-<a href="queryparsersyntax.html">Query Syntax</a>-</div>-<div class="menuitem">-<a href="scoring.html">Scoring</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java">Wiki</a>-</div>-<div class="menuitem">-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a>-</div>-</div>-<div id="credit"></div>-<div id="roundbottom">-<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>-<!--+- |alternative credits- +-->-<div id="credit2"></div>-</div>-<!--+- |end Menu- +-->-<!--+- |start content- +-->-<div id="content">-<h1>Apache Lucene - System Requirements</h1>-<div id="minitoc-area">-<ul class="minitoc">-<li>-<a href="#System Requirements">System Requirements</a>-</li>-</ul>-</div>- <!-- <section id="Code Coverage"><title>Code Coverage</title>- <p>Code Coverage reports are available <a- href="">here</a></p>- </section> -->--<a name="N10013"></a><a name="System Requirements"></a>-<h2 class="boxed">System Requirements</h2>-<div class="section">-<p>- Lucene Core has the following minimum requirements:- <ul>--<li>Java 1.6.x or greater.</li>--<li>ANT 1.7.0 or greater.</li>--<li>CPU, Disk and Memory requirements are based on the many choices made in implementing Lucene (document size, number of documents, and number of hits retrieved to name a few.)</li>--</ul>--</p>-<p>Some modules may have other requirements, refer to their documentation and build files for information.</p>-</div>----</div>-<!--+- |end content- +-->-<div class="clearboth"> </div>-</div>-<div id="footer">-<!--+- |start bottomstrip- +-->-<div class="lastmodified">-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<div class="copyright">- Copyright ©- 2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>-</div>-<!--+- |end bottomstrip- +-->-</div>-<script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();--</script>-</body>-</html>diff --git a/lucene/site/forrest.properties b/lucene/site/forrest.propertiesdeleted file mode 100755index 63f08f9d2de..00000000000--- a/lucene/site/forrest.properties+++ /dev/null@@ -1,130 +0,0 @@-# Copyright 2002-2005 The Apache Software Foundation or its licensors,-# as applicable.-#-# 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.--##############-# Properties used by forrest.build.xml for building the website-# These are the defaults, un-comment them only if you need to change them.-##############--# Prints out a summary of Forrest settings for this project-#forrest.echo=true--# Project name (used to name .war file)-#project.name=my-project--# Specifies name of Forrest skin to use-# See list at http://forrest.apache.org/docs/skins.html-project.skin=lucene--# Descriptors for plugins and skins-# comma separated list, file:// is supported-#forrest.skins.descriptors=http://forrest.apache.org/skins/skins.xml,file:///c:/myskins/skins.xml-#forrest.plugins.descriptors=http://forrest.apache.org/plugins/plugins.xml,http://forrest.apache.org/plugins/whiteboard-plugins.xml--##############-# behavioural properties-#project.menu-scheme=tab_attributes-#project.menu-scheme=directories--##############-# layout properties--# Properties that can be set to override the default locations-#-# Parent properties must be set. This usually means uncommenting-# project.content-dir if any other property using it is uncommented--#project.status=status.xml-#project.content-dir=src/documentation-#project.raw-content-dir=${project.content-dir}/content-#project.conf-dir=${project.content-dir}/conf-#project.sitemap-dir=${project.content-dir}-#project.xdocs-dir=${project.content-dir}/content/xdocs-#project.resources-dir=${project.content-dir}/resources-#project.stylesheets-dir=${project.resources-dir}/stylesheets-#project.images-dir=${project.resources-dir}/images-#project.schema-dir=${project.resources-dir}/schema-#project.skins-dir=${project.content-dir}/skins-#project.skinconf=${project.content-dir}/skinconf.xml-#project.lib-dir=${project.content-dir}/lib-#project.classes-dir=${project.content-dir}/classes-#project.translations-dir=${project.content-dir}/translations-project.configfile=${project.home}/src/documentation/conf/cli.xconf--##############-# validation properties--# This set of properties determine if validation is performed-# Values are inherited unless overridden.-# e.g. if forrest.validate=false then all others are false unless set to true.-#forrest.validate=true-#forrest.validate.xdocs=${forrest.validate}-#forrest.validate.skinconf=${forrest.validate}-#forrest.validate.sitemap=${forrest.validate}-#forrest.validate.stylesheets=${forrest.validate}-#forrest.validate.skins=${forrest.validate}-#forrest.validate.skins.stylesheets=${forrest.validate.skins}--# *.failonerror=(true|false) - stop when an XML file is invalid-#forrest.validate.failonerror=true--# *.excludes=(pattern) - comma-separated list of path patterns to not validate-# e.g.-#forrest.validate.xdocs.excludes=samples/subdir/**, samples/faq.xml-#forrest.validate.xdocs.excludes=---##############-# General Forrest properties--# The URL to start crawling from-#project.start-uri=linkmap.html--# Set logging level for messages printed to the console-# (DEBUG, INFO, WARN, ERROR, FATAL_ERROR)-#project.debuglevel=ERROR--# Max memory to allocate to Java-#forrest.maxmemory=64m--# Any other arguments to pass to the JVM. For example, to run on an X-less-# server, set to -Djava.awt.headless=true-#forrest.jvmargs=--# The bugtracking URL - the issue number will be appended-#project.bugtracking-url=http://issues.apache.org/bugzilla/show_bug.cgi?id=-#project.bugtracking-url=http://issues.apache.org/jira/browse/--# The issues list as rss-#project.issues-rss-url=--#I18n Property. Based on the locale request for the browser.-#If you want to use it for static site then modify the JVM system.language-# and run once per language-#project.i18n=true--# The names of plugins that are required to build the project-# comma separated list (no spaces)-# You can request a specific version by appending "-VERSION" to the end of-# the plugin name. If you exclude a version number the latest released version-# will be used, however, be aware that this may be a development version. In-# a production environment it is recomended that you specify a known working-# version.-# Run "forrest available-plugins" for a list of plug-ins currently available-#project.required.plugins=org.apache.forrest.plugin.output.pdf--# Proxy configuration-# proxy.host=-# proxy.port=diff --git a/lucene/site/html/demo.html b/lucene/site/html/demo.htmlnew file mode 100644index 00000000000..102cc752713--- /dev/null+++ b/lucene/site/html/demo.html@@ -0,0 +1,72 @@+<html>+<head>+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">+<title>Apache Lucene - Building and Installing the Basic Demo</title>+</head>+<body>+<h1>Apache Lucene - Building and Installing the Basic Demo</h1>+<div id="minitoc-area">+<ul class="minitoc">+<li><a href="#About%20this%20Document">About this Document</a></li>+<li><a href="#About%20the%20Demo">About the Demo</a></li>+<li><a href="#Setting%20your%20CLASSPATH">Setting your CLASSPATH</a></li>+<li><a href="#Indexing%20Files">Indexing Files</a></li>+<li><a href="#About%20the%20code...">About the code...</a></li>+</ul>+</div>+<a name="N10013" id="N10013"></a><a name="About this Document"></a>+<h2 class="boxed">About this Document</h2>+<div class="section">+<p>This document is intended as a "getting started" guide to using and running+the Lucene demos. It walks you through some basic installation and+configuration.</p>+</div>+<a name="N1001C" id="N1001C"></a><a name="About the Demo"></a>+<h2 class="boxed">About the Demo</h2>+<div class="section">+<p>The Lucene command-line demo code consists of an application that+demonstrates various functionalities of Lucene and how you can add Lucene to+your applications.</p>+</div>+<a name="N10025" id="N10025"></a><a name="Setting your CLASSPATH"></a>+<h2 class="boxed">Setting your CLASSPATH</h2>+<div class="section">+<p>First, you should <a href=+"http://www.apache.org/dyn/closer.cgi/lucene/java/">download</a> the latest+Lucene distribution and then extract it to a working directory.</p>+<p>You need three JARs: the Lucene JAR, the common analysis JAR, and the Lucene+demo JAR. You should see the Lucene JAR file in the core/ directory you created+when you extracted the archive -- it should be named something like+<span class="codefrag">lucene-core-{version}.jar</span>. You should also see+files called <span class=+"codefrag">lucene-analyzers-common-{version}.jar</span> and <span class=+"codefrag">lucene-demo-{version}.jar</span> under analysis/common/ and demo/,+respectively.</p>+<p>Put all three of these files in your Java CLASSPATH.</p>+</div>+<a name="N10041" id="N10041"></a><a name="Indexing Files"></a>+<h2 class="boxed">Indexing Files</h2>+<div class="section">+<p>Once you've gotten this far you're probably itching to go. Let's <b>build an+index!</b> Assuming you've set your CLASSPATH correctly, just type:</p>+<pre>+ java org.apache.lucene.demo.IndexFiles -docs {path-to-lucene}/src+</pre>+This will produce a subdirectory called <span class="codefrag">index</span>+which will contain an index of all of the Lucene source code.+<p>To <b>search the index</b> type:</p>+<pre>+ java org.apache.lucene.demo.SearchFiles+</pre>+You'll be prompted for a query. Type in a swear word and press the enter key.+You'll see that the Lucene developers are very well mannered and get no+results. Now try entering the word "string". That should return a whole bunch+of documents. The results will page at every tenth result and ask you whether+you want more results.</div>+<a name="N1005C" id="N1005C"></a><a name="About the code..."></a>+<h2 class="boxed">About the code...</h2>+<div class="section">+<p><a href="demo2.html">read on>>></a></p>+</div>+</body>+</html>diff --git a/lucene/site/html/demo2.html b/lucene/site/html/demo2.htmlnew file mode 100644index 00000000000..8c7a74ce66e--- /dev/null+++ b/lucene/site/html/demo2.html@@ -0,0 +1,148 @@+<html>+<head>+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">+<title>Apache Lucene - Basic Demo Sources Walk-through</title>+</head>+<body>+<h1>Apache Lucene - Basic Demo Sources Walk-through</h1>+<div id="minitoc-area">+<ul class="minitoc">+<li><a href="#About%20the%20Code">About the Code</a></li>+<li><a href="#Location%20of%20the%20source">Location of the source</a></li>+<li><a href="#IndexFiles">IndexFiles</a></li>+<li><a href="#Searching%20Files">Searching Files</a></li>+</ul>+</div>+<a name="N10013" id="N10013"></a><a name="About the Code"></a>+<h2 class="boxed">About the Code</h2>+<div class="section">+<p>In this section we walk through the sources behind the command-line Lucene+demo: where to find them, their parts and their function. This section is+intended for Java developers wishing to understand how to use Lucene in their+applications.</p>+</div>+<a name="N1001C" id="N1001C"></a><a name="Location of the source"></a>+<h2 class="boxed">Location of the source</h2>+<div class="section">+<p>NOTE: to examine the sources, you need to download and extract a source+checkout of Lucene: (lucene-{version}-src.zip).</p>+<p>Relative to the directory created when you extracted Lucene, you should see+a directory called <span class="codefrag">lucene/demo/</span>. This is the root+for the Lucene demo. Under this directory is <span class=+"codefrag">src/java/org/apache/lucene/demo/</span>. This is where all the Java+sources for the demo live.</p>+<p>Within this directory you should see the <span class=+"codefrag">IndexFiles.java</span> class we executed earlier. Bring it up in+<span class="codefrag">vi</span> or your editor of choice and let's take a look+at it.</p>+</div>+<a name="N10037" id="N10037"></a><a name="IndexFiles" id="IndexFiles"></a>+<h2 class="boxed">IndexFiles</h2>+<div class="section">+<p>As we discussed in the previous walk-through, the <a href=+"api/demo/org/apache/lucene/demo/IndexFiles.html">IndexFiles</a> class creates+a Lucene Index. Let's take a look at how it does this.</p>+<p>The <span class="codefrag">main()</span> method parses the command-line+parameters, then in preparation for instantiating <a href=+"api/core/org/apache/lucene/index/IndexWriter.html">IndexWriter</a>, opens a+<a href="api/core/org/apache/lucene/store/Directory.html">Directory</a> and+instantiates <a href=+"api/analyzers-common/org/apache/lucene/analysis/standard/StandardAnalyzer.html">+StandardAnalyzer</a> and <a href=+"api/core/org/apache/lucene/index/IndexWriterConfig.html">IndexWriterConfig</a>.</p>+<p>The value of the <span class="codefrag">-index</span> command-line parameter+is the name of the filesystem directory where all index information should be+stored. If <span class="codefrag">IndexFiles</span> is invoked with a relative+path given in the <span class="codefrag">-index</span> command-line parameter,+or if the <span class="codefrag">-index</span> command-line parameter is not+given, causing the default relative index path "<span class=+"codefrag">index</span>" to be used, the index path will be created as a+subdirectory of the current working directory (if it does not already exist).+On some platforms, the index path may be created in a different directory (such+as the user's home directory).</p>+<p>The <span class="codefrag">-docs</span> command-line parameter value is the+location of the directory containing files to be indexed.</p>+<p>The <span class="codefrag">-update</span> command-line parameter tells+<span class="codefrag">IndexFiles</span> not to delete the index if it already+exists. When <span class="codefrag">-update</span> is not given, <span class=+"codefrag">IndexFiles</span> will first wipe the slate clean before indexing+any documents.</p>+<p>Lucene <a href=+"api/core/org/apache/lucene/store/Directory.html">Directory</a>s are used by+the <span class="codefrag">IndexWriter</span> to store information in the+index. In addition to the <a href=+"api/core/org/apache/lucene/store/FSDirectory.html">FSDirectory</a>+implementation we are using, there are several other <span class=+"codefrag">Directory</span> subclasses that can write to RAM, to databases,+etc.</p>+<p>Lucene <a href=+"api/core/org/apache/lucene/analysis/Analyzer.html">Analyzer</a>s are+processing pipelines that break up text into indexed tokens, a.k.a. terms, and+optionally perform other operations on these tokens, e.g. downcasing, synonym+insertion, filtering out unwanted tokens, etc. The <span class=+"codefrag">Analyzer</span> we are using is <span class=+"codefrag">StandardAnalyzer</span>, which creates tokens using the Word Break+rules from the Unicode Text Segmentation algorithm specified in <a href=+"http://unicode.org/reports/tr29/">Unicode Standard Annex #29</a>; converts+tokens to lowercase; and then filters out stopwords. Stopwords are common+language words such as articles (a, an, the, etc.) and other tokens that may+have less value for searching. It should be noted that there are different+rules for every language, and you should use the proper analyzer for each.+Lucene currently provides Analyzers for a number of different languages (see+the javadocs under <a href=+"api/analyzers-common/org/apache/lucene/analysis/">lucene/analysis/common/src/java/org/apache/lucene/analysis</a>).</p>+<p>The <span class="codefrag">IndexWriterConfig</span> instance holds all+configuration for <span class="codefrag">IndexWriter</span>. For example, we+set the <span class="codefrag">OpenMode</span> to use here based on the value+of the <span class="codefrag">-update</span> command-line parameter.</p>+<p>Looking further down in the file, after <span class=+"codefrag">IndexWriter</span> is instantiated, you should see the <span class=+"codefrag">indexDocs()</span> code. This recursive function crawls the+directories and creates <a href=+"api/core/org/apache/lucene/document/Document.html">Document</a> objects. The+<span class="codefrag">Document</span> is simply a data object to represent the+text content from the file as well as its creation time and location. These+instances are added to the <span class="codefrag">IndexWriter</span>. If the+<span class="codefrag">-update</span> command-line parameter is given, the+<span class="codefrag">IndexWriter</span> <span class=+"codefrag">OpenMode</span> will be set to <span class=+"codefrag">OpenMode.CREATE_OR_APPEND</span>, and rather than adding documents+to the index, the <span class="codefrag">IndexWriter</span> will+<strong>update</strong> them in the index by attempting to find an+already-indexed document with the same identifier (in our case, the file path+serves as the identifier); deleting it from the index if it exists; and then+adding the new document to the index.</p>+</div>+<a name="N100DB" id="N100DB"></a><a name="Searching Files"></a>+<h2 class="boxed">Searching Files</h2>+<div class="section">+<p>The <a href=+"api/demo/org/apache/lucene/demo/SearchFiles.html">SearchFiles</a> class is+quite simple. It primarily collaborates with an <a href=+"api/core/org/apache/lucene/search/IndexSearcher.html">IndexSearcher</a>,+<a href=+"api/analyzers-common/org/apache/lucene/analysis/standard/StandardAnalyzer.html">+StandardAnalyzer</a> (which is used in the <a href=+"api/demo/org/apache/lucene/demo/IndexFiles.html">IndexFiles</a> class as well)+and a <a href=+"api/core/org/apache/lucene/queryParser/QueryParser.html">QueryParser</a>. The+query parser is constructed with an analyzer used to interpret your query text+in the same way the documents are interpreted: finding word boundaries,+downcasing, and removing useless words like 'a', 'an' and 'the'. The <a href=+"api/core/org/apache/lucene/search/Query.html">Query</a> object contains the+results from the <a href=+"api/core/org/apache/lucene/queryParser/QueryParser.html">QueryParser</a> which+is passed to the searcher. Note that it's also possible to programmatically+construct a rich <a href=+"api/core/org/apache/lucene/search/Query.html">Query</a> object without using+the query parser. The query parser just enables decoding the <a href=+"queryparsersyntax.html">Lucene query syntax</a> into the corresponding+<a href="api/core/org/apache/lucene/search/Query.html">Query</a> object.</p>+<p><span class="codefrag">SearchFiles</span> uses the <span class=+"codefrag">IndexSearcher.search(query,n)</span> method that returns <a href=+"api/core/org/apache/lucene/search/TopDocs.html">TopDocs</a> with max+<span class="codefrag">n</span> hits. The results are printed in pages, sorted+by score (i.e. relevance).</p>+</div>+</body>+</html>diff --git a/lucene/site/html/fileformats.html b/lucene/site/html/fileformats.htmlnew file mode 100644index 00000000000..3ce4940caee--- /dev/null+++ b/lucene/site/html/fileformats.html@@ -0,0 +1,1120 @@+<html>+<head>+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">+<title>Apache Lucene - Index File Formats</title>++<style type="text/css">+ p.c6 {margin-left: -0.47cm; margin-right: 0.01cm; text-align: right}+ p.c5 {margin-left: -0.07cm; margin-right: 0.01cm; text-align: right}+ p.c4 {margin-left: 0.11cm; margin-right: 0.01cm; text-align: right}+ p.c3 {text-align: right}+ p.c2 {font-weight: bold; text-align: right}+ p.c1 {font-weight: bold}+</style>+</head>+<body>+<h1>Apache Lucene - Index File Formats</h1>+<div id="minitoc-area">+<ul class="minitoc">+<li><a href="#Index%20File%20Formats">Index File Formats</a></li>+<li><a href="#Definitions">Definitions</a>+<ul class="minitoc">+<li><a href="#Inverted%20Indexing">Inverted Indexing</a></li>+<li><a href="#Types%20of%20Fields">Types of Fields</a></li>+<li><a href="#Segments">Segments</a></li>+<li><a href="#Document%20Numbers">Document Numbers</a></li>+</ul>+</li>+<li><a href="#Overview">Overview</a></li>+<li><a href="#File%20Naming">File Naming</a></li>+<li><a href="#file-names">Summary of File Extensions</a></li>+<li><a href="#Primitive%20Types">Primitive Types</a>+<ul class="minitoc">+<li><a href="#Byte">Byte</a></li>+<li><a href="#UInt32">UInt32</a></li>+<li><a href="#Uint64">Uint64</a></li>+<li><a href="#VInt">VInt</a></li>+<li><a href="#Chars">Chars</a></li>+<li><a href="#String">String</a></li>+</ul>+</li>+<li><a href="#Compound%20Types">Compound Types</a>+<ul class="minitoc">+<li><a href="#MapStringString">Map<String,String></a></li>+</ul>+</li>+<li><a href="#Per-Index%20Files">Per-Index Files</a>+<ul class="minitoc">+<li><a href="#Segments%20File">Segments File</a></li>+<li><a href="#Lock%20File">Lock File</a></li>+<li><a href="#Deletable%20File">Deletable File</a></li>+<li><a href="#Compound%20Files">Compound Files</a></li>+</ul>+</li>+<li><a href="#Per-Segment%20Files">Per-Segment Files</a>+<ul class="minitoc">+<li><a href="#Fields">Fields</a></li>+<li><a href="#Term%20Dictionary">Term Dictionary</a></li>+<li><a href="#Frequencies">Frequencies</a></li>+<li><a href="#Positions">Positions</a></li>+<li><a href="#Normalization%20Factors">Normalization Factors</a></li>+<li><a href="#Term%20Vectors">Term Vectors</a></li>+<li><a href="#Deleted%20Documents">Deleted Documents</a></li>+</ul>+</li>+<li><a href="#Limitations">Limitations</a></li>+</ul>+</div>+<a name="N1000C" id="N1000C"></a><a name="Index File Formats"></a>+<h2 class="boxed">Index File Formats</h2>+<div class="section">+<p>This document defines the index file formats used in this version of Lucene.+If you are using a different version of Lucene, please consult the copy of+<span class="codefrag">docs/fileformats.html</span> that was distributed with+the version you are using.</p>+<p>Apache Lucene is written in Java, but several efforts are underway to write+<a href="http://wiki.apache.org/lucene-java/LuceneImplementations">versions of+Lucene in other programming languages</a>. If these versions are to remain+compatible with Apache Lucene, then a language-independent definition of the+Lucene index format is required. This document thus attempts to provide a+complete and independent definition of the Apache Lucene file formats.</p>+<p>As Lucene evolves, this document should evolve. Versions of Lucene in+different programming languages should endeavor to agree on file formats, and+generate new versions of this document.</p>+<p>Compatibility notes are provided in this document, describing how file+formats have changed from prior versions.</p>+<p>In version 2.1, the file format was changed to allow lock-less commits (ie,+no more commit lock). The change is fully backwards compatible: you can open a+pre-2.1 index for searching or adding/deleting of docs. When the new segments+file is saved (committed), it will be written in the new file format (meaning+no specific "upgrade" process is needed). But note that once a commit has+occurred, pre-2.1 Lucene will not be able to read the index.</p>+<p>In version 2.3, the file format was changed to allow segments to share a+single set of doc store (vectors & stored fields) files. This allows for+faster indexing in certain cases. The change is fully backwards compatible (in+the same way as the lock-less commits change in 2.1).</p>+<p>In version 2.4, Strings are now written as true UTF-8 byte sequence, not+Java's modified UTF-8. See issue LUCENE-510 for details.</p>+<p>In version 2.9, an optional opaque Map<String,String> CommitUserData+may be passed to IndexWriter's commit methods (and later retrieved), which is+recorded in the segments_N file. See issue LUCENE-1382 for details. Also,+diagnostics were added to each segment written recording details about why it+was written (due to flush, merge; which OS/JRE was used; etc.). See issue+LUCENE-1654 for details.</p>+<p>In version 3.0, compressed fields are no longer written to the index (they+can still be read, but on merge the new segment will write them, uncompressed).+See issue LUCENE-1960 for details.</p>+<p>In version 3.1, segments records the code version that created them. See+LUCENE-2720 for details. Additionally segments track explicitly whether or not+they have term vectors. See LUCENE-2811 for details.</p>+<p>In version 3.2, numeric fields are written as natively to stored fields+file, previously they were stored in text format only.</p>+<p>In version 3.4, fields can omit position data while still indexing term+frequencies.</p>+</div>+<a name="N1003D" id="N1003D"></a><a name="Definitions" id="Definitions"></a>+<h2 class="boxed">Definitions</h2>+<div class="section">+<p>The fundamental concepts in Lucene are index, document, field and term.</p>+<p>An index contains a sequence of documents.</p>+<ul>+<li>+<p>A document is a sequence of fields.</p>+</li>+<li>+<p>A field is a named sequence of terms.</p>+</li>+<li>A term is a string.</li>+</ul>+<p>The same string in two different fields is considered a different term. Thus+terms are represented as a pair of strings, the first naming the field, and the+second naming text within the field.</p>+<a name="N1005D" id="N1005D"></a><a name="Inverted Indexing"></a>+<h3 class="boxed">Inverted Indexing</h3>+<p>The index stores statistics about terms in order to make term-based search+more efficient. Lucene's index falls into the family of indexes known as an+<i>inverted index.</i> This is because it can list, for a term, the documents+that contain it. This is the inverse of the natural relationship, in which+documents list terms.</p>+<a name="N10069" id="N10069"></a><a name="Types of Fields"></a>+<h3 class="boxed">Types of Fields</h3>+<p>In Lucene, fields may be <i>stored</i>, in which case their text is stored+in the index literally, in a non-inverted manner. Fields that are inverted are+called <i>indexed</i>. A field may be both stored and indexed.</p>+<p>The text of a field may be <i>tokenized</i> into terms to be indexed, or the+text of a field may be used literally as a term to be indexed. Most fields are+tokenized, but sometimes it is useful for certain identifier fields to be+indexed literally.</p>+<p>See the <a href="api/core/org/apache/lucene/document/Field.html">Field</a>+java docs for more information on Fields.</p>+<a name="N10086" id="N10086"></a><a name="Segments" id="Segments"></a>+<h3 class="boxed">Segments</h3>+<p>Lucene indexes may be composed of multiple sub-indexes, or <i>segments</i>.+Each segment is a fully independent index, which could be searched separately.+Indexes evolve by:</p>+<ol>+<li>+<p>Creating new segments for newly added documents.</p>+</li>+<li>+<p>Merging existing segments.</p>+</li>+</ol>+<p>Searches may involve multiple segments and/or multiple indexes, each index+potentially composed of a set of segments.</p>+<a name="N100A4" id="N100A4"></a><a name="Document Numbers"></a>+<h3 class="boxed">Document Numbers</h3>+<p>Internally, Lucene refers to documents by an integer <i>document number</i>.+The first document added to an index is numbered zero, and each subsequent+document added gets a number one greater than the previous.</p>+<p><br></p>+<p>Note that a document's number may change, so caution should be taken when+storing these numbers outside of Lucene. In particular, numbers may change in+the following situations:</p>+<ul>+<li>+<p>The numbers stored in each segment are unique only within the segment, and+must be converted before they can be used in a larger context. The standard+technique is to allocate each segment a range of values, based on the range of+numbers used in that segment. To convert a document number from a segment to an+external value, the segment's <i>base</i> document number is added. To convert+an external value back to a segment-specific value, the segment is identified+by the range that the external value is in, and the segment's base value is+subtracted. For example two five document segments might be combined, so that+the first segment has a base value of zero, and the second of five. Document+three from the second segment would have an external value of eight.</p>+</li>+<li>+<p>When documents are deleted, gaps are created in the numbering. These are+eventually removed as the index evolves through merging. Deleted documents are+dropped when segments are merged. A freshly-merged segment thus has no gaps in+its numbering.</p>+</li>+</ul>+</div>+<a name="N100CB" id="N100CB"></a><a name="Overview" id="Overview"></a>+<h2 class="boxed">Overview</h2>+<div class="section">+<p>Each segment index maintains the following:</p>+<ul>+<li>+<p>Field names. This contains the set of field names used in the index.</p>+</li>+<li>+<p>Stored Field values. This contains, for each document, a list of+attribute-value pairs, where the attributes are field names. These are used to+store auxiliary information about the document, such as its title, url, or an+identifier to access a database. The set of stored fields are what is returned+for each hit when searching. This is keyed by document number.</p>+</li>+<li>+<p>Term dictionary. A dictionary containing all of the terms used in all of the+indexed fields of all of the documents. The dictionary also contains the number+of documents which contain the term, and pointers to the term's frequency and+proximity data.</p>+</li>+<li>+<p>Term Frequency data. For each term in the dictionary, the numbers of all the+documents that contain that term, and the frequency of the term in that+document, unless frequencies are omitted (IndexOptions.DOCS_ONLY)</p>+</li>+<li>+<p>Term Proximity data. For each term in the dictionary, the positions that the+term occurs in each document. Note that this will not exist if all fields in+all documents omit position data.</p>+</li>+<li>+<p>Normalization factors. For each field in each document, a value is stored+that is multiplied into the score for hits on that field.</p>+</li>+<li>+<p>Term Vectors. For each field in each document, the term vector (sometimes+called document vector) may be stored. A term vector consists of term text and+term frequency. To add Term Vectors to your index see the <a href=+"api/core/org/apache/lucene/document/Field.html">Field</a> constructors</p>+</li>+<li>+<p>Deleted documents. An optional file indicating which documents are+deleted.</p>+</li>+</ul>+<p>Details on each of these are provided in subsequent sections.</p>+</div>+<a name="N1010E" id="N1010E"></a><a name="File Naming"></a>+<h2 class="boxed">File Naming</h2>+<div class="section">+<p>All files belonging to a segment have the same name with varying extensions.+The extensions correspond to the different file formats described below. When+using the Compound File format (default in 1.4 and greater) these files are+collapsed into a single .cfs file (see below for details)</p>+<p>Typically, all segments in an index are stored in a single directory,+although this is not required.</p>+<p>As of version 2.1 (lock-less commits), file names are never re-used (there+is one exception, "segments.gen", see below). That is, when any file is saved+to the Directory it is given a never before used filename. This is achieved+using a simple generations approach. For example, the first segments file is+segments_1, then segments_2, etc. The generation is a sequential long integer+represented in alpha-numeric (base 36) form.</p>+</div>+<a name="N1011D" id="N1011D"></a><a name="file-names" id="file-names"></a>+<h2 class="boxed">Summary of File Extensions</h2>+<div class="section">+<p>The following table summarizes the names and extensions of the files in+Lucene:</p>+<table class="ForrestTable" cellspacing="1" cellpadding="4">+<tr>+<th>Name</th>+<th>Extension</th>+<th>Brief Description</th>+</tr>+<tr>+<td><a href="#Segments%20File">Segments File</a></td>+<td>segments.gen, segments_N</td>+<td>Stores information about segments</td>+</tr>+<tr>+<td><a href="#Lock%20File">Lock File</a></td>+<td>write.lock</td>+<td>The Write lock prevents multiple IndexWriters from writing to the same+file.</td>+</tr>+<tr>+<td><a href="#Compound%20Files">Compound File</a></td>+<td>.cfs</td>+<td>An optional "virtual" file consisting of all the other index files for+systems that frequently run out of file handles.</td>+</tr>+<tr>+<td><a href="#Compound%20File">Compound File Entry table</a></td>+<td>.cfe</td>+<td>The "virtual" compound file's entry table holding all entries in the+corresponding .cfs file (Since 3.4)</td>+</tr>+<tr>+<td><a href="#Fields">Fields</a></td>+<td>.fnm</td>+<td>Stores information about the fields</td>+</tr>+<tr>+<td><a href="#field_index">Field Index</a></td>+<td>.fdx</td>+<td>Contains pointers to field data</td>+</tr>+<tr>+<td><a href="#field_data">Field Data</a></td>+<td>.fdt</td>+<td>The stored fields for documents</td>+</tr>+<tr>+<td><a href="#tis">Term Infos</a></td>+<td>.tis</td>+<td>Part of the term dictionary, stores term info</td>+</tr>+<tr>+<td><a href="#tii">Term Info Index</a></td>+<td>.tii</td>+<td>The index into the Term Infos file</td>+</tr>+<tr>+<td><a href="#Frequencies">Frequencies</a></td>+<td>.frq</td>+<td>Contains the list of docs which contain each term along with frequency</td>+</tr>+<tr>+<td><a href="#Positions">Positions</a></td>+<td>.prx</td>+<td>Stores position information about where a term occurs in the index</td>+</tr>+<tr>+<td><a href="#Normalization%20Factors">Norms</a></td>+<td>.nrm</td>+<td>Encodes length and boost factors for docs and fields</td>+</tr>+<tr>+<td><a href="#tvx">Term Vector Index</a></td>+<td>.tvx</td>+<td>Stores offset into the document data file</td>+</tr>+<tr>+<td><a href="#tvd">Term Vector Documents</a></td>+<td>.tvd</td>+<td>Contains information about each document that has term vectors</td>+</tr>+<tr>+<td><a href="#tvf">Term Vector Fields</a></td>+<td>.tvf</td>+<td>The field level info about term vectors</td>+</tr>+<tr>+<td><a href="#Deleted%20Documents">Deleted Documents</a></td>+<td>.del</td>+<td>Info about what files are deleted</td>+</tr>+</table>+</div>+<a name="N10215" id="N10215"></a><a name="Primitive Types"></a>+<h2 class="boxed">Primitive Types</h2>+<div class="section"><a name="N1021A" id="N1021A"></a><a name="Byte" id=+"Byte"></a>+<h3 class="boxed">Byte</h3>+<p>The most primitive type is an eight-bit byte. Files are accessed as+sequences of bytes. All other data types are defined as sequences of bytes, so+file formats are byte-order independent.</p>+<a name="N10223" id="N10223"></a><a name="UInt32" id="UInt32"></a>+<h3 class="boxed">UInt32</h3>+<p>32-bit unsigned integers are written as four bytes, high-order bytes+first.</p>+<p>UInt32 --> <Byte><sup>4</sup></p>+<a name="N10232" id="N10232"></a><a name="Uint64" id="Uint64"></a>+<h3 class="boxed">Uint64</h3>+<p>64-bit unsigned integers are written as eight bytes, high-order bytes+first.</p>+<p>UInt64 --> <Byte><sup>8</sup></p>+<a name="N10241" id="N10241"></a><a name="VInt" id="VInt"></a>+<h3 class="boxed">VInt</h3>+<p>A variable-length format for positive integers is defined where the+high-order bit of each byte indicates whether more bytes remain to be read. The+low-order seven bits are appended as increasingly more significant bits in the+resulting integer value. Thus values from zero to 127 may be stored in a single+byte, values from 128 to 16,383 may be stored in two bytes, and so on.</p>+<p class="c1">VInt Encoding Example</p>+<table class="ForrestTable" cellspacing="0" cellpadding="4" border="0">+<col width="64*">+<col width="64*">+<col width="64*">+<col width="64*">+<tr valign="top">+<td width="25%">+<p class="c2">Value</p>+</td>+<td width="25%">+<p class="c2">First byte</p>+</td>+<td width="25%">+<p class="c2">Second byte</p>+</td>+<td width="25%">+<p class="c2">Third byte</p>+</td>+</tr>+<tr valign="bottom">+<td sdnum="1033;0;#,##0" sdval="0" width="25%">+<p class="c3">0</p>+</td>+<td sdnum="1033;0;00000000" sdval="0" width="25%">+<p class="western c4">00000000</p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c5"><br></p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c6"><br></p>+</td>+</tr>+<tr valign="bottom">+<td sdnum="1033;0;#,##0" sdval="1" width="25%">+<p class="c3">1</p>+</td>+<td sdnum="1033;0;00000000" sdval="1" width="25%">+<p class="western c4">00000001</p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c5"><br></p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c6"><br></p>+</td>+</tr>+<tr valign="bottom">+<td sdnum="1033;0;#,##0" sdval="2" width="25%">+<p class="c3">2</p>+</td>+<td sdnum="1033;0;00000000" sdval="10" width="25%">+<p class="western c4">00000010</p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c5"><br></p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c6"><br></p>+</td>+</tr>+<tr>+<td valign="top" width="25%">+<p class="c3">...</p>+</td>+<td sdnum="1033;0;00000000" valign="bottom" width="25%">+<p class="c4"><br></p>+</td>+<td sdnum="1033;0;00000000" valign="bottom" width="25%">+<p class="c5"><br></p>+</td>+<td sdnum="1033;0;00000000" valign="bottom" width="25%">+<p class="c6"><br></p>+</td>+</tr>+<tr valign="bottom">+<td sdnum="1033;0;#,##0" sdval="127" width="25%">+<p class="c3">127</p>+</td>+<td sdnum="1033;0;00000000" sdval="1111111" width="25%">+<p class="western c4">01111111</p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c5"><br></p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c6"><br></p>+</td>+</tr>+<tr valign="bottom">+<td sdnum="1033;0;#,##0" sdval="128" width="25%">+<p class="c3">128</p>+</td>+<td sdnum="1033;0;00000000" sdval="10000000" width="25%">+<p class="western c4">10000000</p>+</td>+<td sdnum="1033;0;00000000" sdval="1" width="25%">+<p class="western c5">00000001</p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c6"><br></p>+</td>+</tr>+<tr valign="bottom">+<td sdnum="1033;0;#,##0" sdval="129" width="25%">+<p class="c3">129</p>+</td>+<td sdnum="1033;0;00000000" sdval="10000001" width="25%">+<p class="western c4">10000001</p>+</td>+<td sdnum="1033;0;00000000" sdval="1" width="25%">+<p class="western c5">00000001</p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c6"><br></p>+</td>+</tr>+<tr valign="bottom">+<td sdnum="1033;0;#,##0" sdval="130" width="25%">+<p class="c3">130</p>+</td>+<td sdnum="1033;0;00000000" sdval="10000010" width="25%">+<p class="western c4">10000010</p>+</td>+<td sdnum="1033;0;00000000" sdval="1" width="25%">+<p class="western c5">00000001</p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c6"><br></p>+</td>+</tr>+<tr>+<td valign="top" width="25%">+<p class="c3">...</p>+</td>+<td sdnum="1033;0;00000000" valign="bottom" width="25%">+<p class="c4"><br></p>+</td>+<td sdnum="1033;0;00000000" valign="bottom" width="25%">+<p class="c5"><br></p>+</td>+<td sdnum="1033;0;00000000" valign="bottom" width="25%">+<p class="c6"><br></p>+</td>+</tr>+<tr valign="bottom">+<td sdnum="1033;0;#,##0" sdval="16383" width="25%">+<p class="c3">16,383</p>+</td>+<td sdnum="1033;0;00000000" sdval="11111111" width="25%">+<p class="western c4">11111111</p>+</td>+<td sdnum="1033;0;00000000" sdval="1111111" width="25%">+<p class="western c5">01111111</p>+</td>+<td sdnum="1033;0;00000000" width="25%">+<p class="c6"><br></p>+</td>+</tr>+<tr valign="bottom">+<td sdnum="1033;0;#,##0" sdval="16384" width="25%">+<p class="c3">16,384</p>+</td>+<td sdnum="1033;0;00000000" sdval="10000000" width="25%">+<p class="western c4">10000000</p>+</td>+<td sdnum="1033;0;00000000" sdval="10000000" width="25%">+<p class="western c5">10000000</p>+</td>+<td sdnum="1033;0;00000000" sdval="1" width="25%">+<p class="western c6">00000001</p>+</td>+</tr>+<tr valign="bottom">+<td sdnum="1033;0;#,##0" sdval="16385" width="25%">+<p class="c3">16,385</p>+</td>+<td sdnum="1033;0;00000000" sdval="10000001" width="25%">+<p class="western c4">10000001</p>+</td>+<td sdnum="1033;0;00000000" sdval="10000000" width="25%">+<p class="western c5">10000000</p>+</td>+<td sdnum="1033;0;00000000" sdval="1" width="25%">+<p class="western c6">00000001</p>+</td>+</tr>+<tr>+<td valign="top" width="25%">+<p class="c3">...</p>+</td>+<td sdnum="1033;0;00000000" valign="bottom" width="25%">+<p class="western c4"><br></p>+</td>+<td sdnum="1033;0;00000000" valign="bottom" width="25%">+<p class="western c5"><br></p>+</td>+<td sdnum="1033;0;00000000" valign="bottom" width="25%">+<p class="western c6"><br></p>+</td>+</tr>+</table>+<p>This provides compression while still being efficient to decode.</p>+<a name="N10526" id="N10526"></a><a name="Chars" id="Chars"></a>+<h3 class="boxed">Chars</h3>+<p>Lucene writes unicode character sequences as UTF-8 encoded bytes.</p>+<a name="N1052F" id="N1052F"></a><a name="String" id="String"></a>+<h3 class="boxed">String</h3>+<p>Lucene writes strings as UTF-8 encoded bytes. First the length, in bytes, is+written as a VInt, followed by the bytes.</p>+<p>String --> VInt, Chars</p>+</div>+<a name="N1053C" id="N1053C"></a><a name="Compound Types"></a>+<h2 class="boxed">Compound Types</h2>+<div class="section"><a name="N10541" id="N10541"></a><a name="MapStringString"+id="MapStringString"></a>+<h3 class="boxed">Map<String,String></h3>+<p>In a couple places Lucene stores a Map String->String.</p>+<p>Map<String,String> -->+Count<String,String><sup>Count</sup></p>+</div>+<a name="N10551" id="N10551"></a><a name="Per-Index Files"></a>+<h2 class="boxed">Per-Index Files</h2>+<div class="section">+<p>The files in this section exist one-per-index.</p>+<a name="N10559" id="N10559"></a><a name="Segments File"></a>+<h3 class="boxed">Segments File</h3>+<p>The active segments in the index are stored in the segment info file,+<tt>segments_N</tt>. There may be one or more <tt>segments_N</tt> files in the+index; however, the one with the largest generation is the active one (when+older segments_N files are present it's because they temporarily cannot be+deleted, or, a writer is in the process of committing, or a custom <a href=+"api/core/org/apache/lucene/index/IndexDeletionPolicy.html">IndexDeletionPolicy</a>+is in use). This file lists each segment by name, has details about the+separate norms and deletion files, and also contains the size of each+segment.</p>+<p>As of 2.1, there is also a file <tt>segments.gen</tt>. This file contains+the current generation (the <tt>_N</tt> in <tt>segments_N</tt>) of the index.+This is used only as a fallback in case the current generation cannot be+accurately determined by directory listing alone (as is the case for some NFS+clients with time-based directory cache expiraation). This file simply contains+an Int32 version header (SegmentInfos.FORMAT_LOCKLESS = -2), followed by the+generation recorded as Int64, written twice.</p>+<p><b>3.1</b> Segments --> Format, Version, NameCounter, SegCount,+<SegVersion, SegName, SegSize, DelGen, DocStoreOffset, [DocStoreSegment,+DocStoreIsCompoundFile], HasSingleNormFile, NumField,+NormGen<sup>NumField</sup>, IsCompoundFile, DeletionCount, HasProx,+Diagnostics, HasVectors><sup>SegCount</sup>, CommitUserData, Checksum</p>+<p>Format, NameCounter, SegCount, SegSize, NumField, DocStoreOffset,+DeletionCount --> Int32</p>+<p>Version, DelGen, NormGen, Checksum --> Int64</p>+<p>SegVersion, SegName, DocStoreSegment --> String</p>+<p>Diagnostics --> Map<String,String></p>+<p>IsCompoundFile, HasSingleNormFile, DocStoreIsCompoundFile, HasProx,+HasVectors --> Int8</p>+<p>CommitUserData --> Map<String,String></p>+<p>Format is -9 (SegmentInfos.FORMAT_DIAGNOSTICS).</p>+<p>Version counts how often the index has been changed by adding or deleting+documents.</p>+<p>NameCounter is used to generate names for new segment files.</p>+<p>SegVersion is the code version that created the segment.</p>+<p>SegName is the name of the segment, and is used as the file name prefix for+all of the files that compose the segment's index.</p>+<p>SegSize is the number of documents contained in the segment index.</p>+<p>DelGen is the generation count of the separate deletes file. If this is -1,+there are no separate deletes. If it is 0, this is a pre-2.1 segment and you+must check filesystem for the existence of _X.del. Anything above zero means+there are separate deletes (_X_N.del).</p>+<p>NumField is the size of the array for NormGen, or -1 if there are no+NormGens stored.</p>+<p>NormGen records the generation of the separate norms files. If NumField is+-1, there are no normGens stored and they are all assumed to be 0 when the+segment file was written pre-2.1 and all assumed to be -1 when the segments+file is 2.1 or above. The generation then has the same meaning as delGen+(above).</p>+<p>IsCompoundFile records whether the segment is written as a compound file or+not. If this is -1, the segment is not a compound file. If it is 1, the segment+is a compound file. Else it is 0, which means we check filesystem to see if+_X.cfs exists.</p>+<p>If HasSingleNormFile is 1, then the field norms are written as a single+joined file (with extension <tt>.nrm</tt>); if it is 0 then each field's norms+are stored as separate <tt>.fN</tt> files. See "Normalization Factors" below+for details.</p>+<p>DocStoreOffset, DocStoreSegment, DocStoreIsCompoundFile: If DocStoreOffset+is -1, this segment has its own doc store (stored fields values and term+vectors) files and DocStoreSegment and DocStoreIsCompoundFile are not stored.+In this case all files for stored field values (<tt>*.fdt</tt> and+<tt>*.fdx</tt>) and term vectors (<tt>*.tvf</tt>, <tt>*.tvd</tt> and+<tt>*.tvx</tt>) will be stored with this segment. Otherwise, DocStoreSegment is+the name of the segment that has the shared doc store files;+DocStoreIsCompoundFile is 1 if that segment is stored in compound file format+(as a <tt>.cfx</tt> file); and DocStoreOffset is the starting document in the+shared doc store files where this segment's documents begin. In this case, this+segment does not store its own doc store files but instead shares a single set+of these files with other segments.</p>+<p>Checksum contains the CRC32 checksum of all bytes in the segments_N file up+until the checksum. This is used to verify integrity of the file on opening the+index.</p>+<p>DeletionCount records the number of deleted documents in this segment.</p>+<p>HasProx is 1 if any fields in this segment have position data+(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS); else, it's 0.</p>+<p>CommitUserData stores an optional user-supplied opaque+Map<String,String> that was passed to IndexWriter's commit or+prepareCommit, or IndexReader's flush methods.</p>+<p>The Diagnostics Map is privately written by IndexWriter, as a debugging aid,+for each segment it creates. It includes metadata like the current Lucene+version, OS, Java version, why the segment was created (merge, flush,+addIndexes), etc.</p>+<p>HasVectors is 1 if this segment stores term vectors, else it's 0.</p>+<a name="N105E4" id="N105E4"></a><a name="Lock File"></a>+<h3 class="boxed">Lock File</h3>+<p>The write lock, which is stored in the index directory by default, is named+"write.lock". If the lock directory is different from the index directory then+the write lock will be named "XXXX-write.lock" where XXXX is a unique prefix+derived from the full path to the index directory. When this file is present, a+writer is currently modifying the index (adding or removing documents). This+lock file ensures that only one writer is modifying the index at a time.</p>+<a name="N105ED" id="N105ED"></a><a name="Deletable File"></a>+<h3 class="boxed">Deletable File</h3>+<p>A writer dynamically computes the files that are deletable, instead, so no+file is written.</p>+<a name="N105F6" id="N105F6"></a><a name="Compound Files"></a>+<h3 class="boxed">Compound Files</h3>+<p>Starting with Lucene 1.4 the compound file format became default. This is+simply a container for all files described in the next section (except for the+.del file).</p>+<p>Compound Entry Table (.cfe) --> Version, FileCount, <FileName,+DataOffset, DataLength> <sup>FileCount</sup></p>+<p>Compound (.cfs) --> FileData <sup>FileCount</sup></p>+<p>Version --> Int</p>+<p>FileCount --> VInt</p>+<p>DataOffset --> Long</p>+<p>DataLength --> Long</p>+<p>FileName --> String</p>+<p>FileData --> raw file data</p>+<p>The raw file data is the data from the individual files named above.</p>+<p>Starting with Lucene 2.3, doc store files (stored field values and term+vectors) can be shared in a single set of files for more than one segment. When+compound file is enabled, these shared files will be added into a single+compound file (same format as above) but with the extension <tt>.cfx</tt>.</p>+</div>+<a name="N10627" id="N10627"></a><a name="Per-Segment Files"></a>+<h2 class="boxed">Per-Segment Files</h2>+<div class="section">+<p>The remaining files are all per-segment, and are thus defined by suffix.</p>+<a name="N1062F" id="N1062F"></a><a name="Fields" id="Fields"></a>+<h3 class="boxed">Fields</h3>+<p><br>+<b>Field Info</b><br></p>+<p>Field names are stored in the field info file, with suffix .fnm.</p>+<p>FieldInfos (.fnm) --> FNMVersion,FieldsCount, <FieldName,+FieldBits> <sup>FieldsCount</sup></p>+<p>FNMVersion, FieldsCount --> VInt</p>+<p>FieldName --> String</p>+<p>FieldBits --> Byte</p>+<ul>+<li>The low-order bit is one for indexed fields, and zero for non-indexed+fields.</li>+<li>The second lowest-order bit is one for fields that have term vectors+stored, and zero for fields without term vectors.</li>+<li>If the fifth lowest-order bit is set (0x10), norms are omitted for the+indexed field.</li>+<li>If the sixth lowest-order bit is set (0x20), payloads are stored for the+indexed field.</li>+<li>If the seventh lowest-order bit is set (0x40), term frequencies and+positions omitted for the indexed field.</li>+<li>If the eighth lowest-order bit is set (0x80), positions are omitted for the+indexed field.</li>+</ul>+<p>FNMVersion (added in 2.9) is -2 for indexes from 2.9 - 3.3. It is -3 for+indexes in Lucene 3.4+</p>+<p>Fields are numbered by their order in this file. Thus field zero is the+first field in the file, field one the next, and so on. Note that, like+document numbers, field numbers are segment relative.</p>+<p><br>+<b>Stored Fields</b><br></p>+<p>Stored fields are represented by two files:</p>+<ol>+<li><a name="field_index" id="field_index"></a>+<p>The field index, or .fdx file.</p>+<p>This contains, for each document, a pointer to its field data, as+follows:</p>+<p>FieldIndex (.fdx) --> <FieldValuesPosition> <sup>SegSize</sup></p>+<p>FieldValuesPosition --> Uint64</p>+<p>This is used to find the location within the field data file of the fields+of a particular document. Because it contains fixed-length data, this file may+be easily randomly accessed. The position of document <i>n</i> 's field data is+the Uint64 at <i>n*8</i> in this file.</p>+</li>+<li>+<p><a name="field_data" id="field_data"></a> The field data, or .fdt file.</p>+<p>This contains the stored fields of each document, as follows:</p>+<p>FieldData (.fdt) --> <DocFieldData> <sup>SegSize</sup></p>+<p>DocFieldData --> FieldCount, <FieldNum, Bits, Value>+<sup>FieldCount</sup></p>+<p>FieldCount --> VInt</p>+<p>FieldNum --> VInt</p>+<p>Bits --> Byte</p>+<ul>+<li>low order bit is one for tokenized fields</li>+<li>second bit is one for fields containing binary data</li>+<li>third bit is one for fields with compression option enabled (if compression+is enabled, the algorithm used is ZLIB), only available for indexes until+Lucene version 2.9.x</li>+<li>4th to 6th bit (mask: 0x7<<3) define the type of a numeric field:+<ul>+<li>all bits in mask are cleared if no numeric field at all</li>+<li>1<<3: Value is Int</li>+<li>2<<3: Value is Long</li>+<li>3<<3: Value is Int as Float (as of Float.intBitsToFloat)</li>+<li>4<<3: Value is Long as Double (as of Double.longBitsToDouble)</li>+</ul>+</li>+</ul>+<p>Value --> String | BinaryValue | Int | Long (depending on Bits)</p>+<p>BinaryValue --> ValueSize, <Byte>^ValueSize</p>+<p>ValueSize --> VInt</p>+</li>+</ol>+<a name="N106EA" id="N106EA"></a><a name="Term Dictionary"></a>+<h3 class="boxed">Term Dictionary</h3>+<p>The term dictionary is represented as two files:</p>+<ol>+<li><a name="tis" id="tis"></a>+<p>The term infos, or tis file.</p>+<p>TermInfoFile (.tis)--> TIVersion, TermCount, IndexInterval, SkipInterval,+MaxSkipLevels, TermInfos</p>+<p>TIVersion --> UInt32</p>+<p>TermCount --> UInt64</p>+<p>IndexInterval --> UInt32</p>+<p>SkipInterval --> UInt32</p>+<p>MaxSkipLevels --> UInt32</p>+<p>TermInfos --> <TermInfo> <sup>TermCount</sup></p>+<p>TermInfo --> <Term, DocFreq, FreqDelta, ProxDelta, SkipDelta></p>+<p>Term --> <PrefixLength, Suffix, FieldNum></p>+<p>Suffix --> String</p>+<p>PrefixLength, DocFreq, FreqDelta, ProxDelta, SkipDelta<br>+--> VInt</p>+<p>This file is sorted by Term. Terms are ordered first lexicographically (by+UTF16 character code) by the term's field name, and within that+lexicographically (by UTF16 character code) by the term's text.</p>+<p>TIVersion names the version of the format of this file and is equal to+TermInfosWriter.FORMAT_CURRENT.</p>+<p>Term text prefixes are shared. The PrefixLength is the number of initial+characters from the previous term which must be pre-pended to a term's suffix+in order to form the term's text. Thus, if the previous term's text was "bone"+and the term is "boy", the PrefixLength is two and the suffix is "y".</p>+<p>FieldNumber determines the term's field, whose name is stored in the .fdt+file.</p>+<p>DocFreq is the count of documents which contain the term.</p>+<p>FreqDelta determines the position of this term's TermFreqs within the .frq+file. In particular, it is the difference between the position of this term's+data in that file and the position of the previous term's data (or zero, for+the first term in the file).</p>+<p>ProxDelta determines the position of this term's TermPositions within the+.prx file. In particular, it is the difference between the position of this+term's data in that file and the position of the previous term's data (or zero,+for the first term in the file. For fields that omit position data, this will+be 0 since prox information is not stored.</p>+<p>SkipDelta determines the position of this term's SkipData within the .frq+file. In particular, it is the number of bytes after TermFreqs that the+SkipData starts. In other words, it is the length of the TermFreq data.+SkipDelta is only stored if DocFreq is not smaller than SkipInterval.</p>+</li>+<li>+<p><a name="tii" id="tii"></a> The term info index, or .tii file.</p>+<p>This contains every IndexInterval <sup>th</sup> entry from the .tis file,+along with its location in the "tis" file. This is designed to be read entirely+into memory and used to provide random access to the "tis" file.</p>+<p>The structure of this file is very similar to the .tis file, with the+addition of one item per record, the IndexDelta.</p>+<p>TermInfoIndex (.tii)--> TIVersion, IndexTermCount, IndexInterval,+SkipInterval, MaxSkipLevels, TermIndices</p>+<p>TIVersion --> UInt32</p>+<p>IndexTermCount --> UInt64</p>+<p>IndexInterval --> UInt32</p>+<p>SkipInterval --> UInt32</p>+<p>TermIndices --> <TermInfo, IndexDelta>+<sup>IndexTermCount</sup></p>+<p>IndexDelta --> VLong</p>+<p>IndexDelta determines the position of this term's TermInfo within the .tis+file. In particular, it is the difference between the position of this term's+entry in that file and the position of the previous term's entry.</p>+<p>SkipInterval is the fraction of TermDocs stored in skip tables. It is used+to accelerate TermDocs.skipTo(int). Larger values result in smaller indexes,+greater acceleration, but fewer accelerable cases, while smaller values result+in bigger indexes, less acceleration (in case of a small value for+MaxSkipLevels) and more accelerable cases.</p>+<p>MaxSkipLevels is the max. number of skip levels stored for each term in the+.frq file. A low value results in smaller indexes but less acceleration, a+larger value results in slighly larger indexes but greater acceleration. See+format of .frq file for more information about skip levels.</p>+</li>+</ol>+<a name="N1076E" id="N1076E"></a><a name="Frequencies" id="Frequencies"></a>+<h3 class="boxed">Frequencies</h3>+<p>The .frq file contains the lists of documents which contain each term, along+with the frequency of the term in that document (except when frequencies are+omitted: IndexOptions.DOCS_ONLY).</p>+<p>FreqFile (.frq) --> <TermFreqs, SkipData> <sup>TermCount</sup></p>+<p>TermFreqs --> <TermFreq> <sup>DocFreq</sup></p>+<p>TermFreq --> DocDelta[, Freq?]</p>+<p>SkipData --> <<SkipLevelLength, SkipLevel>+<sup>NumSkipLevels-1</sup>, SkipLevel> <SkipDatum></p>+<p>SkipLevel --> <SkipDatum> <sup>DocFreq/(SkipInterval^(Level ++1))</sup></p>+<p>SkipDatum -->+DocSkip,PayloadLength?,FreqSkip,ProxSkip,SkipChildLevelPointer?</p>+<p>DocDelta,Freq,DocSkip,PayloadLength,FreqSkip,ProxSkip --> VInt</p>+<p>SkipChildLevelPointer --> VLong</p>+<p>TermFreqs are ordered by term (the term is implicit, from the .tis+file).</p>+<p>TermFreq entries are ordered by increasing document number.</p>+<p>DocDelta: if frequencies are indexed, this determines both the document+number and the frequency. In particular, DocDelta/2 is the difference between+this document number and the previous document number (or zero when this is the+first document in a TermFreqs). When DocDelta is odd, the frequency is one.+When DocDelta is even, the frequency is read as another VInt. If frequencies+are omitted, DocDelta contains the gap (not multiplied by 2) between document+numbers and no frequency information is stored.</p>+<p>For example, the TermFreqs for a term which occurs once in document seven+and three times in document eleven, with frequencies indexed, would be the+following sequence of VInts:</p>+<p>15, 8, 3</p>+<p>If frequencies were omitted (IndexOptions.DOCS_ONLY) it would be this+sequence of VInts instead:</p>+<p>7,4</p>+<p>DocSkip records the document number before every SkipInterval <sup>th</sup>+document in TermFreqs. If payloads are disabled for the term's field, then+DocSkip represents the difference from the previous value in the sequence. If+payloads are enabled for the term's field, then DocSkip/2 represents the+difference from the previous value in the sequence. If payloads are enabled and+DocSkip is odd, then PayloadLength is stored indicating the length of the last+payload before the SkipInterval<sup>th</sup> document in TermPositions.+FreqSkip and ProxSkip record the position of every SkipInterval <sup>th</sup>+entry in FreqFile and ProxFile, respectively. File positions are relative to+the start of TermFreqs and Positions, to the previous SkipDatum in the+sequence.</p>+<p>For example, if DocFreq=35 and SkipInterval=16, then there are two SkipData+entries, containing the 15 <sup>th</sup> and 31 <sup>st</sup> document numbers+in TermFreqs. The first FreqSkip names the number of bytes after the beginning+of TermFreqs that the 16 <sup>th</sup> SkipDatum starts, and the second the+number of bytes after that that the 32 <sup>nd</sup> starts. The first ProxSkip+names the number of bytes after the beginning of Positions that the 16+<sup>th</sup> SkipDatum starts, and the second the number of bytes after that+that the 32 <sup>nd</sup> starts.</p>+<p>Each term can have multiple skip levels. The amount of skip levels for a+term is NumSkipLevels = Min(MaxSkipLevels,+floor(log(DocFreq/log(SkipInterval)))). The number of SkipData entries for a+skip level is DocFreq/(SkipInterval^(Level + 1)), whereas the lowest skip level+is Level=0.<br>+Example: SkipInterval = 4, MaxSkipLevels = 2, DocFreq = 35. Then skip level 0+has 8 SkipData entries, containing the 3<sup>rd</sup>, 7<sup>th</sup>,+11<sup>th</sup>, 15<sup>th</sup>, 19<sup>th</sup>, 23<sup>rd</sup>,+27<sup>th</sup>, and 31<sup>st</sup> document numbers in TermFreqs. Skip level+1 has 2 SkipData entries, containing the 15<sup>th</sup> and 31<sup>st</sup>+document numbers in TermFreqs.<br>+The SkipData entries on all upper levels > 0 contain a SkipChildLevelPointer+referencing the corresponding SkipData entry in level-1. In the example has+entry 15 on level 1 a pointer to entry 15 on level 0 and entry 31 on level 1 a+pointer to entry 31 on level 0.</p>+<a name="N107F6" id="N107F6"></a><a name="Positions" id="Positions"></a>+<h3 class="boxed">Positions</h3>+<p>The .prx file contains the lists of positions that each term occurs at+within documents. Note that fields omitting positional data do not store+anything into this file, and if all fields in the index omit positional data+then the .prx file will not exist.</p>+<p>ProxFile (.prx) --> <TermPositions> <sup>TermCount</sup></p>+<p>TermPositions --> <Positions> <sup>DocFreq</sup></p>+<p>Positions --> <PositionDelta,Payload?> <sup>Freq</sup></p>+<p>Payload --> <PayloadLength?,PayloadData></p>+<p>PositionDelta --> VInt</p>+<p>PayloadLength --> VInt</p>+<p>PayloadData --> byte<sup>PayloadLength</sup></p>+<p>TermPositions are ordered by term (the term is implicit, from the .tis+file).</p>+<p>Positions entries are ordered by increasing document number (the document+number is implicit from the .frq file).</p>+<p>PositionDelta is, if payloads are disabled for the term's field, the+difference between the position of the current occurrence in the document and+the previous occurrence (or zero, if this is the first occurrence in this+document). If payloads are enabled for the term's field, then PositionDelta/2+is the difference between the current and the previous position. If payloads+are enabled and PositionDelta is odd, then PayloadLength is stored, indicating+the length of the payload at the current term position.</p>+<p>For example, the TermPositions for a term which occurs as the fourth term in+one document, and as the fifth and ninth term in a subsequent document, would+be the following sequence of VInts (payloads disabled):</p>+<p>4, 5, 4</p>+<p>PayloadData is metadata associated with the current term position. If+PayloadLength is stored at the current position, then it indicates the length+of this Payload. If PayloadLength is not stored, then this Payload has the same+length as the Payload at the previous position.</p>+<a name="N10832" id="N10832"></a><a name="Normalization Factors"></a>+<h3 class="boxed">Normalization Factors</h3>+<p>There's a single .nrm file containing all norms:</p>+<p>AllNorms (.nrm) --> NormsHeader,<Norms>+<sup>NumFieldsWithNorms</sup></p>+<p>Norms --> <Byte> <sup>SegSize</sup></p>+<p>NormsHeader --> 'N','R','M',Version</p>+<p>Version --> Byte</p>+<p>NormsHeader has 4 bytes, last of which is the format version for this file,+currently -1.</p>+<p>Each byte encodes a floating point value. Bits 0-2 contain the 3-bit+mantissa, and bits 3-8 contain the 5-bit exponent.</p>+<p>These are converted to an IEEE single float value as follows:</p>+<ol>+<li>+<p>If the byte is zero, use a zero float.</p>+</li>+<li>+<p>Otherwise, set the sign bit of the float to zero;</p>+</li>+<li>+<p>add 48 to the exponent and use this as the float's exponent;</p>+</li>+<li>+<p>map the mantissa to the high-order 3 bits of the float's mantissa; and</p>+</li>+<li>+<p>set the low-order 21 bits of the float's mantissa to zero.</p>+</li>+</ol>+<p>A separate norm file is created when the norm values of an existing segment+are modified. When field <em>N</em> is modified, a separate norm file+<em>.sN</em> is created, to maintain the norm values for that field.</p>+<p>Separate norm files are created (when adequate) for both compound and non+compound segments.</p>+<a name="N10883" id="N10883"></a><a name="Term Vectors"></a>+<h3 class="boxed">Term Vectors</h3>+<p>Term Vector support is an optional on a field by field basis. It consists of+3 files.</p>+<ol>+<li><a name="tvx" id="tvx"></a>+<p>The Document Index or .tvx file.</p>+<p>For each document, this stores the offset into the document data (.tvd) and+field data (.tvf) files.</p>+<p>DocumentIndex (.tvx) --> TVXVersion<DocumentPosition,FieldPosition>+<sup>NumDocs</sup></p>+<p>TVXVersion --> Int (TermVectorsReader.CURRENT)</p>+<p>DocumentPosition --> UInt64 (offset in the .tvd file)</p>+<p>FieldPosition --> UInt64 (offset in the .tvf file)</p>+</li>+<li><a name="tvd" id="tvd"></a>+<p>The Document or .tvd file.</p>+<p>This contains, for each document, the number of fields, a list of the fields+with term vector info and finally a list of pointers to the field information+in the .tvf (Term Vector Fields) file.</p>+<p>Document (.tvd) --> TVDVersion<NumFields, FieldNums,+FieldPositions> <sup>NumDocs</sup></p>+<p>TVDVersion --> Int (TermVectorsReader.FORMAT_CURRENT)</p>+<p>NumFields --> VInt</p>+<p>FieldNums --> <FieldNumDelta> <sup>NumFields</sup></p>+<p>FieldNumDelta --> VInt</p>+<p>FieldPositions --> <FieldPositionDelta> <sup>NumFields-1</sup></p>+<p>FieldPositionDelta --> VLong</p>+<p>The .tvd file is used to map out the fields that have term vectors stored+and where the field information is in the .tvf file.</p>+</li>+<li><a name="tvf" id="tvf"></a>+<p>The Field or .tvf file.</p>+<p>This file contains, for each field that has a term vector stored, a list of+the terms, their frequencies and, optionally, position and offest+information.</p>+<p>Field (.tvf) --> TVFVersion<NumTerms, Position/Offset, TermFreqs>+<sup>NumFields</sup></p>+<p>TVFVersion --> Int (TermVectorsReader.FORMAT_CURRENT)</p>+<p>NumTerms --> VInt</p>+<p>Position/Offset --> Byte</p>+<p>TermFreqs --> <TermText, TermFreq, Positions?, Offsets?>+<sup>NumTerms</sup></p>+<p>TermText --> <PrefixLength, Suffix></p>+<p>PrefixLength --> VInt</p>+<p>Suffix --> String</p>+<p>TermFreq --> VInt</p>+<p>Positions --> <VInt><sup>TermFreq</sup></p>+<p>Offsets --> <VInt, VInt><sup>TermFreq</sup></p>+<br>+<p>Notes:</p>+<ul>+<li>Position/Offset byte stores whether this term vector has position or offset+information stored.</li>+<li>Term text prefixes are shared. The PrefixLength is the number of initial+characters from the previous term which must be pre-pended to a term's suffix+in order to form the term's text. Thus, if the previous term's text was "bone"+and the term is "boy", the PrefixLength is two and the suffix is "y".</li>+<li>Positions are stored as delta encoded VInts. This means we only store the+difference of the current position from the last position</li>+<li>Offsets are stored as delta encoded VInts. The first VInt is the+startOffset, the second is the endOffset.</li>+</ul>+</li>+</ol>+<a name="N1091F" id="N1091F"></a><a name="Deleted Documents"></a>+<h3 class="boxed">Deleted Documents</h3>+<p>The .del file is optional, and only exists when a segment contains+deletions.</p>+<p>Although per-segment, this file is maintained exterior to compound segment+files.</p>+<p>Deletions (.del) --> [Format],ByteCount,BitCount, Bits | DGaps (depending+on Format)</p>+<p>Format,ByteSize,BitCount --> Uint32</p>+<p>Bits --> <Byte> <sup>ByteCount</sup></p>+<p>DGaps --> <DGap,NonzeroByte> <sup>NonzeroBytesCount</sup></p>+<p>DGap --> VInt</p>+<p>NonzeroByte --> Byte</p>+<p>Format is Optional. -1 indicates DGaps. Non-negative value indicates Bits,+and that Format is excluded.</p>+<p>ByteCount indicates the number of bytes in Bits. It is typically+(SegSize/8)+1.</p>+<p>BitCount indicates the number of bits that are currently set in Bits.</p>+<p>Bits contains one bit for each document indexed. When the bit corresponding+to a document number is set, that document is marked as deleted. Bit ordering+is from least to most significant. Thus, if Bits contains two bytes, 0x00 and+0x02, then document 9 is marked as deleted.</p>+<p>DGaps represents sparse bit-vectors more efficiently than Bits. It is made+of DGaps on indexes of nonzero bytes in Bits, and the nonzero bytes themselves.+The number of nonzero bytes in Bits (NonzeroBytesCount) is not stored.</p>+<p>For example, if there are 8000 bits and only bits 10,12,32 are set, DGaps+would be used:</p>+<p>(VInt) 1 , (byte) 20 , (VInt) 3 , (Byte) 1</p>+</div>+<a name="N10959" id="N10959"></a><a name="Limitations" id="Limitations"></a>+<h2 class="boxed">Limitations</h2>+<div class="section">+<p>When referring to term numbers, Lucene's current implementation uses a Java+<span class="codefrag">int</span> to hold the term index, which means the+maximum number of unique terms in any single index segment is ~2.1 billion+times the term index interval (default 128) = ~274 billion. This is technically+not a limitation of the index file format, just of Lucene's current+implementation.</p>+<p>Similarly, Lucene uses a Java <span class="codefrag">int</span> to refer to+document numbers, and the index file format uses an <span class=+"codefrag">Int32</span> on-disk to store document numbers. This is a limitation+of both the index file format and the current implementation. Eventually these+should be replaced with either <span class="codefrag">UInt64</span> values, or+better yet, <span class="codefrag">VInt</span> values which have no limit.</p>+</div>+</body>+</html>diff --git a/lucene/site/html/lucene_green_300.gif b/lucene/site/html/lucene_green_300.gifnew file mode 100644index 00000000000..f3778ba27f4Binary files /dev/null and b/lucene/site/html/lucene_green_300.gif differdiff --git a/lucene/site/build/site/scoring.html b/lucene/site/html/scoring.htmlsimilarity index 53%rename from lucene/site/build/site/scoring.htmlrename to lucene/site/html/scoring.htmlindex 15c8ee94469..4bfeb72f377 100644--- a/lucene/site/build/site/scoring.html+++ b/lucene/site/html/scoring.html@@ -1,235 +1,10 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8">-<meta content="Apache Forrest" name="Generator">-<meta name="Forrest-version" content="0.9">-<meta name="Forrest-skin-name" content="lucene">-<title>- Apache Lucene - Scoring- </title>-<link type="text/css" href="skin/basic.css" rel="stylesheet">-<link media="screen" type="text/css" href="skin/screen.css" rel="stylesheet">-<link media="print" type="text/css" href="skin/print.css" rel="stylesheet">-<link type="text/css" href="skin/profile.css" rel="stylesheet">-<script src="skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="skin/fontsize.js" language="javascript" type="text/javascript"></script>-<link rel="shortcut icon" href="images/favicon.ico">+<title>Apache Lucene - Scoring</title></head>-<body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<div id="top">-<!--+- |breadtrail- +-->-<div class="breadtrail">-<a href="http://www.apache.org/">Apache</a> > <a href="http://lucene.apache.org/">Lucene</a><script src="skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>-</div>-<!--+- |header- +-->-<div class="header">-<!--+- |start group logo- +-->-<div class="grouplogo">-<a href="http://lucene.apache.org/"><img class="logoImage" alt="Lucene" src="http://www.apache.org/images/asf_logo_simple.png" title="Apache Lucene"></a>-</div>-<!--+- |end group logo- +-->-<!--+- |start Project Logo- +-->-<div class="projectlogo">-<a href="http://lucene.apache.org/java/"><img class="logoImage" alt="Lucene" src="http://lucene.apache.org/images/lucene_green_300.gif" title="Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform."></a>-</div>-<!--+- |end Project Logo- +-->-<!--+- |start Search- +-->-<div class="searchbox">-<form action="http://search.lucidimagination.com/p:lucene" method="get" class="roundtopsmall">-<input onFocus="getBlank (this, 'Search the site with Lucene');" size="25" name="q" id="query" type="text" value="Search the site with Lucene"> - <input name="Search" value="Search" type="submit">-</form>-<div style="position: relative; top: -5px; left: -10px">Powered by <a href="http://www.lucidimagination.com" style="color: #033268">Lucid Imagination</a>-</div>-</div>-<!--+- |end search- +-->-<!--+- |start Tabs- +-->-<ul id="tabs">-<li class="current">-<a class="selected" href="http://lucene.apache.org/java/docs/">Main</a>-</li>-<li>-<a class="unselected" href="http://wiki.apache.org/lucene-java">Wiki</a>-</li>-<li class="current">-<a class="selected" href="index.html">Lucene 4.0 Documentation</a>-</li>-</ul>-<!--+- |end Tabs- +-->-</div>-</div>-<div id="main">-<div id="publishedStrip">-<!--+- |start Subtabs- +-->-<div id="level2tabs"></div>-<!--+- |end Endtabs- +-->-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<!--+- |breadtrail- +-->-<div class="breadtrail">-- - </div>-<!--+- |start Menu, mainarea- +-->-<!--+- |start Menu- +-->-<div id="menu">-<div onclick="SwitchMenu('menu_selected_1.1', 'skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('skin/images/chapter_open.gif');">Documentation</div>-<div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;">-<div class="menuitem">-<a href="index.html">Overview</a>-</div>-<div class="menuitem">-<a href="changes/Changes.html">Changes</a>-</div>-<div onclick="SwitchMenu('menu_1.1.3', 'skin/')" id="menu_1.1.3Title" class="menutitle">Javadocs</div>-<div id="menu_1.1.3" class="menuitemgroup">-<div class="menuitem">-<a href="api/core/index.html">Core</a>-</div>-<div class="menuitem">-<a href="api/analyzers-common/index.html">Analysis: Common</a>-</div>-<div class="menuitem">-<a href="api/analyzers-kuromoji/index.html">Analysis: Kuromoji (Japanese)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-morfologik/index.html">Analysis: Morfologik (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-phonetic/index.html">Analysis: Phonetic</a>-</div>-<div class="menuitem">-<a href="api/analyzers-smartcn/index.html">Analysis: Smart Chinese</a>-</div>-<div class="menuitem">-<a href="api/analyzers-stempel/index.html">Analysis: Stempel (Polish)</a>-</div>-<div class="menuitem">-<a href="api/analyzers-uima/index.html">Analysis: UIMA</a>-</div>-<div class="menuitem">-<a href="api/benchmark/index.html">Benchmark</a>-</div>-<div class="menuitem">-<a href="api/demo/index.html">Demo</a>-</div>-<div class="menuitem">-<a href="api/facet/index.html">Faceting</a>-</div>-<div class="menuitem">-<a href="api/grouping/index.html">Grouping</a>-</div>-<div class="menuitem">-<a href="api/highlighter/index.html">Highlighter</a>-</div>-<div class="menuitem">-<a href="api/join/index.html">Join</a>-</div>-<div class="menuitem">-<a href="api/memory/index.html">Memory</a>-</div>-<div class="menuitem">-<a href="api/misc/index.html">Miscellaneous</a>-</div>-<div class="menuitem">-<a href="api/queries/index.html">Queries</a>-</div>-<div class="menuitem">-<a href="api/queryparser/index.html">Query Parsers</a>-</div>-<div class="menuitem">-<a href="api/sandbox/index.html">Sandbox</a>-</div>-<div class="menuitem">-<a href="api/spatial/index.html">Spatial</a>-</div>-<div class="menuitem">-<a href="api/suggest/index.html">Suggest / Spellcheck</a>-</div>-<div class="menuitem">-<a href="api/test-framework/index.html">Test Framework</a>-</div>-</div>-<div class="menuitem">-<a href="systemrequirements.html">System Requirements</a>-</div>-<div class="menuitem">-<a href="contributions.html">Contributions</a>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java/LuceneFAQ">FAQ</a>-</div>-<div class="menuitem">-<a href="fileformats.html">File Formats</a>-</div>-<div class="menuitem">-<a href="gettingstarted.html">Getting Started</a>-</div>-<div class="menuitem">-<a href="queryparsersyntax.html">Query Syntax</a>-</div>-<div class="menupage">-<div class="menupagetitle">Scoring</div>-</div>-<div class="menuitem">-<a href="http://wiki.apache.org/lucene-java">Wiki</a>-</div>-<div class="menuitem">-<a href="http://lucene.apache.org/privacy.html">Privacy Policy</a>-</div>-</div>-<div id="credit"></div>-<div id="roundbottom">-<img style="display: none" class="corner" height="15" width="15" alt="" src="skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>-<!--+- |alternative credits- +-->-<div id="credit2"></div>-</div>-<!--+- |end Menu- +-->-<!--+- |start content- +-->-<div id="content">-<h1>- Apache Lucene - Scoring- </h1>+<body>+<h1>Apache Lucene - Scoring</h1><div id="minitoc-area"><ul class="minitoc"><li>@@ -297,10 +72,10 @@ document.write("Last Published: " + document.lastModified);<a href="http://wiki.apache.org/lucene-java/InformationRetrieval">Lucene Wiki IR references</a>.</p><p>The rest of this document will cover <a href="#Scoring">Scoring</a> basics and how to change your- <a href="api/core/org/apache/lucene/search/Similarity.html">Similarity</a>. Next it will cover ways you can+ <a href="core/org/apache/lucene/search/Similarity.html">Similarity</a>. Next it will cover ways you cancustomize the Lucene internals in <a href="#Changing your Scoring -- Expert Level">Changing your Scoring-- Expert Level</a> which gives details on implementing your own- <a href="api/core/org/apache/lucene/search/Query.html">Query</a> class and related functionality. Finally, we+ <a href="core/org/apache/lucene/search/Query.html">Query</a> class and related functionality. Finally, wewill finish up with some reference material in the <a href="#Appendix">Appendix</a>.</p></div>@@ -314,21 +89,21 @@ document.write("Last Published: " + document.lastModified);and the Lucene<a href="fileformats.html">file formats</a>before continuing on with this section.) It is also assumed that readers know how to use the- <a href="api/core/org/apache/lucene/search/Searcher.html#explain(Query query, int doc)">Searcher.explain(Query query, int doc)</a> functionality,+ <a href="core/org/apache/lucene/search/Searcher.html#explain(Query query, int doc)">Searcher.explain(Query query, int doc)</a> functionality,which can go a long way in informing why a score is returned.</p><a name="N10059"></a><a name="Fields and Documents"></a><h3 class="boxed">Fields and Documents</h3><p>In Lucene, the objects we are scoring are- <a href="api/core/org/apache/lucene/document/Document.html">Documents</a>. A Document is a collection+ <a href="core/org/apache/lucene/document/Document.html">Documents</a>. A Document is a collectionof- <a href="api/core/org/apache/lucene/document/Field.html">Fields</a>. Each Field has semantics about how+ <a href="core/org/apache/lucene/document/Field.html">Fields</a>. Each Field has semantics about howit is created and stored (i.e. tokenized, untokenized, raw data, compressed, etc.) It is important tonote that Lucene scoring works on Fields and then combines the results to return Documents. This isimportant because two Documents with the exact same content, but one having the content in two Fieldsand the other in one Field will return different scores for the same query due to length normalization(assumming the- <a href="api/core/org/apache/lucene/search/DefaultSimilarity.html">DefaultSimilarity</a>+ <a href="core/org/apache/lucene/search/DefaultSimilarity.html">DefaultSimilarity</a>on the Fields).</p><a name="N1006E"></a><a name="Score Boosting"></a>@@ -339,21 +114,21 @@ document.write("Last Published: " + document.lastModified);<li><b>Document level boosting</b>- while indexing - by calling- <a href="api/core/org/apache/lucene/document/Document.html#setBoost(float)">document.setBoost()</a>+ <a href="core/org/apache/lucene/document/Document.html#setBoost(float)">document.setBoost()</a>before a document is added to the index.</li><li><b>Document's Field level boosting</b>- while indexing - by calling- <a href="api/core/org/apache/lucene/document/Fieldable.html#setBoost(float)">field.setBoost()</a>+ <a href="core/org/apache/lucene/document/Fieldable.html#setBoost(float)">field.setBoost()</a>before adding a field to the document (and before adding the document to the index).</li><li><b>Query level boosting</b>- during search, by setting a boost on a query clause, calling- <a href="api/core/org/apache/lucene/search/Query.html#setBoost(float)">Query.setBoost()</a>.+ <a href="core/org/apache/lucene/search/Query.html#setBoost(float)">Query.setBoost()</a>.</li></ul>@@ -374,52 +149,52 @@ document.write("Last Published: " + document.lastModified);<p>This composition of 1-byte representation of norms(that is, indexing time multiplication of field boosts & doc boost & field-length-norm)is nicely described in- <a href="api/core/org/apache/lucene/document/Fieldable.html#setBoost(float)">Fieldable.setBoost()</a>.+ <a href="core/org/apache/lucene/document/Fieldable.html#setBoost(float)">Fieldable.setBoost()</a>.</p><p>Encoding and decoding of the resulted float norm in a single byte are done by thestatic methods of the class Similarity:- <a href="api/core/org/apache/lucene/search/Similarity.html#encodeNorm(float)">encodeNorm()</a> and- <a href="api/core/org/apache/lucene/search/Similarity.html#decodeNorm(byte)">decodeNorm()</a>.+ <a href="core/org/apache/lucene/search/Similarity.html#encodeNorm(float)">encodeNorm()</a> and+ <a href="core/org/apache/lucene/search/Similarity.html#decodeNorm(byte)">decodeNorm()</a>.Due to loss of precision, it is not guaranteed that decode(encode(x)) = x,e.g. decode(encode(0.89)) = 0.75.At scoring (search) time, this norm is brought into the score of documentas <b>norm(t, d)</b>, as shown by the formula in- <a href="api/core/org/apache/lucene/search/Similarity.html">Similarity</a>.+ <a href="core/org/apache/lucene/search/Similarity.html">Similarity</a>.</p><a name="N100B1"></a><a name="Understanding the Scoring Formula"></a><h3 class="boxed">Understanding the Scoring Formula</h3><p>This scoring formula is described in the- <a href="api/core/org/apache/lucene/search/Similarity.html">Similarity</a> class. Please take the time to study this formula, as it contains much of the information about how the+ <a href="core/org/apache/lucene/search/Similarity.html">Similarity</a> class. Please take the time to study this formula, as it contains much of the information about how thebasics of Lucene scoring work, especially the- <a href="api/core/org/apache/lucene/search/TermQuery.html">TermQuery</a>.+ <a href="core/org/apache/lucene/search/TermQuery.html">TermQuery</a>.</p><a name="N100C2"></a><a name="The Big Picture"></a><h3 class="boxed">The Big Picture</h3><p>OK, so the tf-idf formula and the- <a href="api/core/org/apache/lucene/search/Similarity.html">Similarity</a>+ <a href="core/org/apache/lucene/search/Similarity.html">Similarity</a>is great for understanding the basics of Lucene scoring, but what really drives Lucene scoring arethe use and interactions between the- <a href="api/core/org/apache/lucene/search/Query.html">Query</a> classes, as created by each application in+ <a href="core/org/apache/lucene/search/Query.html">Query</a> classes, as created by each application inresponse to a user's information need.</p>-<p>In this regard, Lucene offers a wide variety of <a href="api/core/org/apache/lucene/search/Query.html">Query</a> implementations, most of which are in the- <a href="api/core/org/apache/lucene/search/package-summary.html">org.apache.lucene.search</a> package.+<p>In this regard, Lucene offers a wide variety of <a href="core/org/apache/lucene/search/Query.html">Query</a> implementations, most of which are in the+ <a href="core/org/apache/lucene/search/package-summary.html">org.apache.lucene.search</a> package.These implementations can be combined in a wide variety of ways to provide complex queryingcapabilities along withinformation about where matches took place in the document collection. The <a href="#Query Classes">Query</a>section belowhighlights some of the more important Query classes. For information on the other ones, see the- <a href="api/core/org/apache/lucene/search/package-summary.html">package summary</a>. For details on implementing+ <a href="core/org/apache/lucene/search/package-summary.html">package summary</a>. For details on implementingyour own Query class, see <a href="#Changing your Scoring -- Expert Level">Changing your Scoring --Expert Level</a> below.</p><p>Once a Query has been created and submitted to the- <a href="api/core/org/apache/lucene/search/IndexSearcher.html">IndexSearcher</a>, the scoring process+ <a href="core/org/apache/lucene/search/IndexSearcher.html">IndexSearcher</a>, the scoring processbegins. (See the <a href="#Appendix">Appendix</a> Algorithm section for more notes on the process.) After some infrastructure setup,- control finally passes to the <a href="api/core/org/apache/lucene/search/Weight.html">Weight</a> implementation and its- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a> instance. In the case of any type of- <a href="api/core/org/apache/lucene/search/BooleanQuery.html">BooleanQuery</a>, scoring is handled by the+ control finally passes to the <a href="core/org/apache/lucene/search/Weight.html">Weight</a> implementation and its+ <a href="core/org/apache/lucene/search/Scorer.html">Scorer</a> instance. In the case of any type of+ <a href="core/org/apache/lucene/search/BooleanQuery.html">BooleanQuery</a>, scoring is handled by the<a href="http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java?view=log">BooleanWeight2</a>(link goes to ViewVC BooleanQuery java code which contains the BooleanWeight2 inner class) or<a href="http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java?view=log">BooleanWeight</a>@@ -429,7 +204,7 @@ document.write("Last Published: " + document.lastModified);Assuming the use of the BooleanWeight2, aBooleanScorer2 is created by bringing togetherall of the- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a>s from the sub-clauses of the BooleanQuery.+ <a href="core/org/apache/lucene/search/Scorer.html">Scorer</a>s from the sub-clauses of the BooleanQuery.When the BooleanScorer2 is asked to score it delegates its work to an internal Scorer based on the typeof clauses in the Query. This internal Scorer essentially loops over the sub scorers and sums the scoresprovided by each scorer while factoring in the coord() score.@@ -438,14 +213,14 @@ document.write("Last Published: " + document.lastModified);<a name="N10112"></a><a name="Query Classes"></a><h3 class="boxed">Query Classes</h3><p>For information on the Query Classes, refer to the- <a href="api/core/org/apache/lucene/search/package-summary.html#query">search package javadocs</a>+ <a href="core/org/apache/lucene/search/package-summary.html#query">search package javadocs</a></p><a name="N1011F"></a><a name="Changing Similarity"></a><h3 class="boxed">Changing Similarity</h3><p>One of the ways of changing the scoring characteristics of Lucene is to change the similarity factors. For information onhow to do this, see the- <a href="api/core/org/apache/lucene/search/package-summary.html#changingSimilarity">search package javadocs</a>+ <a href="core/org/apache/lucene/search/package-summary.html#changingSimilarity">search package javadocs</a></p></div>@@ -454,7 +229,7 @@ document.write("Last Published: " + document.lastModified);<div class="section"><p>At a much deeper level, one can affect scoring by implementing their own Query classes (and related scoring classes.) To learn moreabout how to do this, refer to the- <a href="api/core/org/apache/lucene/search/package-summary.html#scoring">search package javadocs</a>+ <a href="core/org/apache/lucene/search/package-summary.html#scoring">search package javadocs</a></p></div>@@ -468,19 +243,19 @@ document.write("Last Published: " + document.lastModified);<p>This section is mostly notes on stepping through the Scoring process and serves asfertilizer for the earlier sections.</p><p>In the typical search application, a- <a href="api/core/org/apache/lucene/search/Query.html">Query</a>+ <a href="core/org/apache/lucene/search/Query.html">Query</a>is passed to the- <a href="api/core/org/apache/lucene/search/Searcher.html">Searcher</a>+ <a href="core/org/apache/lucene/search/Searcher.html">Searcher</a>, beginning the scoring process.</p><p>Once inside the Searcher, a- <a href="api/core/org/apache/lucene/search/Collector.html">Collector</a>+ <a href="core/org/apache/lucene/search/Collector.html">Collector</a>is used for the scoring and sorting of the search results.These important objects are involved in a search:<ol><li>The- <a href="api/core/org/apache/lucene/search/Weight.html">Weight</a>+ <a href="core/org/apache/lucene/search/Weight.html">Weight</a>object of the Query. The Weight object is an internal representation of the Query thatallows the Query to be reused by the Searcher.</li>@@ -488,12 +263,12 @@ document.write("Last Published: " + document.lastModified);<li>The Searcher that initiated the call.</li><li>A- <a href="api/core/org/apache/lucene/search/Filter.html">Filter</a>+ <a href="core/org/apache/lucene/search/Filter.html">Filter</a>for limiting the result set. Note, the Filter may be null.</li><li>A- <a href="api/core/org/apache/lucene/search/Sort.html">Sort</a>+ <a href="core/org/apache/lucene/search/Sort.html">Sort</a>object for specifying how to sort the results if the standard score based sort method is notdesired.</li>@@ -504,44 +279,44 @@ document.write("Last Published: " + document.lastModified);<p> Assuming we are not sorting (since sorting doesn'teffect the raw Lucene score),we call one of the search methods of the Searcher, passing in the- <a href="api/core/org/apache/lucene/search/Weight.html">Weight</a>+ <a href="core/org/apache/lucene/search/Weight.html">Weight</a>object created by Searcher.createWeight(Query),- <a href="api/core/org/apache/lucene/search/Filter.html">Filter</a>+ <a href="core/org/apache/lucene/search/Filter.html">Filter</a>and the number of results we want. This methodreturns a- <a href="api/core/org/apache/lucene/search/TopDocs.html">TopDocs</a>+ <a href="core/org/apache/lucene/search/TopDocs.html">TopDocs</a>object, which is an internal collection of search results.The Searcher creates a- <a href="api/core/org/apache/lucene/search/TopScoreDocCollector.html">TopScoreDocCollector</a>+ <a href="core/org/apache/lucene/search/TopScoreDocCollector.html">TopScoreDocCollector</a>and passes it along with the Weight, Filter to another expert search method (for more on the- <a href="api/core/org/apache/lucene/search/Collector.html">Collector</a>+ <a href="core/org/apache/lucene/search/Collector.html">Collector</a>mechanism, see- <a href="api/core/org/apache/lucene/search/Searcher.html">Searcher</a>+ <a href="core/org/apache/lucene/search/Searcher.html">Searcher</a>.) The TopDocCollector uses a- <a href="api/core/org/apache/lucene/util/PriorityQueue.html">PriorityQueue</a>+ <a href="core/org/apache/lucene/util/PriorityQueue.html">PriorityQueue</a>to collect the top results for the search.</p><p>If a Filter is being used, some initial setup is done to determine which docs to include. Otherwise,we ask the Weight fora- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a>+ <a href="core/org/apache/lucene/search/Scorer.html">Scorer</a>for the- <a href="api/core/org/apache/lucene/index/IndexReader.html">IndexReader</a>+ <a href="core/org/apache/lucene/index/IndexReader.html">IndexReader</a>of the current searcher and we proceed bycalling the score method on the- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a>+ <a href="core/org/apache/lucene/search/Scorer.html">Scorer</a>.</p><p>At last, we are actually going to score some documents. The score method takes in the Collector(most likely the TopScoreDocCollector or TopFieldCollector) and does its business.Of course, here is where things get involved. The- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a>+ <a href="core/org/apache/lucene/search/Scorer.html">Scorer</a>that is returned by the- <a href="api/core/org/apache/lucene/search/Weight.html">Weight</a>+ <a href="core/org/apache/lucene/search/Weight.html">Weight</a>object depends on what type of Query was submitted. In most real world applications with multiplequery terms,the- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a>+ <a href="core/org/apache/lucene/search/Scorer.html">Scorer</a>is going to be a<a href="http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/BooleanScorer2.java?view=log">BooleanScorer2</a>(see the section on customizing your scoring for info on changing this.)@@ -558,42 +333,6 @@ document.write("Last Published: " + document.lastModified);your internal Scorer is most likely a DisjunctionSumScorer, which essentially combines the scorersfrom the sub scorers of the OR'd terms.</p></div>--</div>-<!--+- |end content- +-->-<div class="clearboth"> </div>-</div>-<div id="footer">-<!--+- |start bottomstrip- +-->-<div class="lastmodified">-<script type="text/javascript"><!---document.write("Last Published: " + document.lastModified);-// --></script>-</div>-<div class="copyright">- Copyright ©- 2006 <a href="http://www.apache.org/licenses/">The Apache Software Foundation.</a>-</div>-<!--+- |end bottomstrip- +-->-</div>-<script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();-</script></body></html>diff --git a/lucene/site/src/documentation/classes/CatalogManager.properties b/lucene/site/src/documentation/classes/CatalogManager.propertiesdeleted file mode 100755index af7b5ab3235..00000000000--- a/lucene/site/src/documentation/classes/CatalogManager.properties+++ /dev/null@@ -1,57 +0,0 @@-# Copyright 2002-2005 The Apache Software Foundation or its licensors,-# as applicable.-#-# 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.--#=======================================================================-# CatalogManager.properties for Catalog Entity Resolver.-#-# This is the default properties file for your project.-# This facilitates local configuration of application-specific catalogs.-# If you have defined any local catalogs, then they will be loaded-# before Forrest's core catalogs.-#-# See the Apache Forrest documentation:-# http://forrest.apache.org/docs/your-project.html-# http://forrest.apache.org/docs/validation.html--# verbosity:-# The level of messages for status/debug (messages go to standard output).-# The setting here is for your own local catalogs.-# The verbosity of Forrest's core catalogs is controlled via-# main/webapp/WEB-INF/cocoon.xconf-#-# The following messages are provided ...-# 0 = none-# 1 = ? (... not sure yet)-# 2 = 1+, Loading catalog, Resolved public, Resolved system-# 3 = 2+, Catalog does not exist, resolvePublic, resolveSystem-# 10 = 3+, List all catalog entries when loading a catalog-# (Cocoon also logs the "Resolved public" messages.)-verbosity=1--# catalogs ... list of additional catalogs to load-# (Note that Apache Forrest will automatically load its own default catalog-# from main/webapp/resources/schema/catalog.xcat)-# Use either full pathnames or relative pathnames.-# pathname separator is always semi-colon (;) regardless of operating system-# directory separator is always slash (/) regardless of operating system-catalogs=../resources/schema/catalog.xcat--# relative-catalogs-# If false, relative catalog URIs are made absolute with respect to the-# base URI of the CatalogManager.properties file. This setting only-# applies to catalog URIs obtained from the catalogs property in the-# CatalogManager.properties file-# Example: relative-catalogs=[yes|no]-relative-catalogs=nodiff --git a/lucene/site/src/documentation/conf/cli.xconf b/lucene/site/src/documentation/conf/cli.xconfdeleted file mode 100644index 86a80132ba5..00000000000--- a/lucene/site/src/documentation/conf/cli.xconf+++ /dev/null@@ -1,322 +0,0 @@-<?xml version="1.0"?>-<!--- Copyright 2002-2004 The Apache Software Foundation or its licensors,- as applicable.-- 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.--->-<!--+- | This is the Apache Cocoon command line configuration file.- | Here you give the command line interface details of where- | to find various aspects of your Cocoon installation.- |- | If you wish, you can also use this file to specify the URIs- | that you wish to generate.- |- | The current configuration information in this file is for- | building the Cocoon documentation. Therefore, all links here- | are relative to the build context dir, which, in the build.xml- | file, is set to ${build.context}- |- | Options:- | verbose: increase amount of information presented- | to standard output (default: false)- | follow-links: whether linked pages should also be- | generated (default: true)- | precompile-only: precompile sitemaps and XSP pages, but- | do not generate any pages (default: false)- | confirm-extensions: check the mime type for the generated page- | and adjust filename and links extensions- | to match the mime type- | (e.g. text/html->.html)- |- | Note: Whilst using an xconf file to configure the Cocoon- | Command Line gives access to more features, the use of- | command line parameters is more stable, as there are- | currently plans to improve the xconf format to allow- | greater flexibility. If you require a stable and- | consistent method for accessing the CLI, it is recommended- | that you use the command line parameters to configure- | the CLI. See documentation at:- | http://cocoon.apache.org/2.1/userdocs/offline/- | http://wiki.apache.org/cocoon/CommandLine- |- +-->--<cocoon verbose="true"- follow-links="true"- precompile-only="false"- confirm-extensions="false">-- <!--+- | The context directory is usually the webapp directory- | containing the sitemap.xmap file.- |- | The config file is the cocoon.xconf file.- |- | The work directory is used by Cocoon to store temporary- | files and cache files.- |- | The destination directory is where generated pages will- | be written (assuming the 'simple' mapper is used, see- | below)- +-->- <context-dir>.</context-dir>- <config-file>WEB-INF/cocoon.xconf</config-file>- <work-dir>../tmp/cocoon-work</work-dir>- <dest-dir>../site</dest-dir>-- <!--+- | A checksum file can be used to store checksums for pages- | as they are generated. When the site is next generated,- | files will not be written if their checksum has not changed.- | This means that it will be easier to detect which files- | need to be uploaded to a server, using the timestamp.- +-->- <!-- <checksums-uri>build/work/checksums</checksums-uri>-->-- <!--+- | Broken link reporting options:- | Report into a text file, one link per line:- | <broken-links type="text" report="filename"/>- | Report into an XML file:- | <broken-links type="xml" report="filename"/>- | Ignore broken links (default):- | <broken-links type="none"/>- |- | Two attributes to this node specify whether a page should- | be generated when an error has occured. 'generate' specifies- | whether a page should be generated (default: true) and- | extension specifies an extension that should be appended- | to the generated page's filename (default: none)- |- | Using this, a quick scan through the destination directory- | will show broken links, by their filename extension.- +-->- <broken-links type="xml"- file="../brokenlinks.xml"- generate="false"- extension=".error"- show-referrers="true"/>-- <!--+- | Load classes at startup. This is necessary for generating- | from sites that use SQL databases and JDBC.- | The <load-class> element can be repeated if multiple classes- | are needed.- +-->- <!--- <load-class>org.firebirdsql.jdbc.Driver</load-class>- -->-- <!--+- | Configures logging.- | The 'log-kit' parameter specifies the location of the log kit- | configuration file (usually called logkit.xconf.- |- | Logger specifies the logging category (for all logging prior- | to other Cocoon logging categories taking over)- |- | Available log levels are:- | DEBUG: prints all level of log messages.- | INFO: prints all level of log messages except DEBUG- | ones.- | WARN: prints all level of log messages except DEBUG- | and INFO ones.- | ERROR: prints all level of log messages except DEBUG,- | INFO and WARN ones.- | FATAL_ERROR: prints only log messages of this level- +-->- <!-- <logging log-kit="WEB-INF/logkit.xconf" logger="cli" level="ERROR" /> -->-- <!--+- | Specifies the filename to be appended to URIs that- | refer to a directory (i.e. end with a forward slash).- +-->- <default-filename>index.html</default-filename>-- <!--+- | Specifies a user agent string to the sitemap when- | generating the site.- |- | A generic term for a web browser is "user agent". Any- | user agent, when connecting to a web server, will provide- | a string to identify itself (e.g. as Internet Explorer or- | Mozilla). It is possible to have Cocoon serve different- | content depending upon the user agent string provided by- | the browser. If your site does this, then you may want to- | use this <user-agent> entry to provide a 'fake' user agent- | to Cocoon, so that it generates the correct version of your- | site.- |- | For most sites, this can be ignored.- +-->- <!--- <user-agent>Cocoon Command Line Environment 2.1</user-agent>- -->-- <!--+- | Specifies an accept string to the sitemap when generating- | the site.- | User agents can specify to an HTTP server what types of content- | (by mime-type) they are able to receive. E.g. a browser may be- | able to handle jpegs, but not pngs. The HTTP accept header- | allows the server to take the browser's capabilities into account,- | and only send back content that it can handle.- |- | For most sites, this can be ignored.- +-->-- <accept>*/*</accept>-- <!--+- | Specifies which URIs should be included or excluded, according- | to wildcard patterns.- |- | These includes/excludes are only relevant when you are following- | links. A link URI must match an include pattern (if one is given)- | and not match an exclude pattern, if it is to be followed by- | Cocoon. It can be useful, for example, where there are links in- | your site to pages that are not generated by Cocoon, such as- | references to api-documentation.- |- | By default, all URIs are included. If both include and exclude- | patterns are specified, a URI is first checked against the- | include patterns, and then against the exclude patterns.- |- | Multiple patterns can be given, using muliple include or exclude- | nodes.- |- | The order of the elements is not significant, as only the first- | successful match of each category is used.- |- | Currently, only the complete source URI can be matched (including- | any URI prefix). Future plans include destination URI matching- | and regexp matching. If you have requirements for these, contact- | [email protected].- +-->-- <exclude pattern="**/"/>- <exclude pattern="**apidocs**"/>- <exclude pattern="api/**"/>- <exclude pattern="**/api/contrib**"/>- <exclude pattern="**changes/Contrib-Changes.html"/>- <exclude pattern="**changes/Changes.html"/>-<!--- This is a workaround for FOR-284 "link rewriting broken when- linking to xml source views which contain site: links".- See the explanation there and in declare-broken-site-links.xsl--->- <exclude pattern="site:**"/>- <exclude pattern="ext:**"/>- <exclude pattern="**/site:**"/>- <exclude pattern="**/ext:**"/>-- <!-- Exclude tokens used in URLs to ASF mirrors (interpreted by a CGI) -->- <exclude pattern="[preferred]/**"/>- <exclude pattern="[location]"/>-- <!-- <include-links extension=".html"/>-->-- <!--+- | <uri> nodes specify the URIs that should be generated, and- | where required, what should be done with the generated pages.- | They describe the way the URI of the generated file is created- | from the source page's URI. There are three ways that a generated- | file URI can be created: append, replace and insert.- |- | The "type" attribute specifies one of (append|replace|insert):- |- | append:- | Append the generated page's URI to the end of the source URI:- |- | <uri type="append" src-prefix="documents/" src="index.html"- | dest="build/dest/"/>- |- | This means that- | (1) the "documents/index.html" page is generated- | (2) the file will be written to "build/dest/documents/index.html"- |- | replace:- | Completely ignore the generated page's URI - just- | use the destination URI:- |- | <uri type="replace" src-prefix="documents/" src="index.html"- | dest="build/dest/docs.html"/>- |- | This means that- | (1) the "documents/index.html" page is generated- | (2) the result is written to "build/dest/docs.html"- | (3) this works only for "single" pages - and not when links- | are followed- |- | insert:- | Insert generated page's URI into the destination- | URI at the point marked with a * (example uses fictional- | zip protocol)- |- | <uri type="insert" src-prefix="documents/" src="index.html"- | dest="zip://*.zip/page.html"/>- |- | This means that- | (1)- |- | In any of these scenarios, if the dest attribute is omitted,- | the value provided globally using the <dest-dir> node will- | be used instead.- +-->- <!--- <uri type="replace"- src-prefix="samples/"- src="hello-world/hello.html"- dest="build/dest/hello-world.html"/>- -->-- <!--+- | <uri> nodes can be grouped together in a <uris> node. This- | enables a group of URIs to share properties. The following- | properties can be set for a group of URIs:- | * follow-links: should pages be crawled for links- | * confirm-extensions: should file extensions be checked- | for the correct mime type- | * src-prefix: all source URIs should be- | pre-pended with this prefix before- | generation. The prefix is not- | included when calculating the- | destination URI- | * dest: the base destination URI to be- | shared by all pages in this group- | * type: the method to be used to calculate- | the destination URI. See above- | section on <uri> node for details.- |- | Each <uris> node can have a name attribute. When a name- | attribute has been specified, the -n switch on the command- | line can be used to tell Cocoon to only process the URIs- | within this URI group. When no -n switch is given, all- | <uris> nodes are processed. Thus, one xconf file can be- | used to manage multiple sites.- +-->- <!--- <uris name="mirrors" follow-links="false">- <uri type="append" src="mirrors.html"/>- </uris>- -->-- <!--+- | File containing URIs (plain text, one per line).- +-->- <!--- <uri-file>uris.txt</uri-file>- -->-</cocoon>diff --git a/lucene/site/src/documentation/content/.htaccess b/lucene/site/src/documentation/content/.htaccessdeleted file mode 100644index f1650fa44a6..00000000000--- a/lucene/site/src/documentation/content/.htaccess+++ /dev/null@@ -1,3 +0,0 @@-#Forrest generates UTF-8 by default, but these httpd servers are-#ignoring the meta http-equiv charset tags-AddDefaultCharset offdiff --git a/lucene/site/src/documentation/content/xdocs/contributions.xml b/lucene/site/src/documentation/content/xdocs/contributions.xmldeleted file mode 100644index 697e969c46a..00000000000--- a/lucene/site/src/documentation/content/xdocs/contributions.xml+++ /dev/null@@ -1,350 +0,0 @@-<?xml version="1.0"?>-<document>- <header>- <title>- Apache Lucene - Contributions- </title>- </header>- <properties>- <author email="[email protected]">- Peter Carlson- </author>- </properties>- <body>- <section id="Overview">- <title>Overview</title>- <p>This page lists external Lucene resources. If you have- written something that should be included, please post all- relevant information to one of the mailing lists. Nothing- listed here is directly supported by the Lucene- developers, so if you encounter any problems with any of- this software, please use the author's contact information- to get help.</p>- <p>If you are looking for information on contributing patches or other improvements to Lucene, see- <a href="http://wiki.apache.org/lucene-java/HowToContribute">How To Contribute</a> on the Lucene Wiki.</p>- </section>-- <section id="Lucene Tools">- <title>Lucene Tools</title>- <p>- Software that works with Lucene indices.- </p>- <section id="Luke"><title>Luke</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="http://www.getopt.org/luke/">- http://www.getopt.org/luke/- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- Andrzej Bialecki- </td>- </tr>- </table>- </section>- <section id="LIMO (Lucene Index Monitor)">- <title>LIMO (Lucene Index Monitor)</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="http://limo.sf.net/">- http://limo.sf.net/- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- Julien Nioche- </td>- </tr>- </table>- </section>- </section>-- <section id="Lucene Document Converters">- <title>Lucene Document Converters</title>- <p>- Lucene requires information you want to index to be- converted into a Document class. Here are- contributions for various solutions that convert different- content types to Lucene's Document classes.- </p>- <section id="XML Document #1">- <title>XML Document #1</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="http://marc.theaimsgroup.com/?l=lucene-dev&m=100723333506246&w=2">- http://marc.theaimsgroup.com/?l=lucene-dev&m=100723333506246&w=2- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- Philip Ogren - [email protected]- </td>- </tr>- </table>- </section>- <section id="XML Document #2">- <title>XML Document #2</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="http://www.mail-archive.com/[email protected]/msg00346.html">- http://www.mail-archive.com/[email protected]/msg00346.html- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- Peter Carlson - [email protected]- </td>- </tr>- </table>- </section>- <section id="PDF Box">- <title>PDF Box</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="http://www.pdfbox.org/">- http://www.pdfbox.org/- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- Ben Litchfield - [email protected]- </td>- </tr>- </table>- </section>- <section id="XPDF - PDF Document Conversion">- <title>XPDF - PDF Document Conversion</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="http://www.foolabs.com/xpdf">- http://www.foolabs.com/xpdf- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- N/A- </td>- </tr>- </table>- </section>- <section id="PDFTextStream -- PDF text and metadata extraction">- <title>PDFTextStream -- PDF text and metadata extraction</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="http://snowtide.com">- http://snowtide.com- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- N/A- </td>- </tr>- </table>- </section>- <section id="PJ Classic & PJ Professional - PDF Document Conversion">- <title>PJ Classic & PJ Professional - PDF Document Conversion</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href=" http://www.etymon.com/">- http://www.etymon.com/- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- N/A- </td>- </tr>- </table>- </section>- </section>-- <section id="Miscellaneous">- <title>Miscellaneous</title>- <p>- </p>- <section id="Arabic Analyzer for Java">- <title>Arabic Analyzer for Java</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="http://savannah.nongnu.org/projects/aramorph">- http://savannah.nongnu.org/projects/aramorph- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- Pierrick Brihaye- </td>- </tr>- </table>- </section>- <section id="Phonetix">- <title>Phonetix</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="http://www.companywebstore.de/tangentum/mirror/en/products/phonetix/index.html">- http://www.companywebstore.de/tangentum/mirror/en/products/phonetix/index.html- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- tangentum technologies- </td>- </tr>- </table>- </section>- <section id="ejIndex - JBoss MBean for Lucene">- <title>ejIndex - JBoss MBean for Lucene</title>- <p>- </p>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="http://ejindex.sourceforge.net/">- http://ejindex.sourceforge.net/- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- Andy Scholz- </td>- </tr>- </table>- </section>- <section id="JavaCC">- <title>JavaCC</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="https://javacc.dev.java.net/">- https://javacc.dev.java.net/- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- Sun Microsystems (java.net)- </td>- </tr>- </table>- </section>- <section id="LuSQL">- <title>LuSQL - Index databases with Lucene</title>- <table>- <tr>- <th width="%1">- URL- </th>- <td>- <a href="http://lab.cisti-icist.nrc-cnrc.gc.ca/cistilabswiki/index.php/LuSql">- http://lab.cisti-icist.nrc-cnrc.gc.ca/cistilabswiki/index.php/LuSql- </a>- </td>- </tr>- <tr>- <th width="%1">- author- </th>- <td>- Glen Newton- </td>- </tr>- </table>- </section>- </section>- </body>-</document>diff --git a/lucene/site/src/documentation/content/xdocs/demo.xml b/lucene/site/src/documentation/content/xdocs/demo.xmldeleted file mode 100644index df447e78a4c..00000000000--- a/lucene/site/src/documentation/content/xdocs/demo.xml+++ /dev/null@@ -1,79 +0,0 @@-<?xml version="1.0"?>-<document>- <header>- <title>- Apache Lucene - Building and Installing the Basic Demo- </title>- </header>-<properties>-<author email="[email protected]">Andrew C. Oliver</author>-</properties>-<body>--<section id="About this Document"><title>About this Document</title>-<p>-This document is intended as a "getting started" guide to using and running the Lucene demos.-It walks you through some basic installation and configuration.-</p>-</section>---<section id="About the Demo"><title>About the Demo</title>-<p>-The Lucene command-line demo code consists of an application that demonstrates various-functionalities of Lucene and how you can add Lucene to your applications.-</p>-</section>--<section id="Setting your CLASSPATH"><title>Setting your CLASSPATH</title>-<p>-First, you should <a href="http://www.apache.org/dyn/closer.cgi/lucene/java/">download</a> the-latest Lucene distribution and then extract it to a working directory.-</p>-<p>-You need three JARs: the Lucene JAR, the common analysis JAR, and the Lucene demo JAR. You should-see the Lucene JAR file in the core/ directory you created when you extracted the archive -- it-should be named something like <code>lucene-core-{version}.jar</code>. You should also see files-called <code>lucene-analyzers-common-{version}.jar</code> and <code>lucene-demo-{version}.jar</code>-under analysis/common/ and demo/, respectively.-</p>-<p>-Put all three of these files in your Java CLASSPATH.-</p>-</section>--<section id="Indexing Files"><title>Indexing Files</title>-<p>-Once you've gotten this far you're probably itching to go. Let's <b>build an index!</b> Assuming-you've set your CLASSPATH correctly, just type:--<pre>- java org.apache.lucene.demo.IndexFiles -docs {path-to-lucene}/src-</pre>--This will produce a subdirectory called <code>index</code> which will contain an index of all of the-Lucene source code.-</p>-<p>-To <b>search the index</b> type:--<pre>- java org.apache.lucene.demo.SearchFiles-</pre>--You'll be prompted for a query. Type in a swear word and press the enter key. You'll see that the-Lucene developers are very well mannered and get no results. Now try entering the word "string".-That should return a whole bunch of documents. The results will page at every tenth result and ask-you whether you want more results.-</p>-</section>--<section id="About the code..."><title>About the code...</title>-<p>-<a href="demo2.html">read on>>></a>-</p>-</section>--</body>-</document>-diff --git a/lucene/site/src/documentation/content/xdocs/demo2.xml b/lucene/site/src/documentation/content/xdocs/demo2.xmldeleted file mode 100644index db80b877609..00000000000--- a/lucene/site/src/documentation/content/xdocs/demo2.xml+++ /dev/null@@ -1,154 +0,0 @@-<?xml version="1.0"?>-<document>- <header>- <title>- Apache Lucene - Basic Demo Sources Walk-through- </title>- </header>-<properties>-<author email="[email protected]">Andrew C. Oliver</author>-</properties>-<body>--<section id="About the Code"><title>About the Code</title>-<p>-In this section we walk through the sources behind the command-line Lucene demo: where to find them,-their parts and their function. This section is intended for Java developers wishing to understand-how to use Lucene in their applications.-</p>-</section>---<section id="Location of the source"><title>Location of the source</title>--<p>-NOTE: to examine the sources, you need to download and extract a source checkout of-Lucene: (lucene-{version}-src.zip).-</p>--<p>-Relative to the directory created when you extracted Lucene, you-should see a directory called <code>lucene/demo/</code>. This is the root for the Lucene-demo. Under this directory is <code>src/java/org/apache/lucene/demo/</code>. This is where all-the Java sources for the demo live.-</p>--<p>-Within this directory you should see the <code>IndexFiles.java</code> class we executed earlier.-Bring it up in <code>vi</code> or your editor of choice and let's take a look at it.-</p>--</section>--<section id="IndexFiles"><title>IndexFiles</title>--<p>-As we discussed in the previous walk-through, the <a-href="api/demo/org/apache/lucene/demo/IndexFiles.html">IndexFiles</a> class creates a Lucene-Index. Let's take a look at how it does this.-</p>--<p>-The <code>main()</code> method parses the command-line parameters, then in preparation for-instantiating <a href="api/core/org/apache/lucene/index/IndexWriter.html">IndexWriter</a>, opens a-<a href="api/core/org/apache/lucene/store/Directory.html">Directory</a> and instantiates-<a href="api/analyzers-common/org/apache/lucene/analysis/standard/StandardAnalyzer.html"->StandardAnalyzer</a> and-<a href="api/core/org/apache/lucene/index/IndexWriterConfig.html">IndexWriterConfig</a>.-</p>--<p>-The value of the <code>-index</code> command-line parameter is the name of the filesystem directory-where all index information should be stored. If <code>IndexFiles</code> is invoked with a-relative path given in the <code>-index</code> command-line parameter, or if the <code>-index</code>-command-line parameter is not given, causing the default relative index path "<code>index</code>"-to be used, the index path will be created as a subdirectory of the current working directory-(if it does not already exist). On some platforms, the index path may be created in a different-directory (such as the user's home directory).-</p>--<p>-The <code>-docs</code> command-line parameter value is the location of the directory containing-files to be indexed.-</p>--<p>-The <code>-update</code> command-line parameter tells <code>IndexFiles</code> not to delete the-index if it already exists. When <code>-update</code> is not given, <code>IndexFiles</code> will-first wipe the slate clean before indexing any documents.-</p>--<p>-Lucene <a href="api/core/org/apache/lucene/store/Directory.html">Directory</a>s are used by the-<code>IndexWriter</code> to store information in the index. In addition to the-<a href="api/core/org/apache/lucene/store/FSDirectory.html">FSDirectory</a> implementation we are using,-there are several other <code>Directory</code> subclasses that can write to RAM, to databases, etc.-</p>--<p>-Lucene <a href="api/core/org/apache/lucene/analysis/Analyzer.html">Analyzer</a>s are processing pipelines-that break up text into indexed tokens, a.k.a. terms, and optionally perform other operations on these-tokens, e.g. downcasing, synonym insertion, filtering out unwanted tokens, etc. The <code>Analyzer</code>-we are using is <code>StandardAnalyzer</code>, which creates tokens using the Word Break rules from the-Unicode Text Segmentation algorithm specified in <a href="http://unicode.org/reports/tr29/">Unicode-Standard Annex #29</a>; converts tokens to lowercase; and then filters out stopwords. Stopwords are-common language words such as articles (a, an, the, etc.) and other tokens that may have less value for-searching. It should be noted that there are different rules for every language, and you should use the-proper analyzer for each. Lucene currently provides Analyzers for a number of different languages (see-the javadocs under-<a href="api/analyzers-common/org/apache/lucene/analysis/"->lucene/analysis/common/src/java/org/apache/lucene/analysis</a>).-</p>--<p>-The <code>IndexWriterConfig</code> instance holds all configuration for <code>IndexWriter</code>. For-example, we set the <code>OpenMode</code> to use here based on the value of the <code>-update</code>-command-line parameter.-</p>--<p>-Looking further down in the file, after <code>IndexWriter</code> is instantiated, you should see the-<code>indexDocs()</code> code. This recursive function crawls the directories and creates-<a href="api/core/org/apache/lucene/document/Document.html">Document</a> objects. The-<code>Document</code> is simply a data object to represent the text content from the file as well as-its creation time and location. These instances are added to the <code>IndexWriter</code>. If-the <code>-update</code> command-line parameter is given, the <code>IndexWriter</code>-<code>OpenMode</code> will be set to <code>OpenMode.CREATE_OR_APPEND</code>, and rather than-adding documents to the index, the <code>IndexWriter</code> will <strong>update</strong> them-in the index by attempting to find an already-indexed document with the same identifier (in our-case, the file path serves as the identifier); deleting it from the index if it exists; and then-adding the new document to the index.-</p>--</section>--<section id="Searching Files"><title>Searching Files</title>--<p>-The <a href="api/demo/org/apache/lucene/demo/SearchFiles.html">SearchFiles</a> class is-quite simple. It primarily collaborates with an-<a href="api/core/org/apache/lucene/search/IndexSearcher.html">IndexSearcher</a>,-<a href="api/analyzers-common/org/apache/lucene/analysis/standard/StandardAnalyzer.html"->StandardAnalyzer</a> (which is used in the-<a href="api/demo/org/apache/lucene/demo/IndexFiles.html">IndexFiles</a> class as well)-and a <a href="api/core/org/apache/lucene/queryParser/QueryParser.html">QueryParser</a>. The-query parser is constructed with an analyzer used to interpret your query text in the same way the-documents are interpreted: finding word boundaries, downcasing, and removing useless words like-'a', 'an' and 'the'. The <a href="api/core/org/apache/lucene/search/Query.html">Query</a>-object contains the results from the-<a href="api/core/org/apache/lucene/queryParser/QueryParser.html">QueryParser</a> which is passed-to the searcher. Note that it's also possible to programmatically construct a rich-<a href="api/core/org/apache/lucene/search/Query.html">Query</a> object without using the query-parser. The query parser just enables decoding the <a href="queryparsersyntax.html">Lucene query-syntax</a> into the corresponding <a href="api/core/org/apache/lucene/search/Query.html">Query</a>-object.-</p>--<p>-<code>SearchFiles</code> uses the <code>IndexSearcher.search(query,n)</code> method that returns-<a href="api/core/org/apache/lucene/search/TopDocs.html">TopDocs</a> with max <code>n</code> hits.-The results are printed in pages, sorted by score (i.e. relevance).-</p>-</section>-</body>-</document>diff --git a/lucene/site/src/documentation/content/xdocs/fileformats.xml b/lucene/site/src/documentation/content/xdocs/fileformats.xmldeleted file mode 100644index 4525096fdfe..00000000000--- a/lucene/site/src/documentation/content/xdocs/fileformats.xml+++ /dev/null@@ -1,1934 +0,0 @@-<?xml version="1.0"?>--<document>- <header>- <title>- Apache Lucene - Index File Formats- </title>- </header>-- <body>- <section id="Index File Formats"><title>Index File Formats</title>-- <p>- This document defines the index file formats used- in this version of Lucene. If you are using a different- version of Lucene, please consult the copy of- <code>docs/fileformats.html</code>- that was distributed- with the version you are using.- </p>-- <p>- Apache Lucene is written in Java, but several- efforts are underway to write- <a href="http://wiki.apache.org/lucene-java/LuceneImplementations">versions- of Lucene in other programming- languages</a>. If these versions are to remain compatible with Apache- Lucene, then a language-independent definition of the Lucene index- format is required. This document thus attempts to provide a- complete and independent definition of the Apache Lucene file- formats.- </p>-- <p>- As Lucene evolves, this document should evolve.- Versions of Lucene in different programming languages should endeavor- to agree on file formats, and generate new versions of this document.- </p>-- <p>- Compatibility notes are provided in this document,- describing how file formats have changed from prior versions.- </p>-- <p>- In version 2.1, the file format was changed to allow- lock-less commits (ie, no more commit lock). The- change is fully backwards compatible: you can open a- pre-2.1 index for searching or adding/deleting of- docs. When the new segments file is saved- (committed), it will be written in the new file format- (meaning no specific "upgrade" process is needed).- But note that once a commit has occurred, pre-2.1- Lucene will not be able to read the index.- </p>-- <p>- In version 2.3, the file format was changed to allow- segments to share a single set of doc store (vectors &- stored fields) files. This allows for faster indexing- in certain cases. The change is fully backwards- compatible (in the same way as the lock-less commits- change in 2.1).- </p>-- <p>- In version 2.4, Strings are now written as true UTF-8- byte sequence, not Java's modified UTF-8. See issue- LUCENE-510 for details.- </p>-- <p>- In version 2.9, an optional opaque Map<String,String>- CommitUserData may be passed to IndexWriter's commit- methods (and later retrieved), which is recorded in- the segments_N file. See issue LUCENE-1382 for- details. Also, diagnostics were added to each segment- written recording details about why it was written- (due to flush, merge; which OS/JRE was used; etc.).- See issue LUCENE-1654 for details.- </p>-- <p>- In version 3.0, compressed fields are no longer- written to the index (they can still be read, but on- merge the new segment will write them,- uncompressed). See issue LUCENE-1960 for details.- </p>-- <p>- In version 3.1, segments records the code version- that created them. See LUCENE-2720 for details.-- Additionally segments track explicitly whether or- not they have term vectors. See LUCENE-2811 for details.- </p>- <p>- In version 3.2, numeric fields are written as natively- to stored fields file, previously they were stored in- text format only.- </p>- <p>- In version 3.4, fields can omit position data while- still indexing term frequencies.- </p>- </section>-- <section id="Definitions"><title>Definitions</title>-- <p>- The fundamental concepts in Lucene are index,- document, field and term.- </p>--- <p>- An index contains a sequence of documents.- </p>-- <ul>- <li>- <p>- A document is a sequence of fields.- </p>- </li>-- <li>- <p>- A field is a named sequence of terms.- </p>- </li>-- <li>- A term is a string.- </li>- </ul>-- <p>- The same string in two different fields is- considered a different term. Thus terms are represented as a pair of- strings, the first naming the field, and the second naming text- within the field.- </p>-- <section id="Inverted Indexing"><title>Inverted Indexing</title>-- <p>- The index stores statistics about terms in order- to make term-based search more efficient. Lucene's- index falls into the family of indexes known as an <i>inverted- index.</i> This is because it can list, for a term, the documents that contain- it. This is the inverse of the natural relationship, in which- documents list terms.- </p>- </section>- <section id="Types of Fields">- <title>Types of Fields</title>- <p>- In Lucene, fields may be <i>stored</i>, in which- case their text is stored in the index literally, in a non-inverted- manner. Fields that are inverted are called <i>indexed</i>. A field- may be both stored and indexed.</p>-- <p>The text of a field may be <i>tokenized</i> into terms to be- indexed, or the text of a field may be used literally as a term to be indexed.- Most fields are- tokenized, but sometimes it is useful for certain identifier fields- to be indexed literally.- </p>- <p>See the <a href="api/core/org/apache/lucene/document/Field.html">Field</a> java docs for more information on Fields.</p>- </section>-- <section id="Segments"><title>Segments</title>-- <p>- Lucene indexes may be composed of multiple sub-indexes, or- <i>segments</i>. Each segment is a fully independent index, which could be searched- separately. Indexes evolve by:- </p>-- <ol>- <li>- <p>Creating new segments for newly added documents.</p>- </li>- <li>- <p>Merging existing segments.</p>- </li>- </ol>-- <p>- Searches may involve multiple segments and/or multiple indexes, each- index potentially composed of a set of segments.- </p>- </section>-- <section id="Document Numbers"><title>Document Numbers</title>-- <p>- Internally, Lucene refers to documents by an integer <i>document- number</i>. The first document added to an index is numbered zero, and each- subsequent document added gets a number one greater than the previous.- </p>-- <p>- <br/>- </p>-- <p>- Note that a document's number may change, so caution should be taken- when storing these numbers outside of Lucene. In particular, numbers may- change in the following situations:- </p>--- <ul>- <li>- <p>- The- numbers stored in each segment are unique only within the segment,- and must be converted before they can be used in a larger context.- The standard technique is to allocate each segment a range of- values, based on the range of numbers used in that segment. To- convert a document number from a segment to an external value, the- segment's <i>base</i> document- number is added. To convert an external value back to a- segment-specific value, the segment is identified by the range that- the external value is in, and the segment's base value is- subtracted. For example two five document segments might be- combined, so that the first segment has a base value of zero, and- the second of five. Document three from the second segment would- have an external value of eight.- </p>- </li>- <li>- <p>- When documents are deleted, gaps are created- in the numbering. These are eventually removed as the index evolves- through merging. Deleted documents are dropped when segments are- merged. A freshly-merged segment thus has no gaps in its numbering.- </p>- </li>- </ul>-- </section>-- </section>-- <section id="Overview"><title>Overview</title>-- <p>- Each segment index maintains the following:- </p>- <ul>- <li>- <p>Field names. This- contains the set of field names used in the index.-- </p>- </li>- <li>- <p>Stored Field- values. This contains, for each document, a list of attribute-value- pairs, where the attributes are field names. These are used to- store auxiliary information about the document, such as its title,- url, or an identifier to access a- database. The set of stored fields are what is returned for each hit- when searching. This is keyed by document number.- </p>- </li>- <li>- <p>Term dictionary.- A dictionary containing all of the terms used in all of the indexed- fields of all of the documents. The dictionary also contains the- number of documents which contain the term, and pointers to the- term's frequency and proximity data.- </p>- </li>-- <li>- <p>Term Frequency- data. For each term in the dictionary, the numbers of all the- documents that contain that term, and the frequency of the term in- that document, unless frequencies are omitted (IndexOptions.DOCS_ONLY)- </p>- </li>-- <li>- <p>Term Proximity- data. For each term in the dictionary, the positions that the term- occurs in each document. Note that this will- not exist if all fields in all documents omit position data.- </p>- </li>-- <li>- <p>Normalization- factors. For each field in each document, a value is stored that is- multiplied into the score for hits on that field.- </p>- </li>- <li>- <p>Term Vectors. For each field in each document, the term vector- (sometimes called document vector) may be stored. A term vector consists- of term text and term frequency. To add Term Vectors to your index see the- <a href="api/core/org/apache/lucene/document/Field.html">Field</a>- constructors- </p>- </li>- <li>- <p>Deleted documents.- An optional file indicating which documents are deleted.- </p>- </li>- </ul>-- <p>Details on each of these are provided in subsequent sections.- </p>- </section>-- <section id="File Naming"><title>File Naming</title>-- <p>- All files belonging to a segment have the same name with varying- extensions. The extensions correspond to the different file formats- described below. When using the Compound File format (default in 1.4 and greater) these files are- collapsed into a single .cfs file (see below for details)- </p>-- <p>- Typically, all segments- in an index are stored in a single directory, although this is not- required.- </p>-- <p>- As of version 2.1 (lock-less commits), file names are- never re-used (there is one exception, "segments.gen",- see below). That is, when any file is saved to the- Directory it is given a never before used filename.- This is achieved using a simple generations approach.- For example, the first segments file is segments_1,- then segments_2, etc. The generation is a sequential- long integer represented in alpha-numeric (base 36)- form.- </p>-- </section>- <section id="file-names"><title>Summary of File Extensions</title>- <p>The following table summarizes the names and extensions of the files in Lucene:- <table>- <tr>- <th>Name</th>- <th>Extension</th>- <th>Brief Description</th>- </tr>- <tr>- <td><a href="#Segments File">Segments File</a></td>- <td>segments.gen, segments_N</td>- <td>Stores information about segments</td>- </tr>- <tr>- <td><a href="#Lock File">Lock File</a></td>- <td>write.lock</td>- <td>The Write lock prevents multiple IndexWriters from writing to the same file.</td>- </tr>- <tr>- <td><a href="#Compound Files">Compound File</a></td>- <td>.cfs</td>- <td>An optional "virtual" file consisting of all the other index files for systems- that frequently run out of file handles.</td>- </tr>- <tr>- <td><a href="#Compound File">Compound File Entry table</a></td>- <td>.cfe</td>- <td>The "virtual" compound file's entry table holding all entries in the corresponding .cfs file (Since 3.4)</td>- </tr>- <tr>- <td><a href="#Fields">Fields</a></td>- <td>.fnm</td>- <td>Stores information about the fields</td>- </tr>- <tr>- <td><a href="#field_index">Field Index</a></td>- <td>.fdx</td>- <td>Contains pointers to field data</td>- </tr>- <tr>- <td><a href="#field_data">Field Data</a></td>- <td>.fdt</td>- <td>The stored fields for documents</td>- </tr>- <tr>- <td><a href="#tis">Term Infos</a></td>- <td>.tis</td>- <td>Part of the term dictionary, stores term info</td>- </tr>- <tr>- <td><a href="#tii">Term Info Index</a></td>- <td>.tii</td>- <td>The index into the Term Infos file</td>- </tr>- <tr>- <td><a href="#Frequencies">Frequencies</a></td>- <td>.frq</td>- <td>Contains the list of docs which contain each term along with frequency</td>- </tr>- <tr>- <td><a href="#Positions">Positions</a></td>- <td>.prx</td>- <td>Stores position information about where a term occurs in the index</td>- </tr>- <tr>- <td><a href="#Normalization Factors">Norms</a></td>- <td>.nrm</td>- <td>Encodes length and boost factors for docs and fields</td>- </tr>- <tr>- <td><a href="#tvx">Term Vector Index</a></td>- <td>.tvx</td>- <td>Stores offset into the document data file</td>- </tr>- <tr>- <td><a href="#tvd">Term Vector Documents</a></td>- <td>.tvd</td>- <td>Contains information about each document that has term vectors</td>- </tr>- <tr>- <td><a href="#tvf">Term Vector Fields</a></td>- <td>.tvf</td>- <td>The field level info about term vectors</td>- </tr>- <tr>- <td><a href="#Deleted Documents">Deleted Documents</a></td>- <td>.del</td>- <td>Info about what files are deleted</td>- </tr>- </table>-- </p>- </section>-- <section id="Primitive Types"><title>Primitive Types</title>-- <section id="Byte"><title>Byte</title>-- <p>- The most primitive type- is an eight-bit byte. Files are accessed as sequences of bytes. All- other data types are defined as sequences- of bytes, so file formats are byte-order independent.- </p>-- </section>-- <section id="UInt32"><title>UInt32</title>-- <p>- 32-bit unsigned integers are written as four- bytes, high-order bytes first.- </p>- <p>- UInt32 --> <Byte><sup>4</sup>- </p>-- </section>-- <section id="Uint64"><title>Uint64</title>-- <p>- 64-bit unsigned integers are written as eight- bytes, high-order bytes first.- </p>-- <p>UInt64 --> <Byte><sup>8</sup>- </p>-- </section>-- <section id="VInt"><title>VInt</title>-- <p>- A variable-length format for positive integers is- defined where the high-order bit of each byte indicates whether more- bytes remain to be read. The low-order seven bits are appended as- increasingly more significant bits in the resulting integer value.- Thus values from zero to 127 may be stored in a single byte, values- from 128 to 16,383 may be stored in two bytes, and so on.- </p>-- <p>- <b>VInt Encoding Example</b>- </p>-- <table width="100%" border="0" cellpadding="4" cellspacing="0">- <col width="64*"/>- <col width="64*"/>- <col width="64*"/>- <col width="64*"/>- <tr valign="TOP">- <td width="25%">- <p align="RIGHT">- <b>Value</b>- </p>- </td>- <td width="25%">- <p align="RIGHT">- <b>First byte</b>- </p>- </td>- <td width="25%">- <p align="RIGHT">- <b>Second byte</b>- </p>- </td>- <td width="25%">- <p align="RIGHT">- <b>Third byte</b>- </p>- </td>- </tr>- <tr valign="BOTTOM">- <td width="25%" sdval="0" sdnum="1033;0;#,##0">- <p align="RIGHT">0- </p>- </td>- <td width="25%" sdval="0" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: 0.11cm;- margin-right: 0.01cm">- 00000000- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.07cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.47cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- </tr>- <tr valign="BOTTOM">- <td width="25%" sdval="1" sdnum="1033;0;#,##0">- <p align="RIGHT">1- </p>- </td>- <td width="25%" sdval="1" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: 0.11cm;- margin-right: 0.01cm">- 00000001- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.07cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.47cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- </tr>- <tr valign="BOTTOM">- <td width="25%" sdval="2" sdnum="1033;0;#,##0">- <p align="RIGHT">2- </p>- </td>- <td width="25%" sdval="10" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: 0.11cm;- margin-right: 0.01cm">- 00000010- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.07cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.47cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- </tr>- <tr>- <td width="25%" valign="TOP">- <p align="RIGHT">...- </p>- </td>- <td width="25%" valign="BOTTOM" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: 0.11cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- <td width="25%" valign="BOTTOM" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.07cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- <td width="25%" valign="BOTTOM" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.47cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- </tr>- <tr valign="BOTTOM">- <td width="25%" sdval="127" sdnum="1033;0;#,##0">- <p align="RIGHT">127- </p>- </td>- <td width="25%" sdval="1111111" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: 0.11cm;- margin-right: 0.01cm">- 01111111- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.07cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.47cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- </tr>- <tr valign="BOTTOM">- <td width="25%" sdval="128" sdnum="1033;0;#,##0">- <p align="RIGHT">128- </p>- </td>- <td width="25%" sdval="10000000" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: 0.11cm;- margin-right: 0.01cm">- 10000000- </p>- </td>- <td width="25%" sdval="1" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: -0.07cm;- margin-right: 0.01cm">- 00000001- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.47cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- </tr>- <tr valign="BOTTOM">- <td width="25%" sdval="129" sdnum="1033;0;#,##0">- <p align="RIGHT">129- </p>- </td>- <td width="25%" sdval="10000001" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: 0.11cm;- margin-right: 0.01cm">- 10000001- </p>- </td>- <td width="25%" sdval="1" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: -0.07cm;- margin-right: 0.01cm">- 00000001- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.47cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- </tr>- <tr valign="BOTTOM">- <td width="25%" sdval="130" sdnum="1033;0;#,##0">- <p align="RIGHT">130- </p>- </td>- <td width="25%" sdval="10000010" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: 0.11cm;- margin-right: 0.01cm">- 10000010- </p>- </td>- <td width="25%" sdval="1" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: -0.07cm;- margin-right: 0.01cm">- 00000001- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.47cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- </tr>- <tr>- <td width="25%" valign="TOP">- <p align="RIGHT">...- </p>- </td>- <td width="25%" valign="BOTTOM" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: 0.11cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- <td width="25%" valign="BOTTOM" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.07cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- <td width="25%" valign="BOTTOM" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.47cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- </tr>- <tr valign="BOTTOM">- <td width="25%" sdval="16383" sdnum="1033;0;#,##0">- <p align="RIGHT">16,383- </p>- </td>- <td width="25%" sdval="11111111" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: 0.11cm;- margin-right: 0.01cm">- 11111111- </p>- </td>- <td width="25%" sdval="1111111" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: -0.07cm;- margin-right: 0.01cm">- 01111111- </p>- </td>- <td width="25%" sdnum="1033;0;00000000">- <p align="RIGHT" style="margin-left: -0.47cm; margin-right:- 0.01cm">- <br/>-- </p>- </td>- </tr>- <tr valign="BOTTOM">- <td width="25%" sdval="16384" sdnum="1033;0;#,##0">- <p align="RIGHT">16,384- </p>- </td>- <td width="25%" sdval="10000000" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: 0.11cm;- margin-right: 0.01cm">- 10000000- </p>- </td>- <td width="25%" sdval="10000000" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: -0.07cm;- margin-right: 0.01cm">- 10000000- </p>- </td>- <td width="25%" sdval="1" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: -0.47cm;- margin-right: 0.01cm">- 00000001- </p>- </td>- </tr>- <tr valign="BOTTOM">- <td width="25%" sdval="16385" sdnum="1033;0;#,##0">- <p align="RIGHT">16,385- </p>- </td>- <td width="25%" sdval="10000001" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: 0.11cm;- margin-right: 0.01cm">- 10000001- </p>- </td>- <td width="25%" sdval="10000000" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: -0.07cm;- margin-right: 0.01cm">- 10000000- </p>- </td>- <td width="25%" sdval="1" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: -0.47cm;- margin-right: 0.01cm">- 00000001- </p>- </td>- </tr>- <tr>- <td width="25%" valign="TOP">- <p align="RIGHT">...- </p>- </td>- <td width="25%" valign="BOTTOM" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: 0.11cm;- margin-right: 0.01cm">- <br/>-- </p>- </td>- <td width="25%" valign="BOTTOM" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: -0.07cm;- margin-right: 0.01cm">- <br/>-- </p>- </td>- <td width="25%" valign="BOTTOM" sdnum="1033;0;00000000">- <p class="western" align="RIGHT" style="margin-left: -0.47cm;- margin-right: 0.01cm">- <br/>-- </p>- </td>- </tr>- </table>-- <p>- This provides compression while still being- efficient to decode.- </p>-- </section>-- <section id="Chars"><title>Chars</title>-- <p>- Lucene writes unicode- character sequences as UTF-8 encoded bytes.- </p>--- </section>-- <section id="String"><title>String</title>-- <p>- Lucene writes strings as UTF-8 encoded bytes.- First the length, in bytes, is written as a VInt,- followed by the bytes.- </p>-- <p>- String --> VInt, Chars- </p>-- </section>- </section>-- <section id="Compound Types"><title>Compound Types</title>- <section id="MapStringString"><title>Map<String,String></title>-- <p>- In a couple places Lucene stores a Map- String->String.- </p>-- <p>- Map<String,String> --> Count<String,String><sup>Count</sup>- </p>-- </section>-- </section>-- <section id="Per-Index Files"><title>Per-Index Files</title>-- <p>- The files in this section exist one-per-index.- </p>-- <section id="Segments File"><title>Segments File</title>-- <p>- The active segments in the index are stored in the- segment info file,- <tt>segments_N</tt>.- There may- be one or more- <tt>segments_N</tt>- files in the- index; however, the one with the largest- generation is the active one (when older- segments_N files are present it's because they- temporarily cannot be deleted, or, a writer is in- the process of committing, or a custom- <a href="api/core/org/apache/lucene/index/IndexDeletionPolicy.html">IndexDeletionPolicy</a>- is in use). This file lists each- segment by name, has details about the separate- norms and deletion files, and also contains the- size of each segment.- </p>-- <p>- As of 2.1, there is also a file- <tt>segments.gen</tt>.- This file contains the- current generation (the- <tt>_N</tt>- in- <tt>segments_N</tt>)- of the index. This is- used only as a fallback in case the current- generation cannot be accurately determined by- directory listing alone (as is the case for some- NFS clients with time-based directory cache- expiraation). This file simply contains an Int32- version header (SegmentInfos.FORMAT_LOCKLESS =- -2), followed by the generation recorded as Int64,- written twice.- </p>- <p>- <b>3.1</b>- Segments --> Format, Version, NameCounter, SegCount, <SegVersion, SegName, SegSize, DelGen, DocStoreOffset, [DocStoreSegment, DocStoreIsCompoundFile], HasSingleNormFile, NumField,- NormGen<sup>NumField</sup>,- IsCompoundFile, DeletionCount, HasProx, Diagnostics, HasVectors><sup>SegCount</sup>, CommitUserData, Checksum- </p>-- <p>- Format, NameCounter, SegCount, SegSize, NumField,- DocStoreOffset, DeletionCount --> Int32- </p>-- <p>- Version, DelGen, NormGen, Checksum --> Int64- </p>-- <p>- SegVersion, SegName, DocStoreSegment --> String- </p>-- <p>- Diagnostics --> Map<String,String>- </p>-- <p>- IsCompoundFile, HasSingleNormFile,- DocStoreIsCompoundFile, HasProx, HasVectors --> Int8- </p>-- <p>- CommitUserData --> Map<String,String>- </p>-- <p>- Format is -9 (SegmentInfos.FORMAT_DIAGNOSTICS).- </p>-- <p>- Version counts how often the index has been- changed by adding or deleting documents.- </p>-- <p>- NameCounter is used to generate names for new segment files.- </p>-- <p>- SegVersion is the code version that created the segment.- </p>-- <p>- SegName is the name of the segment, and is used as the file name prefix- for all of the files that compose the segment's index.- </p>-- <p>- SegSize is the number of documents contained in the segment index.- </p>-- <p>- DelGen is the generation count of the separate- deletes file. If this is -1, there are no- separate deletes. If it is 0, this is a pre-2.1- segment and you must check filesystem for the- existence of _X.del. Anything above zero means- there are separate deletes (_X_N.del).- </p>-- <p>- NumField is the size of the array for NormGen, or- -1 if there are no NormGens stored.- </p>-- <p>- NormGen records the generation of the separate- norms files. If NumField is -1, there are no- normGens stored and they are all assumed to be 0- when the segment file was written pre-2.1 and all- assumed to be -1 when the segments file is 2.1 or- above. The generation then has the same meaning- as delGen (above).- </p>-- <p>- IsCompoundFile records whether the segment is- written as a compound file or not. If this is -1,- the segment is not a compound file. If it is 1,- the segment is a compound file. Else it is 0,- which means we check filesystem to see if _X.cfs- exists.- </p>-- <p>- If HasSingleNormFile is 1, then the field norms are- written as a single joined file (with extension- <tt>.nrm</tt>); if it is 0 then each field's norms- are stored as separate <tt>.fN</tt> files. See- "Normalization Factors" below for details.- </p>-- <p>- DocStoreOffset, DocStoreSegment,- DocStoreIsCompoundFile: If DocStoreOffset is -1,- this segment has its own doc store (stored fields- values and term vectors) files and DocStoreSegment- and DocStoreIsCompoundFile are not stored. In- this case all files for stored field values- (<tt>*.fdt</tt> and <tt>*.fdx</tt>) and term- vectors (<tt>*.tvf</tt>, <tt>*.tvd</tt> and- <tt>*.tvx</tt>) will be stored with this segment.- Otherwise, DocStoreSegment is the name of the- segment that has the shared doc store files;- DocStoreIsCompoundFile is 1 if that segment is- stored in compound file format (as a <tt>.cfx</tt>- file); and DocStoreOffset is the starting document- in the shared doc store files where this segment's- documents begin. In this case, this segment does- not store its own doc store files but instead- shares a single set of these files with other- segments.- </p>-- <p>- Checksum contains the CRC32 checksum of all bytes- in the segments_N file up until the checksum.- This is used to verify integrity of the file on- opening the index.- </p>-- <p>- DeletionCount records the number of deleted- documents in this segment.- </p>-- <p>- HasProx is 1 if any fields in this segment have- position data (IndexOptions.DOCS_AND_FREQS_AND_POSITIONS); else, it's 0.- </p>-- <p>- CommitUserData stores an optional user-supplied- opaque Map<String,String> that was passed to- IndexWriter's commit or prepareCommit, or- IndexReader's flush methods.- </p>- <p>- The Diagnostics Map is privately written by- IndexWriter, as a debugging aid, for each segment- it creates. It includes metadata like the current- Lucene version, OS, Java version, why the segment- was created (merge, flush, addIndexes), etc.- </p>-- <p> HasVectors is 1 if this segment stores term vectors,- else it's 0.- </p>-- </section>-- <section id="Lock File"><title>Lock File</title>-- <p>- The write lock, which is stored in the index- directory by default, is named "write.lock". If- the lock directory is different from the index- directory then the write lock will be named- "XXXX-write.lock" where XXXX is a unique prefix- derived from the full path to the index directory.- When this file is present, a writer is currently- modifying the index (adding or removing- documents). This lock file ensures that only one- writer is modifying the index at a time.- </p>- </section>-- <section id="Deletable File"><title>Deletable File</title>-- <p>- A writer dynamically computes- the files that are deletable, instead, so no file- is written.- </p>-- </section>-- <section id="Compound Files"><title>Compound Files</title>-- <p>Starting with Lucene 1.4 the compound file format became default. This- is simply a container for all files described in the next section- (except for the .del file).</p>- <p>Compound Entry Table (.cfe) --> Version, FileCount, <FileName, DataOffset, DataLength>- <sup>FileCount</sup>- </p>-- <p>Compound (.cfs) --> FileData <sup>FileCount</sup>- </p>-- <p>Version --> Int</p>-- <p>FileCount --> VInt</p>-- <p>DataOffset --> Long</p>-- <p>DataLength --> Long</p>-- <p>FileName --> String</p>-- <p>FileData --> raw file data</p>- <p>The raw file data is the data from the individual files named above.</p>-- <p>Starting with Lucene 2.3, doc store files (stored- field values and term vectors) can be shared in a- single set of files for more than one segment. When- compound file is enabled, these shared files will be- added into a single compound file (same format as- above) but with the extension <tt>.cfx</tt>.- </p>-- </section>-- </section>-- <section id="Per-Segment Files"><title>Per-Segment Files</title>-- <p>- The remaining files are all per-segment, and are- thus defined by suffix.- </p>- <section id="Fields"><title>Fields</title>- <p>- <br/>- <b>Field Info</b>- <br/>- </p>-- <p>- Field names are- stored in the field info file, with suffix .fnm.- </p>- <p>- FieldInfos- (.fnm) --> FNMVersion,FieldsCount, <FieldName,- FieldBits>- <sup>FieldsCount</sup>- </p>-- <p>- FNMVersion, FieldsCount --> VInt- </p>-- <p>- FieldName --> String- </p>-- <p>- FieldBits --> Byte- </p>-- <p>- <ul>- <li>- The low-order bit is one for- indexed fields, and zero for non-indexed fields.- </li>- <li>- The second lowest-order- bit is one for fields that have term vectors stored, and zero for fields- without term vectors.- </li>- <li>If the fifth lowest-order bit is set (0x10), norms are omitted for the indexed field.</li>- <li>If the sixth lowest-order bit is set (0x20), payloads are stored for the indexed field.</li>- <li>If the seventh lowest-order bit is set (0x40), term frequencies and positions omitted for the indexed field.</li>- <li>If the eighth lowest-order bit is set (0x80), positions are omitted for the indexed field.</li>- </ul>- </p>-- <p>- FNMVersion (added in 2.9) is -2 for indexes from 2.9 - 3.3. It is -3 for indexes in Lucene 3.4+- </p>-- <p>- Fields are numbered by their order in this file. Thus field zero is- the- first field in the file, field one the next, and so on. Note that,- like document numbers, field numbers are segment relative.- </p>---- <p>- <br/>- <b>Stored Fields</b>- <br/>- </p>-- <p>- Stored fields are represented by two files:- </p>-- <ol>- <li><a name="field_index"/>- <p>- The field index, or .fdx file.- </p>-- <p>- This contains, for each document, a pointer to- its field data, as follows:- </p>-- <p>- FieldIndex- (.fdx) -->- <FieldValuesPosition>- <sup>SegSize</sup>- </p>- <p>FieldValuesPosition- --> Uint64- </p>- <p>This- is used to find the location within the field data file of the- fields of a particular document. Because it contains fixed-length- data, this file may be easily randomly accessed. The position of- document- <i>n</i>- 's- <i></i>- field data is the Uint64 at- <i>n*8</i>- in- this file.- </p>- </li>- <li>- <p><a name="field_data"/>- The field data, or .fdt file.-- </p>-- <p>- This contains the stored fields of each document,- as follows:- </p>-- <p>- FieldData (.fdt) -->- <DocFieldData>- <sup>SegSize</sup>- </p>- <p>DocFieldData -->- FieldCount, <FieldNum, Bits, Value>- <sup>FieldCount</sup>- </p>- <p>FieldCount -->- VInt- </p>- <p>FieldNum -->- VInt- </p>- <p>Bits -->- Byte- </p>- <p>- <ul>- <li>low order bit is one for tokenized fields</li>- <li>second bit is one for fields containing binary data</li>- <li>third bit is one for fields with compression option enabled- (if compression is enabled, the algorithm used is ZLIB),- only available for indexes until Lucene version 2.9.x</li>- <li>4th to 6th bit (mask: 0x7<<3) define the type of a- numeric field: <ul>- <li>all bits in mask are cleared if no numeric field at all</li>- <li>1<<3: Value is Int</li>- <li>2<<3: Value is Long</li>- <li>3<<3: Value is Int as Float (as of Float.intBitsToFloat)</li>- <li>4<<3: Value is Long as Double (as of Double.longBitsToDouble)</li>- </ul></li>- </ul>- </p>- <p>Value -->- String | BinaryValue | Int | Long (depending on Bits)- </p>- <p>BinaryValue -->- ValueSize, <Byte>^ValueSize- </p>- <p>ValueSize -->- VInt- </p>-- </li>- </ol>-- </section>- <section id="Term Dictionary"><title>Term Dictionary</title>-- <p>- The term dictionary is represented as two files:- </p>- <ol>- <li><a name="tis"/>- <p>- The term infos, or tis file.- </p>-- <p>- TermInfoFile (.tis)-->- TIVersion, TermCount, IndexInterval, SkipInterval, MaxSkipLevels, TermInfos- </p>- <p>TIVersion -->- UInt32- </p>- <p>TermCount -->- UInt64- </p>- <p>IndexInterval -->- UInt32- </p>- <p>SkipInterval -->- UInt32- </p>- <p>MaxSkipLevels -->- UInt32- </p>- <p>TermInfos -->- <TermInfo>- <sup>TermCount</sup>- </p>- <p>TermInfo -->- <Term, DocFreq, FreqDelta, ProxDelta, SkipDelta>- </p>- <p>Term -->- <PrefixLength, Suffix, FieldNum>- </p>- <p>Suffix -->- String- </p>- <p>PrefixLength,- DocFreq, FreqDelta, ProxDelta, SkipDelta- <br/>- --> VInt- </p>- <p>- This file is sorted by Term. Terms are- ordered first lexicographically (by UTF16- character code) by the term's field name,- and within that lexicographically (by- UTF16 character code) by the term's text.- </p>- <p>TIVersion names the version of the format- of this file and is equal to TermInfosWriter.FORMAT_CURRENT.- </p>- <p>Term- text prefixes are shared. The PrefixLength is the number of initial- characters from the previous term which must be pre-pended to a- term's suffix in order to form the term's text. Thus, if the- previous term's text was "bone" and the term is "boy",- the PrefixLength is two and the suffix is "y".- </p>- <p>FieldNumber- determines the term's field, whose name is stored in the .fdt file.- </p>- <p>DocFreq- is the count of documents which contain the term.- </p>- <p>FreqDelta- determines the position of this term's TermFreqs within the .frq- file. In particular, it is the difference between the position of- this term's data in that file and the position of the previous- term's data (or zero, for the first term in the file).- </p>- <p>ProxDelta- determines the position of this term's TermPositions within the .prx- file. In particular, it is the difference between the position of- this term's data in that file and the position of the previous- term's data (or zero, for the first term in the file. For fields- that omit position data, this will be 0 since- prox information is not stored.- </p>- <p>SkipDelta determines the position of this- term's SkipData within the .frq file. In- particular, it is the number of bytes- after TermFreqs that the SkipData starts.- In other words, it is the length of the- TermFreq data. SkipDelta is only stored- if DocFreq is not smaller than SkipInterval.- </p>- </li>- <li>- <p><a name="tii"/>- The term info index, or .tii file.- </p>-- <p>- This contains every IndexInterval- <sup>th</sup>- entry from the .tis- file, along with its location in the "tis" file. This is- designed to be read entirely into memory and used to provide random- access to the "tis" file.- </p>-- <p>- The structure of this file is very similar to the- .tis file, with the addition of one item per record, the IndexDelta.- </p>-- <p>- TermInfoIndex (.tii)-->- TIVersion, IndexTermCount, IndexInterval, SkipInterval, MaxSkipLevels, TermIndices- </p>- <p>TIVersion -->- UInt32- </p>- <p>IndexTermCount -->- UInt64- </p>- <p>IndexInterval -->- UInt32- </p>- <p>SkipInterval -->- UInt32- </p>- <p>TermIndices -->- <TermInfo, IndexDelta>- <sup>IndexTermCount</sup>- </p>- <p>IndexDelta -->- VLong- </p>- <p>IndexDelta- determines the position of this term's TermInfo within the .tis file. In- particular, it is the difference between the position of this term's- entry in that file and the position of the previous term's entry.- </p>- <p>SkipInterval is the fraction of TermDocs stored in skip tables. It is used to accelerate TermDocs.skipTo(int).- Larger values result in smaller indexes, greater acceleration, but fewer accelerable cases, while- smaller values result in bigger indexes, less acceleration (in case of a small value for MaxSkipLevels) and more- accelerable cases.</p>- <p>MaxSkipLevels is the max. number of skip levels stored for each term in the .frq file. A low value results in- smaller indexes but less acceleration, a larger value results in slighly larger indexes but greater acceleration.- See format of .frq file for more information about skip levels.</p>- </li>- </ol>- </section>-- <section id="Frequencies"><title>Frequencies</title>-- <p>- The .frq file contains the lists of documents- which contain each term, along with the frequency of the term in that- document (except when frequencies are omitted: IndexOptions.DOCS_ONLY).- </p>- <p>FreqFile (.frq) -->- <TermFreqs, SkipData>- <sup>TermCount</sup>- </p>- <p>TermFreqs -->- <TermFreq>- <sup>DocFreq</sup>- </p>- <p>TermFreq -->- DocDelta[, Freq?]- </p>- <p>SkipData -->- <<SkipLevelLength, SkipLevel>- <sup>NumSkipLevels-1</sup>, SkipLevel>- <SkipDatum>- </p>- <p>SkipLevel -->- <SkipDatum>- <sup>DocFreq/(SkipInterval^(Level + 1))</sup>- </p>- <p>SkipDatum -->- DocSkip,PayloadLength?,FreqSkip,ProxSkip,SkipChildLevelPointer?- </p>- <p>DocDelta,Freq,DocSkip,PayloadLength,FreqSkip,ProxSkip -->- VInt- </p>- <p>SkipChildLevelPointer -->- VLong- </p>- <p>TermFreqs- are ordered by term (the term is implicit, from the .tis file).- </p>- <p>TermFreq- entries are ordered by increasing document number.- </p>- <p>DocDelta: if frequencies are indexed, this determines both- the document number and the frequency. In- particular, DocDelta/2 is the difference between- this document number and the previous document- number (or zero when this is the first document in- a TermFreqs). When DocDelta is odd, the frequency- is one. When DocDelta is even, the frequency is- read as another VInt. If frequencies are omitted, DocDelta- contains the gap (not multiplied by 2) between- document numbers and no frequency information is- stored.- </p>- <p>For example, the TermFreqs for a term which occurs- once in document seven and three times in document- eleven, with frequencies indexed, would be the following- sequence of VInts:- </p>- <p>15, 8, 3- </p>- <p> If frequencies were omitted (IndexOptions.DOCS_ONLY) it would be this sequence- of VInts instead:- </p>- <p>- 7,4- </p>- <p>DocSkip records the document number before every- SkipInterval- <sup>th</sup>- document in TermFreqs.- If payloads are disabled for the term's field,- then DocSkip represents the difference from the- previous value in the sequence.- If payloads are enabled for the term's field,- then DocSkip/2 represents the difference from the- previous value in the sequence. If payloads are enabled- and DocSkip is odd,- then PayloadLength is stored indicating the length- of the last payload before the SkipInterval<sup>th</sup>- document in TermPositions.- FreqSkip and ProxSkip record the position of every- SkipInterval- <sup>th</sup>- entry in FreqFile and- ProxFile, respectively. File positions are- relative to the start of TermFreqs and Positions,- to the previous SkipDatum in the sequence.- </p>- <p>For example, if DocFreq=35 and SkipInterval=16,- then there are two SkipData entries, containing- the 15- <sup>th</sup>- and 31- <sup>st</sup>- document- numbers in TermFreqs. The first FreqSkip names- the number of bytes after the beginning of- TermFreqs that the 16- <sup>th</sup>- SkipDatum- starts, and the second the number of bytes after- that that the 32- <sup>nd</sup>- starts. The first- ProxSkip names the number of bytes after the- beginning of Positions that the 16- <sup>th</sup>- SkipDatum starts, and the second the number of- bytes after that that the 32- <sup>nd</sup>- starts.- </p>- <p>Each term can have multiple skip levels.- The amount of skip levels for a term is NumSkipLevels = Min(MaxSkipLevels, floor(log(DocFreq/log(SkipInterval)))).- The number of SkipData entries for a skip level is DocFreq/(SkipInterval^(Level + 1)), whereas the lowest skip- level is Level=0. <br></br>- Example: SkipInterval = 4, MaxSkipLevels = 2, DocFreq = 35. Then skip level 0 has 8 SkipData entries,- containing the 3<sup>rd</sup>, 7<sup>th</sup>, 11<sup>th</sup>, 15<sup>th</sup>, 19<sup>th</sup>, 23<sup>rd</sup>,- 27<sup>th</sup>, and 31<sup>st</sup> document numbers in TermFreqs. Skip level 1 has 2 SkipData entries, containing the- 15<sup>th</sup> and 31<sup>st</sup> document numbers in TermFreqs. <br></br>- The SkipData entries on all upper levels > 0 contain a SkipChildLevelPointer referencing the corresponding SkipData- entry in level-1. In the example has entry 15 on level 1 a pointer to entry 15 on level 0 and entry 31 on level 1 a pointer- to entry 31 on level 0.- </p>-- </section>- <section id="Positions"><title>Positions</title>-- <p>- The .prx file contains the lists of positions that- each term occurs at within documents. Note that- fields omitting positional data do not store- anything into this file, and if all fields in the- index omit positional data then the .prx file will not- exist.- </p>- <p>ProxFile (.prx) -->- <TermPositions>- <sup>TermCount</sup>- </p>- <p>TermPositions -->- <Positions>- <sup>DocFreq</sup>- </p>- <p>Positions -->- <PositionDelta,Payload?>- <sup>Freq</sup>- </p>- <p>Payload -->- <PayloadLength?,PayloadData>- </p>- <p>PositionDelta -->- VInt- </p>- <p>PayloadLength -->- VInt- </p>- <p>PayloadData -->- byte<sup>PayloadLength</sup>- </p>- <p>TermPositions- are ordered by term (the term is implicit, from the .tis file).- </p>- <p>Positions- entries are ordered by increasing document number (the document- number is implicit from the .frq file).- </p>- <p>PositionDelta- is, if payloads are disabled for the term's field, the difference- between the position of the current occurrence in- the document and the previous occurrence (or zero, if this is the- first occurrence in this document).- If payloads are enabled for the term's field, then PositionDelta/2- is the difference between the current and the previous position. If- payloads are enabled and PositionDelta is odd, then PayloadLength is- stored, indicating the length of the payload at the current term position.- </p>- <p>- For example, the TermPositions for a- term which occurs as the fourth term in one document, and as the- fifth and ninth term in a subsequent document, would be the following- sequence of VInts (payloads disabled):- </p>- <p>4,- 5, 4- </p>- <p>PayloadData- is metadata associated with the current term position. If PayloadLength- is stored at the current position, then it indicates the length of this- Payload. If PayloadLength is not stored, then this Payload has the same- length as the Payload at the previous position.- </p>- </section>- <section id="Normalization Factors"><title>Normalization Factors</title>-- <p>There's a single .nrm file containing all norms:- </p>- <p>AllNorms- (.nrm) --> NormsHeader,<Norms>- <sup>NumFieldsWithNorms</sup>- </p>- <p>Norms- --> <Byte>- <sup>SegSize</sup>- </p>- <p>NormsHeader- --> 'N','R','M',Version- </p>- <p>Version- --> Byte- </p>- <p>NormsHeader- has 4 bytes, last of which is the format version for this file, currently -1.- </p>- <p>Each- byte encodes a floating point value. Bits 0-2 contain the 3-bit- mantissa, and bits 3-8 contain the 5-bit exponent.- </p>- <p>These- are converted to an IEEE single float value as follows:- </p>- <ol>- <li>- <p>If- the byte is zero, use a zero float.- </p>- </li>- <li>- <p>Otherwise,- set the sign bit of the float to zero;- </p>- </li>- <li>- <p>add- 48 to the exponent and use this as the float's exponent;- </p>- </li>- <li>- <p>map- the mantissa to the high-order 3 bits of the float's mantissa; and-- </p>- </li>- <li>- <p>set- the low-order 21 bits of the float's mantissa to zero.- </p>- </li>- </ol>- <p>A separate norm file is created when the norm values of an existing segment are modified.- When field <em>N</em> is modified, a separate norm file <em>.sN</em>- is created, to maintain the norm values for that field.- </p>- <p>Separate norm files are created (when adequate) for both compound and non compound segments.- </p>-- </section>- <section id="Term Vectors"><title>Term Vectors</title>- <p>- Term Vector support is an optional on a field by- field basis. It consists of 3 files.- </p>- <ol>- <li><a name="tvx"/>- <p>The Document Index or .tvx file.</p>- <p>For each document, this stores the offset- into the document data (.tvd) and field- data (.tvf) files.- </p>- <p>DocumentIndex (.tvx) --> TVXVersion<DocumentPosition,FieldPosition>- <sup>NumDocs</sup>- </p>- <p>TVXVersion --> Int (TermVectorsReader.CURRENT)</p>- <p>DocumentPosition --> UInt64 (offset in- the .tvd file)</p>- <p>FieldPosition --> UInt64 (offset in the- .tvf file)</p>- </li>- <li><a name="tvd"/>- <p>The Document or .tvd file.</p>- <p>This contains, for each document, the number of fields, a list of the fields with- term vector info and finally a list of pointers to the field information in the .tvf- (Term Vector Fields) file.</p>- <p>- Document (.tvd) --> TVDVersion<NumFields, FieldNums, FieldPositions>- <sup>NumDocs</sup>- </p>- <p>TVDVersion --> Int (TermVectorsReader.FORMAT_CURRENT)</p>- <p>NumFields --> VInt</p>- <p>FieldNums --> <FieldNumDelta>- <sup>NumFields</sup>- </p>- <p>FieldNumDelta --> VInt</p>- <p>FieldPositions --> <FieldPositionDelta>- <sup>NumFields-1</sup>- </p>- <p>FieldPositionDelta --> VLong</p>- <p>The .tvd file is used to map out the fields that have term vectors stored and- where the field information is in the .tvf file.</p>- </li>- <li><a name="tvf"/>- <p>The Field or .tvf file.</p>- <p>This file contains, for each field that has a term vector stored, a list of- the terms, their frequencies and, optionally, position and offest information.</p>- <p>Field (.tvf) --> TVFVersion<NumTerms, Position/Offset, TermFreqs>- <sup>NumFields</sup>- </p>- <p>TVFVersion --> Int (TermVectorsReader.FORMAT_CURRENT)</p>- <p>NumTerms --> VInt</p>- <p>Position/Offset --> Byte</p>- <p>TermFreqs --> <TermText, TermFreq, Positions?, Offsets?>- <sup>NumTerms</sup>- </p>- <p>TermText --> <PrefixLength, Suffix></p>- <p>PrefixLength --> VInt</p>- <p>Suffix --> String</p>- <p>TermFreq --> VInt</p>- <p>Positions --> <VInt><sup>TermFreq</sup></p>- <p>Offsets --> <VInt, VInt><sup>TermFreq</sup></p>- <br/>- <p>Notes:</p>- <ul>- <li>Position/Offset byte stores whether this term vector has position or offset information stored.</li>- <li>Term- text prefixes are shared. The PrefixLength is the number of initial- characters from the previous term which must be pre-pended to a- term's suffix in order to form the term's text. Thus, if the- previous term's text was "bone" and the term is "boy",- the PrefixLength is two and the suffix is "y".- </li>- <li>Positions are stored as delta encoded VInts. This means we only store the difference of the current position from the last position</li>- <li>Offsets are stored as delta encoded VInts. The first VInt is the startOffset, the second is the endOffset.</li>- </ul>--- </li>- </ol>- </section>-- <section id="Deleted Documents"><title>Deleted Documents</title>-- <p>The .del file is- optional, and only exists when a segment contains deletions.- </p>-- <p>Although per-segment, this file is maintained exterior to compound segment files.- </p>- <p>- Deletions- (.del) --> [Format],ByteCount,BitCount, Bits | DGaps (depending on Format)- </p>-- <p>Format,ByteSize,BitCount -->- Uint32- </p>-- <p>Bits -->- <Byte>- <sup>ByteCount</sup>- </p>-- <p>DGaps -->- <DGap,NonzeroByte>- <sup>NonzeroBytesCount</sup>- </p>-- <p>DGap -->- VInt- </p>-- <p>NonzeroByte -->- Byte- </p>-- <p>Format- is Optional. -1 indicates DGaps. Non-negative value indicates Bits, and that Format is excluded.- </p>-- <p>ByteCount- indicates the number of bytes in Bits. It is typically- (SegSize/8)+1.- </p>-- <p>- BitCount- indicates the number of bits that are currently set in Bits.- </p>-- <p>Bits- contains one bit for each document indexed. When the bit- corresponding to a document number is set, that document is marked as- deleted. Bit ordering is from least to most significant. Thus, if- Bits contains two bytes, 0x00 and 0x02, then document 9 is marked as- deleted.- </p>-- <p>DGaps- represents sparse bit-vectors more efficiently than Bits.- It is made of DGaps on indexes of nonzero bytes in Bits,- and the nonzero bytes themselves. The number of nonzero bytes- in Bits (NonzeroBytesCount) is not stored.- </p>- <p>For example,- if there are 8000 bits and only bits 10,12,32 are set,- DGaps would be used:- </p>- <p>- (VInt) 1 , (byte) 20 , (VInt) 3 , (Byte) 1- </p>- </section>- </section>-- <section id="Limitations"><title>Limitations</title>-- <p>- When referring to term numbers, Lucene's current- implementation uses a Java <code>int</code> to hold the- term index, which means the maximum number of unique- terms in any single index segment is ~2.1 billion times- the term index interval (default 128) = ~274 billion.- This is technically not a limitation of the index file- format, just of Lucene's current implementation.- </p>- <p>- Similarly, Lucene uses a Java <code>int</code> to refer- to document numbers, and the index file format uses an- <code>Int32</code> on-disk to store document numbers.- This is a limitation of both the index file format and- the current implementation. Eventually these should be- replaced with either <code>UInt64</code> values, or- better yet, <code>VInt</code> values which have no- limit.- </p>-- </section>-- </body>--</document>diff --git a/lucene/site/src/documentation/content/xdocs/gettingstarted.xml b/lucene/site/src/documentation/content/xdocs/gettingstarted.xmldeleted file mode 100644index 7ab6441214e..00000000000--- a/lucene/site/src/documentation/content/xdocs/gettingstarted.xml+++ /dev/null@@ -1,41 +0,0 @@-<?xml version="1.0"?>-<document>- <header>- <title>- Apache Lucene - Getting Started Guide- </title>- </header>-<properties>-<author email="[email protected]">Andrew C. Oliver</author>-</properties>-<body>--<section id="Getting Started">- <title>Getting Started</title>-<p>-This document is intended as a "getting started" guide. It has three audiences: first-time users-looking to install Apache Lucene in their application; developers looking to modify or base-the applications they develop on Lucene; and developers looking to become involved in and contribute-to the development of Lucene. This document is written in tutorial and walk-through format. The-goal is to help you "get started". It does not go into great depth on some of the conceptual or-inner details of Lucene.-</p>--<p>-Each section listed below builds on one another. More advanced users-may wish to skip sections.-</p>--<ul>- <li><a href="demo.html">About the command-line Lucene demo and its usage</a>. This section- is intended for anyone who wants to use the command-line Lucene demo.</li>-- <li><a href="demo2.html">About the sources and implementation for the command-line Lucene- demo</a>. This section walks through the implementation details (sources) of the- command-line Lucene demo. This section is intended for developers.</li>-</ul>-</section>--</body>-</document>-diff --git a/lucene/site/src/documentation/content/xdocs/images/asf-logo.gif b/lucene/site/src/documentation/content/xdocs/images/asf-logo.gifdeleted file mode 100644index 22eb9d7358e..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/asf-logo.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/chapter.gif b/lucene/site/src/documentation/content/xdocs/images/chapter.gifdeleted file mode 100644index d3d8245d0c7..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/chapter.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/current.gif b/lucene/site/src/documentation/content/xdocs/images/current.gifdeleted file mode 100644index fd82c082012..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/current.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/favicon.ico b/lucene/site/src/documentation/content/xdocs/images/favicon.icodeleted file mode 100755index 552f2750157..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/favicon.ico and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/instruction_arrow.png b/lucene/site/src/documentation/content/xdocs/images/instruction_arrow.pngdeleted file mode 100644index 0fbc72452bf..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/instruction_arrow.png and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/larm_architecture.jpg b/lucene/site/src/documentation/content/xdocs/images/larm_architecture.jpgdeleted file mode 100644index ae88a08d94f..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/larm_architecture.jpg and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/larm_crawling-process.jpg b/lucene/site/src/documentation/content/xdocs/images/larm_crawling-process.jpgdeleted file mode 100644index bcb7ff6d1c7..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/larm_crawling-process.jpg and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/lia_3d.jpg b/lucene/site/src/documentation/content/xdocs/images/lia_3d.jpgdeleted file mode 100644index 46c8460d6e9..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/lia_3d.jpg and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/lucene_green_100.gif b/lucene/site/src/documentation/content/xdocs/images/lucene_green_100.gifdeleted file mode 100644index b7e06d9f187..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/lucene_green_100.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/lucene_green_150.gif b/lucene/site/src/documentation/content/xdocs/images/lucene_green_150.gifdeleted file mode 100644index 49480177629..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/lucene_green_150.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/lucene_green_200.gif b/lucene/site/src/documentation/content/xdocs/images/lucene_green_200.gifdeleted file mode 100644index e8ab18e2621..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/lucene_green_200.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/lucene_green_250.gif b/lucene/site/src/documentation/content/xdocs/images/lucene_green_250.gifdeleted file mode 100644index a09bd954da6..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/lucene_green_250.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/lucene_green_300.gif b/lucene/site/src/documentation/content/xdocs/images/lucene_green_300.gifdeleted file mode 100644index 7c822986af7..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/lucene_green_300.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/lucene_outline_100.gif b/lucene/site/src/documentation/content/xdocs/images/lucene_outline_100.gifdeleted file mode 100644index b64ea093cd5..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/lucene_outline_100.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/lucene_outline_150.gif b/lucene/site/src/documentation/content/xdocs/images/lucene_outline_150.gifdeleted file mode 100644index 0100293dde6..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/lucene_outline_150.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/lucene_outline_200.gif b/lucene/site/src/documentation/content/xdocs/images/lucene_outline_200.gifdeleted file mode 100644index 4e3a37e87d6..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/lucene_outline_200.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/lucene_outline_250.gif b/lucene/site/src/documentation/content/xdocs/images/lucene_outline_250.gifdeleted file mode 100644index d07b20dfb70..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/lucene_outline_250.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/lucene_outline_300.gif b/lucene/site/src/documentation/content/xdocs/images/lucene_outline_300.gifdeleted file mode 100644index 10f7dcf8356..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/lucene_outline_300.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/images/page.gif b/lucene/site/src/documentation/content/xdocs/images/page.gifdeleted file mode 100644index a144d3295be..00000000000Binary files a/lucene/site/src/documentation/content/xdocs/images/page.gif and /dev/null differdiff --git a/lucene/site/src/documentation/content/xdocs/index.xml b/lucene/site/src/documentation/content/xdocs/index.xmldeleted file mode 100644index 556650fde40..00000000000--- a/lucene/site/src/documentation/content/xdocs/index.xml+++ /dev/null@@ -1,16 +0,0 @@-<?xml version="1.0"?>-<document>- <header>- <title>Lucene Java Documentation</title>- </header>-- <body>- <p>- This is the official documentation for Lucene Java<BR/>- Please use the menu on the left to access the Javadocs and different documents.- </p>- <p>- Additional documentation is available in the <a href="http://wiki.apache.org/lucene-java">Wiki</a>.- </p>- </body>-</document>diff --git a/lucene/site/src/documentation/content/xdocs/queryparsersyntax.xml b/lucene/site/src/documentation/content/xdocs/queryparsersyntax.xmldeleted file mode 100644index b2a309fef0e..00000000000--- a/lucene/site/src/documentation/content/xdocs/queryparsersyntax.xml+++ /dev/null@@ -1,239 +0,0 @@-<?xml version="1.0"?>-<document>- <header>- <title>- Apache Lucene - Query Parser Syntax- </title>- </header>- <properties>- <author email="[email protected]">Peter Carlson</author>- </properties>- <body>- <section id="Overview">- <title>Overview</title>- <p>Although Lucene provides the ability to create your own- queries through its API, it also provides a rich query- language through the Query Parser, a lexer which- interprets a string into a Lucene Query using JavaCC.- </p>-- <p>Generally, the query parser syntax may change from- release to release. This page describes the syntax as of- the current release. If you are using a different- version of Lucene, please consult the copy of- <code>docs/queryparsersyntax.html</code> that was distributed- with the version you are using.- </p>-- <p>- Before choosing to use the provided Query Parser, please consider the following:- <ol>- <li>If you are programmatically generating a query string and then- parsing it with the query parser then you should seriously consider building- your queries directly with the query API. In other words, the query- parser is designed for human-entered text, not for program-generated- text.</li>-- <li>Untokenized fields are best added directly to queries, and not- through the query parser. If a field's values are generated programmatically- by the application, then so should query clauses for this field.- An analyzer, which the query parser uses, is designed to convert human-entered- text to terms. Program-generated values, like dates, keywords, etc.,- should be consistently program-generated.</li>-- <li>In a query form, fields which are general text should use the query- parser. All others, such as date ranges, keywords, etc. are better added- directly through the query API. A field with a limit set of values,- that can be specified with a pull-down menu should not be added to a- query string which is subsequently parsed, but rather added as a- TermQuery clause.</li>- </ol>- </p>- </section>-- <section id="Terms">- <title>Terms</title>- <p>A query is broken up into terms and operators. There are two types of terms: Single Terms and Phrases.</p>- <p>A Single Term is a single word such as "test" or "hello".</p>- <p>A Phrase is a group of words surrounded by double quotes such as "hello dolly".</p>- <p>Multiple terms can be combined together with Boolean operators to form a more complex query (see below).</p>- <p>Note: The analyzer used to create the index will be used on the terms and phrases in the query string.- So it is important to choose an analyzer that will not interfere with the terms used in the query string.</p>- </section>-- <section id="Fields">- <title>Fields</title>- <p>Lucene supports fielded data. When performing a search you can either specify a field, or use the default field. The field names and default field is implementation specific.</p>- <p>You can search any field by typing the field name followed by a colon ":" and then the term you are looking for. </p>- <p>As an example, let's assume a Lucene index contains two fields, title and text and text is the default field.- If you want to find the document entitled "The Right Way" which contains the text "don't go this way", you can enter: </p>-- <source>title:"The Right Way" AND text:go</source>- <p>or</p>- <source>title:"Do it right" AND right</source>- <p>Since text is the default field, the field indicator is not required.</p>-- <p>Note: The field is only valid for the term that it directly precedes, so the query</p>- <source>title:Do it right</source>- <p>Will only find "Do" in the title field. It will find "it" and "right" in the default field (in this case the text field). </p>- </section>-- <section id="Term Modifiers">- <title>Term Modifiers</title>- <p>Lucene supports modifying query terms to provide a wide range of searching options.</p>-- <section id="Wildcard Searches">- <title>Wildcard Searches</title>- <p>Lucene supports single and multiple character wildcard searches within single terms- (not within phrase queries).</p>- <p>To perform a single character wildcard search use the "?" symbol.</p>- <p>To perform a multiple character wildcard search use the "*" symbol.</p>- <p>The single character wildcard search looks for terms that match that with the single character replaced. For example, to search for "text" or "test" you can use the search:</p>-- <source>te?t</source>-- <p>Multiple character wildcard searches looks for 0 or more characters. For example, to search for test, tests or tester, you can use the search: </p>- <source>test*</source>- <p>You can also use the wildcard searches in the middle of a term.</p>- <source>te*t</source>- <p>Note: You cannot use a * or ? symbol as the first character of a search.</p>- </section>--- <section id="Fuzzy Searches">- <title>Fuzzy Searches</title>- <p>Lucene supports fuzzy searches based on the Levenshtein Distance, or Edit Distance algorithm. To do a fuzzy search use the tilde, "~", symbol at the end of a Single word Term. For example to search for a term similar in spelling to "roam" use the fuzzy search: </p>-- <source>roam~</source>- <p>This search will find terms like foam and roams.</p>-- <p>Starting with Lucene 1.9 an additional (optional) parameter can specify the required similarity. The value is between 0 and 1, with a value closer to 1 only terms with a higher similarity will be matched. For example:</p>- <source>roam~0.8</source>- <p>The default that is used if the parameter is not given is 0.5.</p>- </section>--- <section id="Proximity Searches">- <title>Proximity Searches</title>- <p>Lucene supports finding words are a within a specific distance away. To do a proximity search use the tilde, "~", symbol at the end of a Phrase. For example to search for a "apache" and "jakarta" within 10 words of each other in a document use the search: </p>-- <source>"jakarta apache"~10</source>- </section>--- <section id="Range Searches">- <title>Range Searches</title>- <p>Range Queries allow one to match documents whose field(s) values- are between the lower and upper bound specified by the Range Query.- Range Queries can be inclusive or exclusive of the upper and lower bounds.- Sorting is done lexicographically.</p>- <source>mod_date:[20020101 TO 20030101]</source>- <p>This will find documents whose mod_date fields have values between 20020101 and 20030101, inclusive.- Note that Range Queries are not reserved for date fields. You could also use range queries with non-date fields:</p>- <source>title:{Aida TO Carmen}</source>- <p>This will find all documents whose titles are between Aida and Carmen, but not including Aida and Carmen.</p>- <p>Inclusive range queries are denoted by square brackets. Exclusive range queries are denoted by- curly brackets.</p>- </section>--- <section id="Boosting a Term">- <title>Boosting a Term</title>- <p>Lucene provides the relevance level of matching documents based on the terms found. To boost a term use the caret, "^", symbol with a boost factor (a number) at the end of the term you are searching. The higher the boost factor, the more relevant the term will be.</p>- <p>Boosting allows you to control the relevance of a document by boosting its term. For example, if you are searching for</p>-- <source>jakarta apache</source>- <p>and you want the term "jakarta" to be more relevant boost it using the ^ symbol along with the boost factor next to the term.- You would type:</p>- <source>jakarta^4 apache</source>- <p>This will make documents with the term jakarta appear more relevant. You can also boost Phrase Terms as in the example: </p>-- <source>"jakarta apache"^4 "Apache Lucene"</source>- <p>By default, the boost factor is 1. Although the boost factor must be positive, it can be less than 1 (e.g. 0.2)</p>- </section>-- </section>--- <section id="Boolean operators">- <title>Boolean Operators</title>- <p>Boolean operators allow terms to be combined through logic operators.- Lucene supports AND, "+", OR, NOT and "-" as Boolean operators(Note: Boolean operators must be ALL CAPS).</p>-- <section id="OR">- <p>The OR operator is the default conjunction operator. This means that if there is no Boolean operator between two terms, the OR operator is used.- The OR operator links two terms and finds a matching document if either of the terms exist in a document. This is equivalent to a union using sets.- The symbol || can be used in place of the word OR.</p>- <p>To search for documents that contain either "jakarta apache" or just "jakarta" use the query:</p>-- <source>"jakarta apache" jakarta</source>-- <p>or</p>-- <source>"jakarta apache" OR jakarta</source>-- </section>- <section id="AND">- <title>AND</title>- <p>The AND operator matches documents where both terms exist anywhere in the text of a single document.- This is equivalent to an intersection using sets. The symbol && can be used in place of the word AND.</p>- <p>To search for documents that contain "jakarta apache" and "Apache Lucene" use the query: </p>-- <source>"jakarta apache" AND "Apache Lucene"</source>- </section>-- <section id="+">- <title>+</title>- <p>The "+" or required operator requires that the term after the "+" symbol exist somewhere in a the field of a single document.</p>- <p>To search for documents that must contain "jakarta" and may contain "lucene" use the query:</p>-- <source>+jakarta lucene</source>- </section>-- <section id="NOT">- <title>NOT</title>- <p>The NOT operator excludes documents that contain the term after NOT.- This is equivalent to a difference using sets. The symbol ! can be used in place of the word NOT.</p>- <p>To search for documents that contain "jakarta apache" but not "Apache Lucene" use the query: </p>-- <source>"jakarta apache" NOT "Apache Lucene"</source>- <p>Note: The NOT operator cannot be used with just one term. For example, the following search will return no results:</p>-- <source>NOT "jakarta apache"</source>- </section>-- <section id="-">- <title>-</title>- <p>The "-" or prohibit operator excludes documents that contain the term after the "-" symbol.</p>- <p>To search for documents that contain "jakarta apache" but not "Apache Lucene" use the query: </p>-- <source>"jakarta apache" -"Apache Lucene"</source>- </section>-- </section>-- <section id="Grouping">- <title>Grouping</title>- <p>Lucene supports using parentheses to group clauses to form sub queries. This can be very useful if you want to control the boolean logic for a query.</p>- <p>To search for either "jakarta" or "apache" and "website" use the query:</p>- <source>(jakarta OR apache) AND website</source>- <p>This eliminates any confusion and makes sure you that website must exist and either term jakarta or apache may exist.</p>- </section>-- <section id="Field Grouping">- <title>Field Grouping</title>- <p>Lucene supports using parentheses to group multiple clauses to a single field.</p>- <p>To search for a title that contains both the word "return" and the phrase "pink panther" use the query:</p>- <source>title:(+return +"pink panther")</source>- </section>-- <section id="Escaping Special Characters">- <title>Escaping Special Characters</title>- <p>Lucene supports escaping special characters that are part of the query syntax. The current list special characters are</p>- <p>+ - && || ! ( ) { } [ ] ^ " ~ * ? : \</p>- <p>To escape these character use the \ before the character. For example to search for (1+1):2 use the query:</p>- <source>\(1\+1\)\:2</source>- </section>-- </body>-</document>diff --git a/lucene/site/src/documentation/content/xdocs/scoring.xml b/lucene/site/src/documentation/content/xdocs/scoring.xmldeleted file mode 100644index 78386653aa2..00000000000--- a/lucene/site/src/documentation/content/xdocs/scoring.xml+++ /dev/null@@ -1,277 +0,0 @@-<?xml version="1.0"?>--<document>- <header>- <title>- Apache Lucene - Scoring- </title>- </header>- <properties>- <author email="gsingers at apache.org">Grant Ingersoll</author>- </properties>-- <body>-- <section id="Introduction"><title>Introduction</title>- <p>Lucene scoring is the heart of why we all love Lucene. It is blazingly fast and it hides almost all of the complexity from the user.- In a nutshell, it works. At least, that is, until it doesn't work, or doesn't work as one would expect it to- work. Then we are left digging into Lucene internals or asking for help on [email protected] to figure out why a document with five of our query terms- scores lower than a different document with only one of the query terms. </p>- <p>While this document won't answer your specific scoring issues, it will, hopefully, point you to the places that can- help you figure out the what and why of Lucene scoring.</p>- <p>Lucene scoring uses a combination of the- <a href="http://en.wikipedia.org/wiki/Vector_Space_Model">Vector Space Model (VSM) of Information- Retrieval</a> and the <a href="http://en.wikipedia.org/wiki/Standard_Boolean_model">Boolean model</a>- to determine- how relevant a given Document is to a User's query. In general, the idea behind the VSM is the more- times a query term appears in a document relative to- the number of times the term appears in all the documents in the collection, the more relevant that- document is to the query. It uses the Boolean model to first narrow down the documents that need to- be scored based on the use of boolean logic in the Query specification. Lucene also adds some- capabilities and refinements onto this model to support boolean and fuzzy searching, but it- essentially remains a VSM based system at the heart.- For some valuable references on VSM and IR in general refer to the- <a href="http://wiki.apache.org/lucene-java/InformationRetrieval">Lucene Wiki IR references</a>.- </p>- <p>The rest of this document will cover <a href="#Scoring">Scoring</a> basics and how to change your- <a href="api/core/org/apache/lucene/search/Similarity.html">Similarity</a>. Next it will cover ways you can- customize the Lucene internals in <a href="#Changing your Scoring -- Expert Level">Changing your Scoring- -- Expert Level</a> which gives details on implementing your own- <a href="api/core/org/apache/lucene/search/Query.html">Query</a> class and related functionality. Finally, we- will finish up with some reference material in the <a href="#Appendix">Appendix</a>.- </p>- </section>- <section id="Scoring"><title>Scoring</title>- <p>Scoring is very much dependent on the way documents are indexed,- so it is important to understand indexing (see- <a href="gettingstarted.html">Apache Lucene - Getting Started Guide</a>- and the Lucene- <a href="fileformats.html">file formats</a>- before continuing on with this section.) It is also assumed that readers know how to use the- <a href="api/core/org/apache/lucene/search/Searcher.html#explain(Query query, int doc)">Searcher.explain(Query query, int doc)</a> functionality,- which can go a long way in informing why a score is returned.- </p>- <section id="Fields and Documents"><title>Fields and Documents</title>- <p>In Lucene, the objects we are scoring are- <a href="api/core/org/apache/lucene/document/Document.html">Documents</a>. A Document is a collection- of- <a href="api/core/org/apache/lucene/document/Field.html">Fields</a>. Each Field has semantics about how- it is created and stored (i.e. tokenized, untokenized, raw data, compressed, etc.) It is important to- note that Lucene scoring works on Fields and then combines the results to return Documents. This is- important because two Documents with the exact same content, but one having the content in two Fields- and the other in one Field will return different scores for the same query due to length normalization- (assumming the- <a href="api/core/org/apache/lucene/search/DefaultSimilarity.html">DefaultSimilarity</a>- on the Fields).- </p>- </section>- <section id="Score Boosting"><title>Score Boosting</title>- <p>Lucene allows influencing search results by "boosting" in more than one level:- <ul>- <li><b>Document level boosting</b>- - while indexing - by calling- <a href="api/core/org/apache/lucene/document/Document.html#setBoost(float)">document.setBoost()</a>- before a document is added to the index.- </li>- <li><b>Document's Field level boosting</b>- - while indexing - by calling- <a href="api/core/org/apache/lucene/document/Fieldable.html#setBoost(float)">field.setBoost()</a>- before adding a field to the document (and before adding the document to the index).- </li>- <li><b>Query level boosting</b>- - during search, by setting a boost on a query clause, calling- <a href="api/core/org/apache/lucene/search/Query.html#setBoost(float)">Query.setBoost()</a>.- </li>- </ul>- </p>- <p>Indexing time boosts are preprocessed for storage efficiency and written to- the directory (when writing the document) in a single byte (!) as follows:- For each field of a document, all boosts of that field- (i.e. all boosts under the same field name in that doc) are multiplied.- The result is multiplied by the boost of the document,- and also multiplied by a "field length norm" value- that represents the length of that field in that doc- (so shorter fields are automatically boosted up).- The result is decoded as a single byte- (with some precision loss of course) and stored in the directory.- The similarity object in effect at indexing computes the length-norm of the field.- </p>- <p>This composition of 1-byte representation of norms- (that is, indexing time multiplication of field boosts & doc boost & field-length-norm)- is nicely described in- <a href="api/core/org/apache/lucene/document/Fieldable.html#setBoost(float)">Fieldable.setBoost()</a>.- </p>- <p>Encoding and decoding of the resulted float norm in a single byte are done by the- static methods of the class Similarity:- <a href="api/core/org/apache/lucene/search/Similarity.html#encodeNorm(float)">encodeNorm()</a> and- <a href="api/core/org/apache/lucene/search/Similarity.html#decodeNorm(byte)">decodeNorm()</a>.- Due to loss of precision, it is not guaranteed that decode(encode(x)) = x,- e.g. decode(encode(0.89)) = 0.75.- At scoring (search) time, this norm is brought into the score of document- as <b>norm(t, d)</b>, as shown by the formula in- <a href="api/core/org/apache/lucene/search/Similarity.html">Similarity</a>.- </p>- </section>- <section id="Understanding the Scoring Formula"><title>Understanding the Scoring Formula</title>-- <p>- This scoring formula is described in the- <a href="api/core/org/apache/lucene/search/Similarity.html">Similarity</a> class. Please take the time to study this formula, as it contains much of the information about how the- basics of Lucene scoring work, especially the- <a href="api/core/org/apache/lucene/search/TermQuery.html">TermQuery</a>.- </p>- </section>- <section id="The Big Picture"><title>The Big Picture</title>- <p>OK, so the tf-idf formula and the- <a href="api/core/org/apache/lucene/search/Similarity.html">Similarity</a>- is great for understanding the basics of Lucene scoring, but what really drives Lucene scoring are- the use and interactions between the- <a href="api/core/org/apache/lucene/search/Query.html">Query</a> classes, as created by each application in- response to a user's information need.- </p>- <p>In this regard, Lucene offers a wide variety of <a href="api/core/org/apache/lucene/search/Query.html">Query</a> implementations, most of which are in the- <a href="api/core/org/apache/lucene/search/package-summary.html">org.apache.lucene.search</a> package.- These implementations can be combined in a wide variety of ways to provide complex querying- capabilities along with- information about where matches took place in the document collection. The <a href="#Query Classes">Query</a>- section below- highlights some of the more important Query classes. For information on the other ones, see the- <a href="api/core/org/apache/lucene/search/package-summary.html">package summary</a>. For details on implementing- your own Query class, see <a href="#Changing your Scoring -- Expert Level">Changing your Scoring --- Expert Level</a> below.- </p>- <p>Once a Query has been created and submitted to the- <a href="api/core/org/apache/lucene/search/IndexSearcher.html">IndexSearcher</a>, the scoring process- begins. (See the <a- href="#Appendix">Appendix</a> Algorithm section for more notes on the process.) After some infrastructure setup,- control finally passes to the <a href="api/core/org/apache/lucene/search/Weight.html">Weight</a> implementation and its- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a> instance. In the case of any type of- <a href="api/core/org/apache/lucene/search/BooleanQuery.html">BooleanQuery</a>, scoring is handled by the- <a href="http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java?view=log">BooleanWeight2</a>- (link goes to ViewVC BooleanQuery java code which contains the BooleanWeight2 inner class) or- <a href="http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java?view=log">BooleanWeight</a>- (link goes to ViewVC BooleanQuery java code, which contains the BooleanWeight inner class).- </p>- <p>- Assuming the use of the BooleanWeight2, a- BooleanScorer2 is created by bringing together- all of the- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a>s from the sub-clauses of the BooleanQuery.- When the BooleanScorer2 is asked to score it delegates its work to an internal Scorer based on the type- of clauses in the Query. This internal Scorer essentially loops over the sub scorers and sums the scores- provided by each scorer while factoring in the coord() score.- <!-- Do we want to fill in the details of the counting sum scorer, disjunction scorer, etc.? -->- </p>- </section>- <section id="Query Classes"><title>Query Classes</title>- <p>For information on the Query Classes, refer to the- <a href="api/core/org/apache/lucene/search/package-summary.html#query">search package javadocs</a>- </p>- </section>- <section id="Changing Similarity"><title>Changing Similarity</title>- <p>One of the ways of changing the scoring characteristics of Lucene is to change the similarity factors. For information on- how to do this, see the- <a href="api/core/org/apache/lucene/search/package-summary.html#changingSimilarity">search package javadocs</a></p>- </section>-- </section>- <section id="Changing your Scoring -- Expert Level"><title>Changing your Scoring -- Expert Level</title>- <p>At a much deeper level, one can affect scoring by implementing their own Query classes (and related scoring classes.) To learn more- about how to do this, refer to the- <a href="api/core/org/apache/lucene/search/package-summary.html#scoring">search package javadocs</a>- </p>- </section>-- <section id="Appendix"><title>Appendix</title>- <section id="Algorithm"><title>Algorithm</title>- <p>This section is mostly notes on stepping through the Scoring process and serves as- fertilizer for the earlier sections.</p>- <p>In the typical search application, a- <a href="api/core/org/apache/lucene/search/Query.html">Query</a>- is passed to the- <a- href="api/core/org/apache/lucene/search/Searcher.html">Searcher</a>- , beginning the scoring process.- </p>- <p>Once inside the Searcher, a- <a href="api/core/org/apache/lucene/search/Collector.html">Collector</a>- is used for the scoring and sorting of the search results.- These important objects are involved in a search:- <ol>- <li>The- <a href="api/core/org/apache/lucene/search/Weight.html">Weight</a>- object of the Query. The Weight object is an internal representation of the Query that- allows the Query to be reused by the Searcher.- </li>- <li>The Searcher that initiated the call.</li>- <li>A- <a href="api/core/org/apache/lucene/search/Filter.html">Filter</a>- for limiting the result set. Note, the Filter may be null.- </li>- <li>A- <a href="api/core/org/apache/lucene/search/Sort.html">Sort</a>- object for specifying how to sort the results if the standard score based sort method is not- desired.- </li>- </ol>- </p>- <p> Assuming we are not sorting (since sorting doesn't- effect the raw Lucene score),- we call one of the search methods of the Searcher, passing in the- <a href="api/core/org/apache/lucene/search/Weight.html">Weight</a>- object created by Searcher.createWeight(Query),- <a href="api/core/org/apache/lucene/search/Filter.html">Filter</a>- and the number of results we want. This method- returns a- <a href="api/core/org/apache/lucene/search/TopDocs.html">TopDocs</a>- object, which is an internal collection of search results.- The Searcher creates a- <a href="api/core/org/apache/lucene/search/TopScoreDocCollector.html">TopScoreDocCollector</a>- and passes it along with the Weight, Filter to another expert search method (for more on the- <a href="api/core/org/apache/lucene/search/Collector.html">Collector</a>- mechanism, see- <a href="api/core/org/apache/lucene/search/Searcher.html">Searcher</a>- .) The TopDocCollector uses a- <a href="api/core/org/apache/lucene/util/PriorityQueue.html">PriorityQueue</a>- to collect the top results for the search.- </p>- <p>If a Filter is being used, some initial setup is done to determine which docs to include. Otherwise,- we ask the Weight for- a- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a>- for the- <a href="api/core/org/apache/lucene/index/IndexReader.html">IndexReader</a>- of the current searcher and we proceed by- calling the score method on the- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a>- .- </p>- <p>At last, we are actually going to score some documents. The score method takes in the Collector- (most likely the TopScoreDocCollector or TopFieldCollector) and does its business.- Of course, here is where things get involved. The- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a>- that is returned by the- <a href="api/core/org/apache/lucene/search/Weight.html">Weight</a>- object depends on what type of Query was submitted. In most real world applications with multiple- query terms,- the- <a href="api/core/org/apache/lucene/search/Scorer.html">Scorer</a>- is going to be a- <a href="http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/BooleanScorer2.java?view=log">BooleanScorer2</a>- (see the section on customizing your scoring for info on changing this.)-- </p>- <p>Assuming a BooleanScorer2 scorer, we first initialize the Coordinator, which is used to apply the- coord() factor. We then- get a internal Scorer based on the required, optional and prohibited parts of the query.- Using this internal Scorer, the BooleanScorer2 then proceeds- into a while loop based on the Scorer#next() method. The next() method advances to the next document- matching the query. This is an- abstract method in the Scorer class and is thus overriden by all derived- implementations. <!-- DOUBLE CHECK THIS -->If you have a simple OR query- your internal Scorer is most likely a DisjunctionSumScorer, which essentially combines the scorers- from the sub scorers of the OR'd terms.</p>- </section>- </section>- </body>-</document>diff --git a/lucene/site/src/documentation/content/xdocs/site.xml b/lucene/site/src/documentation/content/xdocs/site.xmldeleted file mode 100755index df1e1f3f2a1..00000000000--- a/lucene/site/src/documentation/content/xdocs/site.xml+++ /dev/null@@ -1,140 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!--- Copyright 2002-2004 The Apache Software Foundation or its licensors,- as applicable.-- 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.--->--<!---Forrest site.xml--This file contains an outline of the site's information content. It is used to:-- Generate the website menus (though these can be overridden - see docs)-- Provide semantic, location-independent aliases for internal 'site:' URIs, eg-<link href="site:changes"> links to changes.html (or ../changes.html if in- subdir).-- Provide aliases for external URLs in the external-refs section. Eg, <link- href="ext:cocoon"> links to http://cocoon.apache.org/--See http://forrest.apache.org/docs/linking.html for more info--->--<site label="Lucene" href="" xmlns="http://apache.org/forrest/linkmap/1.0">- <!-- Note: No matter what you configure here, Forrest will always try to load- index.html when you request http://yourHost/.- 'How can I use a start-up-page other than index.html?' in the FAQs has more- information tells you how to change that.- -->- <!--- With the exception of the About section, please try to keep items in alphabetical order by "label"-- -->- <!-- keep in submenu items alpha order -->- <docs label="Documentation">- <overview label="Overview" href="index.html"/>- <changes label="Changes" href="ext:changes"/>- <javadoc label="Javadocs">- <javadoc-core label="Core" href="ext:javadocs-core"/>- <javadoc-analyzers-common label="Analysis: Common" href="ext:javadocs-analyzers-common"/>- <javadoc-analyzers-kuromoji label="Analysis: Kuromoji (Japanese)" href="ext:javadocs-analyzers-kuromoji"/>- <javadoc-analyzers-morfologik label="Analysis: Morfologik (Polish)" href="ext:javadocs-analyzers-morfologik"/>- <javadoc-analyzers-phonetic label="Analysis: Phonetic" href="ext:javadocs-analyzers-phonetic"/>- <javadoc-analyzers-smartcn label="Analysis: Smart Chinese" href="ext:javadocs-analyzers-smartcn"/>- <javadoc-analyzers-stempel label="Analysis: Stempel (Polish)" href="ext:javadocs-analyzers-stempel"/>- <javadoc-analyzers-uima label="Analysis: UIMA" href="ext:javadocs-analyzers-uima"/>- <javadoc-benchmark label="Benchmark" href="ext:javadocs-benchmark"/>- <javadoc-demo label="Demo" href="ext:javadocs-demo"/>- <javadoc-facet label="Faceting" href="ext:javadocs-facet"/>- <javadoc-grouping label="Grouping" href="ext:javadocs-grouping"/>- <javadoc-highlighter label="Highlighter" href="ext:javadocs-highlighter"/>- <javadoc-join label="Join" href="ext:javadocs-join"/>- <javadoc-memory label="Memory" href="ext:javadocs-memory"/>- <javadoc-misc label="Miscellaneous" href="ext:javadocs-misc"/>- <javadoc-queries label="Queries" href="ext:javadocs-queries"/>- <javadoc-queryparser label="Query Parsers" href="ext:javadocs-queryparser"/>- <javadoc-sandbox label="Sandbox" href="ext:javadocs-sandbox"/>- <javadoc-spatial label="Spatial" href="ext:javadocs-spatial"/>- <javadoc-suggest label="Suggest / Spellcheck" href="ext:javadocs-suggest"/>- <javadoc-test-framework label="Test Framework" href="ext:javadocs-test-framework"/>- </javadoc>- <systemrequirements label="System Requirements" href="systemrequirements.html"/>- <contributions label="Contributions" href="contributions.html"/>- <faq label="FAQ" href="ext:faq" />- <file-formats label="File Formats" href="fileformats.html"/>- <tutorial label="Getting Started" href="gettingstarted.html"/>- <query-syntax label="Query Syntax" href="queryparsersyntax.html"/>- <scoring label="Scoring" href="scoring.html"/>- <wiki label="Wiki" href="ext:wiki" />- <privacy label="Privacy Policy" href="ext:privacy"/>- </docs>-- <!--- The href must be wholesite.html/pdf You can change the labels and node names- <all label="All">- <whole_site_html label="Whole Site HTML" href="wholesite.html"/>- <whole_site_pdf label="Whole Site PDF" href="wholesite.pdf"/>- </all>- -->-- <external-refs>- <changes href="changes/Changes.html" />- <javadocs-core href="api/core/index.html"/>- <javadocs-analyzers-common href="api/analyzers-common/index.html"/>- <javadocs-analyzers-icu href="api/analyzers-icu/index.html"/>- <javadocs-analyzers-kuromoji href="api/analyzers-kuromoji/index.html"/>- <javadocs-analyzers-morfologik href="api/analyzers-morfologik/index.html"/>- <javadocs-analyzers-phonetic href="api/analyzers-phonetic/index.html"/>- <javadocs-analyzers-smartcn href="api/analyzers-smartcn/index.html"/>- <javadocs-analyzers-stempel href="api/analyzers-stempel/index.html"/>- <javadocs-analyzers-uima href="api/analyzers-uima/index.html"/>- <javadocs-benchmark href="api/benchmark/index.html"/>- <javadocs-demo href="api/demo/index.html"/>- <javadocs-facet href="api/facet/index.html"/>- <javadocs-grouping href="api/grouping/index.html"/>- <javadocs-highlighter href="api/highlighter/index.html"/>- <javadocs-join href="api/join/index.html"/>- <javadocs-memory href="api/memory/index.html"/>- <javadocs-misc href="api/misc/index.html"/>- <javadocs-queries href="api/queries/index.html"/>- <javadocs-queryparser href="api/queryparser/index.html"/>- <javadocs-sandbox href="api/sandbox/index.html"/>- <javadocs-spatial href="api/spatial/index.html"/>- <javadocs-suggest href="api/suggest/index.html"/>- <javadocs-test-framework href="api/test-framework/index.html"/>-- <forrest href="http://forrest.apache.org/">- <linking href="docs/linking.html"/>- <validation href="docs/validation.html"/>- <webapp href="docs/your-project.html#webapp"/>- <dtd-docs href="docs/dtd-docs.html"/>- </forrest>- <privacy href="http://lucene.apache.org/privacy.html"/>- <cocoon href="http://cocoon.apache.org/"/>- <xml.apache.org href="http://xml.apache.org/"/>- <issues href="http://issues.apache.org/jira/browse/LUCENE"/>- <topLevel href="http://lucene.apache.org"/>- <solr href="http://lucene.apache.org/solr/" />- <nutch href="http://lucene.apache.org/nutch/" />- <lucy href="http://lucene.apache.org/lucy/"/>- <lucene-net href="http://incubator.apache.org/projects/lucene.net.html"/>- <hadoop href="http://lucene.apache.org/hadoop/"/>- <wiki href="http://wiki.apache.org/lucene-java" />- <faq href="http://wiki.apache.org/lucene-java/LuceneFAQ" />- <releases href="http://www.apache.org/dyn/closer.cgi/lucene/java/" />- <source href="http://svn.apache.org/viewcvs.cgi/lucene/dev/"/>- <powered-by href="http://wiki.apache.org/lucene-java/PoweredBy"/>-- </external-refs>--</site>diff --git a/lucene/site/src/documentation/content/xdocs/systemrequirements.xml b/lucene/site/src/documentation/content/xdocs/systemrequirements.xmldeleted file mode 100644index 313e0c8b508..00000000000--- a/lucene/site/src/documentation/content/xdocs/systemrequirements.xml+++ /dev/null@@ -1,27 +0,0 @@-<?xml version="1.0"?>-<document>-<header><title>Apache Lucene - System Requirements</title></header>-<properties>-<author email="[email protected]">Grant Ingersoll, Uwe Schindler</author>-</properties>-<body>- <!-- <section id="Code Coverage"><title>Code Coverage</title>- <p>Code Coverage reports are available <a- href="">here</a></p>- </section> -->-<section id="System Requirements"><title>System Requirements</title>-<p>- Lucene Core has the following minimum requirements:- <ul>- <li>Java 1.6.x or greater.</li>- <li>ANT 1.7.0 or greater.</li>- <li>CPU, Disk and Memory requirements are based on the many choices made in implementing Lucene (document size, number of documents, and number of hits retrieved to name a few.)</li>- </ul>-</p>-<p>Some modules may have other requirements, refer to their documentation and build files for information.</p>--</section>---</body>-</document>diff --git a/lucene/site/src/documentation/content/xdocs/tabs.xml b/lucene/site/src/documentation/content/xdocs/tabs.xmldeleted file mode 100755index 561ed8f452f..00000000000--- a/lucene/site/src/documentation/content/xdocs/tabs.xml+++ /dev/null@@ -1,64 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!--- Copyright 2002-2004 The Apache Software Foundation or its licensors,- as applicable.-- 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.--->-<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.1//EN" "http://forrest.apache.org/dtd/tab-cocoon-v11.dtd">--<tabs software="Java"- title="Java"- copyright="The Apache Software Foundation"- xmlns:xlink="http://www.w3.org/1999/xlink">-- <!-- The rules for tabs are:- @dir will always have '/@indexfile' added.- @indexfile gets appended to @dir if the tab is selected. Defaults to 'index.html'- @href is not modified unless it is root-relative and obviously specifies a- directory (ends in '/'), in which case /index.html will be added- If @id's are present, site.xml entries with a matching @tab will be in that tab.-- Tabs can be embedded to a depth of two. The second level of tabs will only- be displayed when their parent tab is selected.- -->-- <!--- <tab id="" label="Home" dir="" indexfile="index.html"/>- -->-- <tab id="" label="Main" href="http://lucene.apache.org/java/docs/"/>- <tab id="wiki" label="Wiki" href="http://wiki.apache.org/lucene-java"/>- <!--- <tab label="Lucene 2.3.0 Documentation" href="http://lucene.apache.org/java/2_3_0/"/>- -->- <tab label="Lucene 4.0 Documentation" dir=""/>--- <!--- <tab id="samples" label="Samples" dir="samples" indexfile="sample.html">- <tab id="samples-index" label="Index" dir="samples" indexfile="index.html"/>- <tab id="samples-sample2" label="Sample2" dir="samples" indexfile="static.html"/>- </tab>- <tab label="Apache XML Projects" href="http://xml.apache.org">- <tab label="Forrest" href="http://forrest.apache.org"/>- <tab label="Xerces" href="http://xml.apache.org/xerces"/>- </tab>- <tab id="plugins" label="Plugins" dir="pluginDocs/plugins_0_70" indexfile="index.html"/>- -->- <!-- Add new tabs here, eg:- <tab label="How-Tos" dir="community/howto/"/>- <tab label="XML Site" dir="xml-site/"/>- -->--</tabs>diff --git a/lucene/site/src/documentation/skinconf.xml b/lucene/site/src/documentation/skinconf.xmldeleted file mode 100755index 0ab811c6654..00000000000--- a/lucene/site/src/documentation/skinconf.xml+++ /dev/null@@ -1,404 +0,0 @@-<?xml version="1.0"?>-<!--- Copyright 2002-2005 The Apache Software Foundation or its licensors,- as applicable.-- 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.--->--<!---Skin configuration file. This file contains details of your project,-which will be used to configure the chosen Forrest skin.--->--<!DOCTYPE skinconfig PUBLIC "-//APACHE//DTD Skin Configuration V0.7-1//EN" "http://forrest.apache.org/dtd/skinconfig-v07-1.dtd">-<skinconfig>- <!-- To enable lucene search add provider="lucene" (default is google).- Add box-location="alt" to move the search box to an alternate location- (if the skin supports it) and box-location="all" to show it in all- available locations on the page. Remove the <search> element to show- no search box. @domain will enable sitesearch for the specific domain with google.- In other words google will search the @domain for the query string.- -->- <search name="Lucene Java" provider="Lucene"/>-- <!-- Disable the print link? If enabled, invalid HTML 4.0.1 -->- <disable-print-link>true</disable-print-link>- <!-- Disable the PDF link? -->- <disable-pdf-link>true</disable-pdf-link>- <!-- Disable the POD link? -->- <disable-pod-link>true</disable-pod-link>- <!-- Disable the Text link? FIXME: NOT YET IMPLEMENETED. -->- <disable-txt-link>true</disable-txt-link>- <!-- Disable the xml source link? -->- <!-- The xml source link makes it possible to access the xml rendition- of the source frim the html page, and to have it generated statically.- This can be used to enable other sites and services to reuse the- xml format for their uses. Keep this disabled if you don't want other- sites to easily reuse your pages.-->- <disable-xml-link>true</disable-xml-link>-- <!-- Disable navigation icons on all external links? -->- <disable-external-link-image>true</disable-external-link-image>-- <!-- Disable w3c compliance links?- Use e.g. align="center" to move the compliance links logos to- an alternate location default is left.- (if the skin supports it) -->- <disable-compliance-links>true</disable-compliance-links>-- <!-- Render mailto: links unrecognisable by spam harvesters? -->- <obfuscate-mail-links>false</obfuscate-mail-links>- <obfuscate-mail-value> ... </obfuscate-mail-value>-- <!-- Disable the javascript facility to change the font size -->- <disable-font-script>true</disable-font-script>-- <!-- mandatory project logo- default skin: renders it at the top -->- <project-name>Lucene</project-name>- <project-description>Apache Lucene is a high-performance, full-featured text search engine library written entirely in- Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.</project-description>- <project-url>http://lucene.apache.org/java/</project-url>- <project-logo>http://lucene.apache.org/images/lucene_green_300.gif</project-logo>- <!-- http://lucene.apache.org/images/lucene_green_300.gif -->- <!-- Alternative static image:- <project-logo>images/project-logo.gif</project-logo> -->-- <!-- optional group logo- default skin: renders it at the top-left corner -->- <!-- group logo -->- <group-name>Lucene</group-name>- <group-description>Apache Lucene</group-description>- <group-url>http://lucene.apache.org/</group-url>- <group-logo>http://www.apache.org/images/asf_logo_simple.png</group-logo>-- <!-- Alternative static image:- <group-logo>images/group-logo.gif</group-logo> -->-- <!-- optional host logo (e.g. sourceforge logo)- default skin: renders it at the bottom-left corner -->- <host-url></host-url>- <host-logo></host-logo>-- <!-- relative url of a favicon file, normally favicon.ico -->- <favicon-url>images/favicon.ico</favicon-url>-- <!-- The following are used to construct a copyright statement -->- <year>2006</year>- <vendor>The Apache Software Foundation.</vendor>- <copyright-link>http://www.apache.org/licenses/</copyright-link>-- <!-- Some skins use this to form a 'breadcrumb trail' of links.- Use location="alt" to move the trail to an alternate location- (if the skin supports it).- Omit the location attribute to display the trail in the default location.- Use location="none" to not display the trail (if the skin supports it).- For some skins just set the attributes to blank.-- NOTE: If a breadcrumb entry points at a local file the href must- be complete, that is it must point to the file itself, not to a- directory.- -->- <trail>- <link1 name="Apache" href="http://www.apache.org/"/>- <link2 name="Lucene" href="http://lucene.apache.org/"/>- <link3 name="" href="/"/>- </trail>-- <!-- Configure the TOC, i.e. the Table of Contents.- @max-depth- how many "section" levels need to be included in the- generated Table of Contents (TOC).- @min-sections- Minimum required to create a TOC.- @location ("page","menu","page,menu", "none")- Where to show the TOC.- -->- <toc max-depth="2" min-sections="1" location="page"/>-- <!-- Heading types can be clean|underlined|boxed -->- <headings type="boxed"/>-- <!-- The optional feedback element will be used to construct a- feedback link in the footer with the page pathname appended:- <a href="@href">{@to}</a>- -->- <!--- <feedback to="[email protected]"- href="mailto:[email protected]?subject=Feedback " >- Send feedback about the website to:- </feedback>- -->-- <!-- Optional message of the day (MOTD).- Note: This is only implemented in the pelt skin.- If the optional <motd> element is used, then messages will be appended- depending on the URI string pattern.- motd-option : Specifies a pattern to match and provides small text content.- motd-title : This text will be added in brackets after the <html><title>- motd-page : This text will be added in a panel on the face of the page,- with the "motd-page-url" being the hyperlink "More".- Values for the "location" attribute are:- page : on the face of the page, e.g. in the spare space of the toc- alt : at the bottom of the left-hand navigation panel- both : both- -->-<!--- <motd>- <motd-option pattern="docs_0_80">- <motd-title>v0.8-dev</motd-title>- <motd-page location="both">- This is documentation for development version v0.8- </motd-page>- <motd-page-url>/versions/index.html</motd-page-url>- </motd-option>- <motd-option pattern="docs_0_70">- <motd-title>v0.7</motd-title>- <motd-page location="both">- This is documentation for current version v0.7- </motd-page>- <motd-page-url>/versions/index.html</motd-page-url>- </motd-option>- </motd>--->-- <!--- extra-css - here you can define custom css-elements that are- A) overriding the fallback elements or- B) adding the css definition from new elements that you may have- used in your documentation.- -->- <extra-css>- <!--Example of reason B:- To define the css definition of a new element that you may have used- in the class attribute of a <p> node.- e.g. <p class="quote"/>- -->- p.quote {- margin-left: 2em;- padding: .5em;- background-color: #f0f0f0;- font-family: monospace;- }- img.float-right {- float: right;- margin-left: 2em;- padding: .5em;- }- <!--Example:- To override the colours of links only in the footer.- -->- #footer a { color: #0F3660; }- #footer a:visited { color: #009999; }-- pre.code {- margin-left: 2em;- margin-right: 2em;- padding: 0.5em;- background-color: #f0f0f0;- }--- </extra-css>-- <colors>- <!-- These values are used for the generated CSS files.- They essentially "override" the default colors defined in the chosen skin.- There are four duplicate "groups" of colors below, denoted by comments:- Color group: Forrest, Krysalis, Collabnet, and Lenya using Pelt.- They are provided for example only. To customize the colors of any skin,- uncomment one of these groups of color elements and change the values- of the particular color elements that you wish to change.- Note that by default, all color groups are commented-out which means that- the default colors provided by the skin are being used.- -->-- <!-- Color group: Forrest: example colors similar to forrest.apache.org- Some of the element names are obscure, so comments are added to show how- the "pelt" skin uses them, other skins might use these elements in a different way.- Tip: temporarily change the value of an element to red (#ff0000) and see the effect.- pelt: breadtrail: the strip at the top of the page and the second strip under the tabs- pelt: header: top strip containing project and group logos- pelt: heading|subheading: section headings within the content- pelt: navstrip: the strip under the tabs which contains the published date- pelt: menu: the left-hand navigation panel- pelt: toolbox: the selected menu item- pelt: searchbox: the background of the searchbox- pelt: border: line border around selected menu item- pelt: body: any remaining parts, e.g. the bottom of the page- pelt: footer: the second from bottom strip containing credit logos and published date- pelt: feedback: the optional bottom strip containing feedback link- -->-<!--- <color name="breadtrail" value="#cedfef" font="#0F3660" link="#0F3660" vlink="#0F3660" hlink="#000066"/>- <color name="header" value="#294563"/>- <color name="tab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>- <color name="tab-unselected" value="#b5c7e7" link="#0F3660" vlink="#0F3660" hlink="#000066"/>- <color name="subtab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>- <color name="subtab-unselected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>- <color name="heading" value="#294563"/>- <color name="subheading" value="#4a6d8c"/>- <color name="published" value="#4C6C8F" font="#FFFFFF"/>- <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>- <color name="navstrip" value="#4a6d8c" font="#ffffff" link="#0F3660" vlink="#0F3660" hlink="#000066"/>- <color name="menu" value="#4a6d8c" font="#cedfef" link="#ffffff" vlink="#ffffff" hlink="#ffcf00"/>- <color name="toolbox" value="#4a6d8c"/>- <color name="border" value="#294563"/>- <color name="dialog" value="#4a6d8c"/>- <color name="searchbox" value="#4a6d8c" font="#000000"/>- <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>- <color name="table" value="#7099C5"/>- <color name="table-cell" value="#f0f0ff"/>- <color name="highlight" value="#ffff00"/>- <color name="fixme" value="#cc6600"/>- <color name="note" value="#006699"/>- <color name="warning" value="#990000"/>- <color name="code" value="#CFDCED"/>- <color name="footer" value="#cedfef"/>--->-- <!-- Color group: Krysalis -->-<!--- <color name="header" value="#FFFFFF"/>-- <color name="tab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="tab-unselected" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="subtab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="subtab-unselected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>-- <color name="heading" value="#a5b6c6"/>- <color name="subheading" value="#CFDCED"/>-- <color name="navstrip" value="#CFDCED" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="toolbox" value="#a5b6c6"/>- <color name="border" value="#a5b6c6"/>-- <color name="menu" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="dialog" value="#F7F7F7"/>-- <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>-- <color name="table" value="#a5b6c6"/>- <color name="table-cell" value="#ffffff"/>- <color name="highlight" value="#ffff00"/>- <color name="fixme" value="#cc6600"/>- <color name="note" value="#006699"/>- <color name="warning" value="#990000"/>- <color name="code" value="#a5b6c6"/>-- <color name="footer" value="#a5b6c6"/>--->-- <!-- Color group: Collabnet -->-<!--- <color name="header" value="#003366"/>-- <color name="tab-selected" value="#dddddd" link="#555555" vlink="#555555" hlink="#555555"/>- <color name="tab-unselected" value="#999999" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>- <color name="subtab-selected" value="#cccccc" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="subtab-unselected" value="#cccccc" link="#555555" vlink="#555555" hlink="#555555"/>-- <color name="heading" value="#003366"/>- <color name="subheading" value="#888888"/>-- <color name="navstrip" value="#dddddd" font="#555555"/>- <color name="toolbox" value="#dddddd" font="#555555"/>- <color name="border" value="#999999"/>-- <color name="menu" value="#ffffff"/>- <color name="dialog" value="#eeeeee"/>-- <color name="body" value="#ffffff"/>-- <color name="table" value="#ccc"/>- <color name="table-cell" value="#ffffff"/>- <color name="highlight" value="#ffff00"/>- <color name="fixme" value="#cc6600"/>- <color name="note" value="#006699"/>- <color name="warning" value="#990000"/>- <color name="code" value="#003366"/>-- <color name="footer" value="#ffffff"/>--->- <!-- Color group: Lenya using pelt-->-<!---- <color name="header" value="#ffffff"/>-- <color name="tab-selected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="tab-unselected" value="#F5F4E9" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="subtab-selected" value="#000000" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>-- <color name="heading" value="#E5E4D9"/>- <color name="subheading" value="#000000"/>- <color name="published" value="#000000"/>- <color name="navstrip" value="#E5E4D9" font="#000000"/>- <color name="toolbox" value="#CFDCED" font="#000000"/>- <color name="border" value="#999999"/>-- <color name="menu" value="#E5E4D9" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="dialog" value="#CFDCED"/>- <color name="body" value="#ffffff" />-- <color name="table" value="#ccc"/>- <color name="table-cell" value="#ffffff"/>- <color name="highlight" value="#ffff00"/>- <color name="fixme" value="#cc6600"/>- <color name="note" value="#006699"/>- <color name="warning" value="#990000"/>- <color name="code" value="#003366"/>-- <color name="footer" value="#E5E4D9"/>--->- </colors>-- <!--- Credits are typically rendered as a set of small clickable- images in the page footer.-- Use box-location="alt" to move the credits to an alternate location- (if the skin supports it).-- For example, pelt skin:- - box-location="alt" will place the logo at the end of the- left-hand coloured menu panel.- - box-location="alt2" will place them underneath that panel- in the left-hand whitespace.- - Otherwise they are placed next to the compatibility icons- at the bottom of the screen.-- Comment out the whole <credit>-element if you want no credits in the- web pages- -->- <credits>- <credit box-location="alt">- <name>Built with Apache Forrest</name>- <url>http://forrest.apache.org/</url>- <image>images/built-with-forrest-button.png</image>- <width>88</width>- <height>31</height>- </credit>- <!-- A credit with @role="pdf" will be used to compose a footer- for each page in the PDF, using either "name" or "url" or both.- -->- <!--- <credit role="pdf">- <name>Built with Apache Forrest</name>- <url>http://forrest.apache.org/</url>- </credit>- -->- </credits>--</skinconfig>diff --git a/lucene/site/src/documentation/skins/common/css/forrest.css.xslt b/lucene/site/src/documentation/skins/common/css/forrest.css.xsltdeleted file mode 100644index fbfa020f60f..00000000000--- a/lucene/site/src/documentation/skins/common/css/forrest.css.xslt+++ /dev/null@@ -1,78 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">-<!-- This is not used by Forrest but makes it possible to debug the- stylesheet in standalone editors -->- <xsl:output method = "text" omit-xml-declaration="yes" />-<!--- If the skin doesn't override this, at least aural styles- and extra-css are present--->- <xsl:template match="skinconfig">- <xsl:call-template name="aural"/>- <xsl:call-template name="a-external"/>- <xsl:apply-templates/>- <xsl:call-template name="add-extra-css"/>- </xsl:template>- <xsl:template match="colors">- <xsl:apply-templates/>- </xsl:template>- <xsl:template name="aural">--/* ==================== aural ============================ */--@media aural {- h1, h2, h3, h4, h5, h6 { voice-family: paul, male; stress: 20; richness: 90 }- h1 { pitch: x-low; pitch-range: 90 }- h2 { pitch: x-low; pitch-range: 80 }- h3 { pitch: low; pitch-range: 70 }- h4 { pitch: medium; pitch-range: 60 }- h5 { pitch: medium; pitch-range: 50 }- h6 { pitch: medium; pitch-range: 40 }- li, dt, dd { pitch: medium; richness: 60 }- dt { stress: 80 }- pre, code, tt { pitch: medium; pitch-range: 0; stress: 0; richness: 80 }- em { pitch: medium; pitch-range: 60; stress: 60; richness: 50 }- strong { pitch: medium; pitch-range: 60; stress: 90; richness: 90 }- dfn { pitch: high; pitch-range: 60; stress: 60 }- s, strike { richness: 0 }- i { pitch: medium; pitch-range: 60; stress: 60; richness: 50 }- b { pitch: medium; pitch-range: 60; stress: 90; richness: 90 }- u { richness: 0 }-- :link { voice-family: harry, male }- :visited { voice-family: betty, female }- :active { voice-family: betty, female; pitch-range: 80; pitch: x-high }-}- </xsl:template>- <xsl:template name="a-external">-a.external {- padding: 0 20px 0px 0px;- display:inline;- background-repeat: no-repeat;- background-position: center right;- background-image: url(images/external-link.gif);-}- </xsl:template>- <xsl:template name="add-extra-css">-<xsl:text>/* extra-css */</xsl:text>- <xsl:value-of select="extra-css"/>- </xsl:template>- <xsl:template match="*"></xsl:template>- <xsl:template match="text()"></xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/images/README.txt b/lucene/site/src/documentation/skins/common/images/README.txtdeleted file mode 100644index e0932f4a46d..00000000000--- a/lucene/site/src/documentation/skins/common/images/README.txt+++ /dev/null@@ -1 +0,0 @@-The images in this directory are used if the current skin lacks them.diff --git a/lucene/site/src/documentation/skins/common/images/chapter.gif b/lucene/site/src/documentation/skins/common/images/chapter.gifdeleted file mode 100644index d3d8245d0c7..00000000000Binary files a/lucene/site/src/documentation/skins/common/images/chapter.gif and /dev/null differdiff --git a/lucene/site/src/documentation/skins/common/images/corner-imports.svg.xslt b/lucene/site/src/documentation/skins/common/images/corner-imports.svg.xsltdeleted file mode 100644index 95b58d26f3c..00000000000--- a/lucene/site/src/documentation/skins/common/images/corner-imports.svg.xslt+++ /dev/null@@ -1,92 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:param name="orientation-tb"/>- <xsl:param name="orientation-lr"/>- <xsl:param name="size"/>- <xsl:param name="bg-color-name"/>- <xsl:param name="stroke-color-name"/>- <xsl:param name="fg-color-name"/>-<!-- if not all colors are present, don't even try to render the corners -->- <xsl:variable name="isize">- <xsl:choose>- <xsl:when test="$bg-color-name and $stroke-color-name and $fg-color-name">- <xsl:value-of select="$size"/>- </xsl:when>- <xsl:otherwise>0</xsl:otherwise>- </xsl:choose>- </xsl:variable>- <xsl:variable name="smallersize" select="number($isize)-1"/>- <xsl:variable name="biggersize" select="number($isize)+1"/>- <xsl:variable name="bg">- <xsl:if test="skinconfig/colors/color[@name=$bg-color-name]">fill:<xsl:value-of select="skinconfig/colors/color[@name=$bg-color-name]/@value"/>;</xsl:if>- </xsl:variable>- <xsl:variable name="fill">- <xsl:if test="skinconfig/colors/color[@name=$stroke-color-name]">fill:<xsl:value-of select="skinconfig/colors/color[@name=$stroke-color-name]/@value"/>;</xsl:if>- </xsl:variable>- <xsl:variable name="stroke">- <xsl:if test="skinconfig/colors/color[@name=$fg-color-name]">stroke:<xsl:value-of select="skinconfig/colors/color[@name=$fg-color-name]/@value"/>;</xsl:if>- </xsl:variable>- <xsl:template match="skinconfig">- <svg width="{$isize}" height="{$isize}">-<!-- background-->- <rect x="-1" y="-1" width="{$biggersize}" height="{$biggersize}" style="{$bg}stroke-width:0"/>-<!-- 0,0 0,-4 4,0 4,-4-->- <xsl:variable name="flip-tb-scale">- <xsl:choose>- <xsl:when test="$orientation-tb='t'">1</xsl:when>- <xsl:otherwise>-1</xsl:otherwise>- </xsl:choose>- </xsl:variable>- <xsl:variable name="flip-lr-scale">- <xsl:choose>- <xsl:when test="$orientation-lr='l'">1</xsl:when>- <xsl:otherwise>-1</xsl:otherwise>- </xsl:choose>- </xsl:variable>- <xsl:variable name="flip-tb-translate">- <xsl:choose>- <xsl:when test="$orientation-tb='t'">0</xsl:when>- <xsl:otherwise>-<xsl:value-of select="$isize" />- </xsl:otherwise>- </xsl:choose>- </xsl:variable>- <xsl:variable name="flip-lr-translate">- <xsl:choose>- <xsl:when test="$orientation-lr='l'">0</xsl:when>- <xsl:otherwise>-<xsl:value-of select="$isize" />- </xsl:otherwise>- </xsl:choose>- </xsl:variable>-<!-- flip transform -->- <g transform="scale({$flip-lr-scale},{$flip-tb-scale}) translate({$flip-lr-translate}, {$flip-tb-translate})">- <xsl:call-template name="figure" />- </g>- </svg>- </xsl:template>- <xsl:template name="figure">-<!-- Just change shape here -->- <g transform="translate(0.5 0.5)">- <ellipse cx="{$smallersize}" cy="{$smallersize}" rx="{$smallersize}" ry="{$smallersize}"- style="{$fill}{$stroke}stroke-width:1"/>- </g>-<!-- end -->- </xsl:template>- <xsl:template match="*"></xsl:template>- <xsl:template match="text()"></xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/images/current.gif b/lucene/site/src/documentation/skins/common/images/current.gifdeleted file mode 100644index fd82c082012..00000000000Binary files a/lucene/site/src/documentation/skins/common/images/current.gif and /dev/null differdiff --git a/lucene/site/src/documentation/skins/common/images/dc.svg.xslt b/lucene/site/src/documentation/skins/common/images/dc.svg.xsltdeleted file mode 100644index f900f2f9549..00000000000--- a/lucene/site/src/documentation/skins/common/images/dc.svg.xslt+++ /dev/null@@ -1,28 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:import href="corner-imports.svg.xslt" />-<!-- Diagonal 45 degrees corner -->- <xsl:template name="figure">- <xsl:variable name="biggersize" select="number($size)+number($size)"/>- <g transform="translate(0 0.5)">- <polygon points="0,{$size} {$size},0 {$biggersize},0 {$biggersize},{$biggersize} 0,{$biggersize}"- style="{$fill}{$stroke}stroke-width:1"/>- </g>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/images/page.gif b/lucene/site/src/documentation/skins/common/images/page.gifdeleted file mode 100644index a144d3295be..00000000000Binary files a/lucene/site/src/documentation/skins/common/images/page.gif and /dev/null differdiff --git a/lucene/site/src/documentation/skins/common/images/poddoc.svg.xslt b/lucene/site/src/documentation/skins/common/images/poddoc.svg.xsltdeleted file mode 100644index 6097d2b357d..00000000000--- a/lucene/site/src/documentation/skins/common/images/poddoc.svg.xslt+++ /dev/null@@ -1,55 +0,0 @@-<?xml version="1.0" encoding="UTF-8" standalone="no"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<svg width="20pt" height="20pt"- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink">- <defs- id="defs550">- <linearGradient id="gray2white">- <stop style="stop-color:#7f7f7f;stop-opacity:1;" offset="0.000000"/>- <stop style="stop-color:#ffffff;stop-opacity:1;" offset="1.000000"/>- </linearGradient>- <linearGradient id="pageshade" xlink:href="#gray2white"- x1="0.95" y1="0.95"- x2="0.40" y2="0.20"- gradientUnits="objectBoundingBox" spreadMethod="pad" />- <path d="M 0 0 L 200 0" style="stroke:#000000;stroke-width:1pt;" id="hr"/>- </defs>- <g transform="scale(0.08)">- <g transform="translate(40, 0)">- <rect width="230" height="300" x="0" y="0"- style="fill:url(#pageshade);fill-rule:evenodd;- stroke:#000000;stroke-width:1.25;"/>- <g transform="translate(15, 60)">- <use xlink:href="#hr" x="0" y="0"/>- <use xlink:href="#hr" x="0" y="60"/>- <use xlink:href="#hr" x="0" y="120"/>- <use xlink:href="#hr" x="0" y="180"/>- </g>- </g>- <g transform="translate(0,70),scale(1.1,1.6)">- <rect width="200" height="100" x="0" y="0"- style="fill:#ff0000;fill-rule:evenodd;- stroke:#000000;stroke-width:2.33903;"/>- <text x="20" y="75"- style="stroke:#ffffff;stroke-width:1.0;- font-size:72;font-weight:normal;fill:#ffffff;- font-family:Arial;text-anchor:start;">POD</text>- </g>- </g>-</svg>diff --git a/lucene/site/src/documentation/skins/common/images/rc.svg.xslt b/lucene/site/src/documentation/skins/common/images/rc.svg.xsltdeleted file mode 100644index d8924fec1b4..00000000000--- a/lucene/site/src/documentation/skins/common/images/rc.svg.xslt+++ /dev/null@@ -1,27 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:import href="corner-imports.svg.xslt" />-<!-- Rounded corner -->- <xsl:template name="figure">- <g transform="translate(0.5 0.5)">- <ellipse cx="{$smallersize}" cy="{$smallersize}" rx="{$smallersize}" ry="{$smallersize}"- style="{$fill}{$stroke}stroke-width:1"/>- </g>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/images/txtdoc.svg.xslt b/lucene/site/src/documentation/skins/common/images/txtdoc.svg.xsltdeleted file mode 100644index d85715c750d..00000000000--- a/lucene/site/src/documentation/skins/common/images/txtdoc.svg.xslt+++ /dev/null@@ -1,55 +0,0 @@-<?xml version="1.0" encoding="UTF-8" standalone="no"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<svg width="20pt" height="20pt"- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink">- <defs- id="defs550">- <linearGradient id="gray2white">- <stop style="stop-color:#7f7f7f;stop-opacity:1;" offset="0.000000"/>- <stop style="stop-color:#ffffff;stop-opacity:1;" offset="1.000000"/>- </linearGradient>- <linearGradient id="pageshade" xlink:href="#gray2white"- x1="0.95" y1="0.95"- x2="0.40" y2="0.20"- gradientUnits="objectBoundingBox" spreadMethod="pad" />- <path d="M 0 0 L 200 0" style="stroke:#000000;stroke-width:1pt;" id="hr"/>- </defs>- <g transform="scale(0.08)">- <g transform="translate(40, 0)">- <rect width="230" height="300" x="0" y="0"- style="fill:url(#pageshade);fill-rule:evenodd;- stroke:#000000;stroke-width:1.25;"/>- <g transform="translate(15, 60)">- <use xlink:href="#hr" x="0" y="0"/>- <use xlink:href="#hr" x="0" y="60"/>- <use xlink:href="#hr" x="0" y="120"/>- <use xlink:href="#hr" x="0" y="180"/>- </g>- </g>- <g transform="translate(0,70),scale(1.1,1.6)">- <rect width="200" height="100" x="0" y="0"- style="fill:#ff0000;fill-rule:evenodd;- stroke:#000000;stroke-width:2.33903;"/>- <text x="20" y="75"- style="stroke:#ffffff;stroke-width:1.0;- font-size:72;font-weight:normal;fill:#ffffff;- font-family:Arial;text-anchor:start;">TXT</text>- </g>- </g>-</svg>diff --git a/lucene/site/src/documentation/skins/common/scripts/breadcrumbs-optimized.js b/lucene/site/src/documentation/skins/common/scripts/breadcrumbs-optimized.jsdeleted file mode 100644index 507612af872..00000000000--- a/lucene/site/src/documentation/skins/common/scripts/breadcrumbs-optimized.js+++ /dev/null@@ -1,90 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-var PREPREND_CRUMBS=new Array();-var link1="@skinconfig.trail.link1.name@";-var link2="@skinconfig.trail.link2.name@";-var link3="@skinconfig.trail.link3.name@";-if(!(link1=="")&&!link1.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link1, @skinconfig.trail.link1.href@ ) ); }-if(!(link2=="")&&!link2.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link2, @skinconfig.trail.link2.href@ ) ); }-if(!(link3=="")&&!link3.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link3, @skinconfig.trail.link3.href@ ) ); }-var DISPLAY_SEPARATOR=" > ";-var DISPLAY_PREPREND=" > ";-var DISPLAY_POSTPREND=":";-var CSS_CLASS_CRUMB="breadcrumb";-var CSS_CLASS_TRAIL="breadcrumbTrail";-var CSS_CLASS_SEPARATOR="crumbSeparator";-var FILE_EXTENSIONS=new Array( ".html", ".htm", ".jsp", ".php", ".php3", ".php4" );-var PATH_SEPARATOR="/";--function sc(s) {- var l=s.toLowerCase();- return l.substr(0,1).toUpperCase()+l.substr(1);-}-function getdirs() {- var t=document.location.pathname.split(PATH_SEPARATOR);- var lc=t[t.length-1];- for(var i=0;i < FILE_EXTENSIONS.length;i++)- {- if(lc.indexOf(FILE_EXTENSIONS[i]))- return t.slice(1,t.length-1); }- return t.slice(1,t.length);-}-function getcrumbs( d )-{- var pre = "/";- var post = "/";- var c = new Array();- if( d != null )- {- for(var i=0;i < d.length;i++) {- pre+=d[i]+postfix;- c.push(new Array(d[i],pre)); }- }- if(PREPREND_CRUMBS.length > 0 )- return PREPREND_CRUMBS.concat( c );- return c;-}-function gettrail( c )-{- var h=DISPLAY_PREPREND;- for(var i=0;i < c.length;i++)- {- h+='<a href="'+c[i][1]+'" >'+sc(c[i][0])+'</a>';- if(i!=(c.length-1))- h+=DISPLAY_SEPARATOR; }- return h+DISPLAY_POSTPREND;-}--function gettrailXHTML( c )-{- var h='<span class="'+CSS_CLASS_TRAIL+'">'+DISPLAY_PREPREND;- for(var i=0;i < c.length;i++)- {- h+='<a href="'+c[i][1]+'" class="'+CSS_CLASS_CRUMB+'">'+sc(c[i][0])+'</a>';- if(i!=(c.length-1))- h+='<span class="'+CSS_CLASS_SEPARATOR+'">'+DISPLAY_SEPARATOR+'</span>'; }- return h+DISPLAY_POSTPREND+'</span>';-}--if(document.location.href.toLowerCase().indexOf("http://")==-1)- document.write(gettrail(getcrumbs()));-else- document.write(gettrail(getcrumbs(getdirs())));-diff --git a/lucene/site/src/documentation/skins/common/scripts/breadcrumbs.js b/lucene/site/src/documentation/skins/common/scripts/breadcrumbs.jsdeleted file mode 100644index aea80ec045b..00000000000--- a/lucene/site/src/documentation/skins/common/scripts/breadcrumbs.js+++ /dev/null@@ -1,237 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-/**- * This script, when included in a html file, builds a neat breadcrumb trail- * based on its url. That is, if it doesn't contains bugs (I'm relatively- * sure it does).- *- * Typical usage:- * <script type="text/javascript" language="JavaScript" src="breadcrumbs.js"></script>- */--/**- * IE 5 on Mac doesn't know Array.push.- *- * Implement it - courtesy to fritz.- */-var abc = new Array();-if (!abc.push) {- Array.prototype.push = function(what){this[this.length]=what}-}--/* ========================================================================- CONSTANTS- ======================================================================== */--/**- * Two-dimensional array containing extra crumbs to place at the front of- * the trail. Specify first the name of the crumb, then the URI that belongs- * to it. You'll need to modify this for every domain or subdomain where- * you use this script (you can leave it as an empty array if you wish)- */-var PREPREND_CRUMBS = new Array();--var link1 = "@skinconfig.trail.link1.name@";-var link2 = "@skinconfig.trail.link2.name@";-var link3 = "@skinconfig.trail.link3.name@";--var href1 = "@skinconfig.trail.link1.href@";-var href2 = "@skinconfig.trail.link2.href@";-var href3 = "@skinconfig.trail.link3.href@";-- if(!(link1=="")&&!link1.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link1, href1 ) );- }- if(!(link2=="")&&!link2.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link2, href2 ) );- }- if(!(link3=="")&&!link3.indexOf( "@" ) == 0){- PREPREND_CRUMBS.push( new Array( link3, href3 ) );- }--/**- * String to include between crumbs:- */-var DISPLAY_SEPARATOR = " > ";-/**- * String to include at the beginning of the trail- */-var DISPLAY_PREPREND = " > ";-/**- * String to include at the end of the trail- */-var DISPLAY_POSTPREND = "";--/**- * CSS Class to use for a single crumb:- */-var CSS_CLASS_CRUMB = "breadcrumb";--/**- * CSS Class to use for the complete trail:- */-var CSS_CLASS_TRAIL = "breadcrumbTrail";--/**- * CSS Class to use for crumb separator:- */-var CSS_CLASS_SEPARATOR = "crumbSeparator";--/**- * Array of strings containing common file extensions. We use this to- * determine what part of the url to ignore (if it contains one of the- * string specified here, we ignore it).- */-var FILE_EXTENSIONS = new Array( ".html", ".htm", ".jsp", ".php", ".php3", ".php4" );--/**- * String that separates parts of the breadcrumb trail from each other.- * When this is no longer a slash, I'm sure I'll be old and grey.- */-var PATH_SEPARATOR = "/";--/* ========================================================================- UTILITY FUNCTIONS- ======================================================================== */-/**- * Capitalize first letter of the provided string and return the modified- * string.- */-function sentenceCase( string )-{ return string;- //var lower = string.toLowerCase();- //return lower.substr(0,1).toUpperCase() + lower.substr(1);-}--/**- * Returns an array containing the names of all the directories in the- * current document URL- */-function getDirectoriesInURL()-{- var trail = document.location.pathname.split( PATH_SEPARATOR );-- // check whether last section is a file or a directory- var lastcrumb = trail[trail.length-1];- for( var i = 0; i < FILE_EXTENSIONS.length; i++ )- {- if( lastcrumb.indexOf( FILE_EXTENSIONS[i] ) )- {- // it is, remove it and send results- return trail.slice( 1, trail.length-1 );- }- }-- // it's not; send the trail unmodified- return trail.slice( 1, trail.length );-}--/* ========================================================================- BREADCRUMB FUNCTIONALITY- ======================================================================== */-/**- * Return a two-dimensional array describing the breadcrumbs based on the- * array of directories passed in.- */-function getBreadcrumbs( dirs )-{- var prefix = "/";- var postfix = "/";-- // the array we will return- var crumbs = new Array();-- if( dirs != null )- {- for( var i = 0; i < dirs.length; i++ )- {- prefix += dirs[i] + postfix;- crumbs.push( new Array( dirs[i], prefix ) );- }- }-- // preprend the PREPREND_CRUMBS- if(PREPREND_CRUMBS.length > 0 )- {- return PREPREND_CRUMBS.concat( crumbs );- }-- return crumbs;-}--/**- * Return a string containing a simple text breadcrumb trail based on the- * two-dimensional array passed in.- */-function getCrumbTrail( crumbs )-{- var xhtml = DISPLAY_PREPREND;-- for( var i = 0; i < crumbs.length; i++ )- {- xhtml += '<a href="' + crumbs[i][1] + '" >';- xhtml += unescape( crumbs[i][0] ) + '</a>';- if( i != (crumbs.length-1) )- {- xhtml += DISPLAY_SEPARATOR;- }- }-- xhtml += DISPLAY_POSTPREND;-- return xhtml;-}--/**- * Return a string containing an XHTML breadcrumb trail based on the- * two-dimensional array passed in.- */-function getCrumbTrailXHTML( crumbs )-{- var xhtml = '<span class="' + CSS_CLASS_TRAIL + '">';- xhtml += DISPLAY_PREPREND;-- for( var i = 0; i < crumbs.length; i++ )- {- xhtml += '<a href="' + crumbs[i][1] + '" class="' + CSS_CLASS_CRUMB + '">';- xhtml += unescape( crumbs[i][0] ) + '</a>';- if( i != (crumbs.length-1) )- {- xhtml += '<span class="' + CSS_CLASS_SEPARATOR + '">' + DISPLAY_SEPARATOR + '</span>';- }- }-- xhtml += DISPLAY_POSTPREND;- xhtml += '</span>';-- return xhtml;-}--/* ========================================================================- PRINT BREADCRUMB TRAIL- ======================================================================== */--// check if we're local; if so, only print the PREPREND_CRUMBS-if( document.location.href.toLowerCase().indexOf( "http://" ) == -1 )-{- document.write( getCrumbTrail( getBreadcrumbs() ) );-}-else-{- document.write( getCrumbTrail( getBreadcrumbs( getDirectoriesInURL() ) ) );-}-diff --git a/lucene/site/src/documentation/skins/common/scripts/fontsize.js b/lucene/site/src/documentation/skins/common/scripts/fontsize.jsdeleted file mode 100644index 11722bfc52f..00000000000--- a/lucene/site/src/documentation/skins/common/scripts/fontsize.js+++ /dev/null@@ -1,166 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-function init()-{ //embedded in the doc- //ndeSetTextSize();-}--function checkBrowser(){- if (!document.getElementsByTagName){- return true;- }- else{- return false;- }-}---function ndeSetTextSize(chgsize,rs)-{- var startSize;- var newSize;-- if (!checkBrowser)- {- return;- }-- startSize = parseInt(ndeGetDocTextSize());-- if (!startSize)- {- startSize = 16;- }-- switch (chgsize)- {- case 'incr':- newSize = startSize + 2;- break;-- case 'decr':- newSize = startSize - 2;- break;-- case 'reset':- if (rs) {newSize = rs;} else {newSize = 16;}- break;-- default:- try{- newSize = parseInt(ndeReadCookie("nde-textsize"));- }- catch(e){- alert(e);- }-- if (!newSize || newSize == 'NaN')- {- newSize = startSize;- }- break;-- }-- if (newSize < 10)- {- newSize = 10;- }-- newSize += 'px';-- document.getElementsByTagName('html')[0].style.fontSize = newSize;- document.getElementsByTagName('body')[0].style.fontSize = newSize;-- ndeCreateCookie("nde-textsize", newSize, 365);-}--function ndeGetDocTextSize()-{- if (!checkBrowser)- {- return 0;- }-- var size = 0;- var body = document.getElementsByTagName('body')[0];-- if (body.style && body.style.fontSize)- {- size = body.style.fontSize;- }- else if (typeof(getComputedStyle) != 'undefined')- {- size = getComputedStyle(body,'').getPropertyValue('font-size');- }- else if (body.currentStyle)- {- size = body.currentStyle.fontSize;- }-- //fix IE bug- if( isNaN(size)){- if(size.substring(size.length-1)=="%"){- return- }-- }-- return size;--}----function ndeCreateCookie(name,value,days)-{- var cookie = name + "=" + value + ";";-- if (days)- {- var date = new Date();- date.setTime(date.getTime()+(days*24*60*60*1000));- cookie += " expires=" + date.toGMTString() + ";";- }- cookie += " path=/";-- document.cookie = cookie;--}--function ndeReadCookie(name)-{- var nameEQ = name + "=";- var ca = document.cookie.split(';');--- for(var i = 0; i < ca.length; i++)- {- var c = ca[i];- while (c.charAt(0) == ' ')- {- c = c.substring(1, c.length);- }-- ctest = c.substring(0,name.length);-- if(ctest == name){- return c.substring(nameEQ.length,c.length);- }- }- return null;-}diff --git a/lucene/site/src/documentation/skins/common/scripts/getBlank.js b/lucene/site/src/documentation/skins/common/scripts/getBlank.jsdeleted file mode 100644index d9978c0b3e6..00000000000--- a/lucene/site/src/documentation/skins/common/scripts/getBlank.js+++ /dev/null@@ -1,40 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-/**- * getBlank script - when included in a html file and called from a form text field, will set the value of this field to ""- * if the text value is still the standard value.- * getPrompt script - when included in a html file and called from a form text field, will set the value of this field to the prompt- * if the text value is empty.- *- * Typical usage:- * <script type="text/javascript" language="JavaScript" src="getBlank.js"></script>- * <input type="text" id="query" value="Search the site:" onFocus="getBlank (this, 'Search the site:');" onBlur="getBlank (this, 'Search the site:');"/>- */-<!---function getBlank (form, stdValue){-if (form.value == stdValue){- form.value = '';- }-return true;-}-function getPrompt (form, stdValue){-if (form.value == ''){- form.value = stdValue;- }-return true;-}-//-->diff --git a/lucene/site/src/documentation/skins/common/scripts/getMenu.js b/lucene/site/src/documentation/skins/common/scripts/getMenu.jsdeleted file mode 100644index b17aad61858..00000000000--- a/lucene/site/src/documentation/skins/common/scripts/getMenu.js+++ /dev/null@@ -1,45 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-/**- * This script, when included in a html file, can be used to make collapsible menus- *- * Typical usage:- * <script type="text/javascript" language="JavaScript" src="menu.js"></script>- */--if (document.getElementById){- document.write('<style type="text/css">.menuitemgroup{display: none;}</style>')-}---function SwitchMenu(obj, thePath)-{-var open = 'url("'+thePath + 'images/chapter_open.gif")';-var close = 'url("'+thePath + 'images/chapter.gif")';- if(document.getElementById) {- var el = document.getElementById(obj);- var title = document.getElementById(obj+'Title');-- if(el.style.display != "block"){- title.style.backgroundImage = open;- el.style.display = "block";- }else{- title.style.backgroundImage = close;- el.style.display = "none";- }- }// end - if(document.getElementById)-}//end - function SwitchMenu(obj)diff --git a/lucene/site/src/documentation/skins/common/scripts/menu.js b/lucene/site/src/documentation/skins/common/scripts/menu.jsdeleted file mode 100644index 06ea471dc57..00000000000--- a/lucene/site/src/documentation/skins/common/scripts/menu.js+++ /dev/null@@ -1,48 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-/**- * This script, when included in a html file, can be used to make collapsible menus- *- * Typical usage:- * <script type="text/javascript" language="JavaScript" src="menu.js"></script>- */--if (document.getElementById){- document.write('<style type="text/css">.menuitemgroup{display: none;}</style>')-}--function SwitchMenu(obj)-{- if(document.getElementById) {- var el = document.getElementById(obj);- var title = document.getElementById(obj+'Title');-- if(obj.indexOf("_selected_")==0&&el.style.display == ""){- el.style.display = "block";- title.className = "pagegroupselected";- }-- if(el.style.display != "block"){- el.style.display = "block";- title.className = "pagegroupopen";- }- else{- el.style.display = "none";- title.className = "pagegroup";- }- }// end - if(document.getElementById)-}//end - function SwitchMenu(obj)diff --git a/lucene/site/src/documentation/skins/common/scripts/prototype.js b/lucene/site/src/documentation/skins/common/scripts/prototype.jsdeleted file mode 100644index ed7d920cb5f..00000000000--- a/lucene/site/src/documentation/skins/common/scripts/prototype.js+++ /dev/null@@ -1,1257 +0,0 @@-/* Prototype JavaScript framework, version 1.4.0_pre4- * (c) 2005 Sam Stephenson <[email protected]>- *- * THIS FILE IS AUTOMATICALLY GENERATED. When sending patches, please diff- * against the source tree, available from the Prototype darcs repository.- *- * Prototype is freely distributable under the terms of an MIT-style license.- *- * For details, see the Prototype web site: http://prototype.conio.net/- *-/*--------------------------------------------------------------------------*/--var Prototype = {- Version: '1.4.0_pre4',-- emptyFunction: function() {},- K: function(x) {return x}-}--var Class = {- create: function() {- return function() {- this.initialize.apply(this, arguments);- }- }-}--var Abstract = new Object();--Object.extend = function(destination, source) {- for (property in source) {- destination[property] = source[property];- }- return destination;-}--Function.prototype.bind = function(object) {- var __method = this;- return function() {- return __method.apply(object, arguments);- }-}--Function.prototype.bindAsEventListener = function(object) {- var __method = this;- return function(event) {- return __method.call(object, event || window.event);- }-}--Number.prototype.toColorPart = function() {- var digits = this.toString(16);- if (this < 16) return '0' + digits;- return digits;-}--var Try = {- these: function() {- var returnValue;-- for (var i = 0; i < arguments.length; i++) {- var lambda = arguments[i];- try {- returnValue = lambda();- break;- } catch (e) {}- }-- return returnValue;- }-}--/*--------------------------------------------------------------------------*/--var PeriodicalExecuter = Class.create();-PeriodicalExecuter.prototype = {- initialize: function(callback, frequency) {- this.callback = callback;- this.frequency = frequency;- this.currentlyExecuting = false;-- this.registerCallback();- },-- registerCallback: function() {- setInterval(this.onTimerEvent.bind(this), this.frequency * 1000);- },-- onTimerEvent: function() {- if (!this.currentlyExecuting) {- try {- this.currentlyExecuting = true;- this.callback();- } finally {- this.currentlyExecuting = false;- }- }- }-}--/*--------------------------------------------------------------------------*/--function $() {- var elements = new Array();-- for (var i = 0; i < arguments.length; i++) {- var element = arguments[i];- if (typeof element == 'string')- element = document.getElementById(element);-- if (arguments.length == 1)- return element;-- elements.push(element);- }-- return elements;-}--if (!Array.prototype.push) {- Array.prototype.push = function() {- var startLength = this.length;- for (var i = 0; i < arguments.length; i++)- this[startLength + i] = arguments[i];- return this.length;- }-}--if (!Function.prototype.apply) {- // Based on code from http://www.youngpup.net/- Function.prototype.apply = function(object, parameters) {- var parameterStrings = new Array();- if (!object) object = window;- if (!parameters) parameters = new Array();-- for (var i = 0; i < parameters.length; i++)- parameterStrings[i] = 'parameters[' + i + ']';-- object.__apply__ = this;- var result = eval('object.__apply__(' +- parameterStrings.join(', ') + ')');- object.__apply__ = null;-- return result;- }-}--Object.extend(String.prototype, {- stripTags: function() {- return this.replace(/<\/?[^>]+>/gi, '');- },-- escapeHTML: function() {- var div = document.createElement('div');- var text = document.createTextNode(this);- div.appendChild(text);- return div.innerHTML;- },-- unescapeHTML: function() {- var div = document.createElement('div');- div.innerHTML = this.stripTags();- return div.childNodes[0].nodeValue;- },-- parseQuery: function() {- var str = this;- if (str.substring(0,1) == '?') {- str = this.substring(1);- }- var result = {};- var pairs = str.split('&');- for (var i = 0; i < pairs.length; i++) {- var pair = pairs[i].split('=');- result[pair[0]] = pair[1];- }- return result;- }-});---var _break = new Object();-var _continue = new Object();--var Enumerable = {- each: function(iterator) {- var index = 0;- try {- this._each(function(value) {- try {- iterator(value, index++);- } catch (e) {- if (e != _continue) throw e;- }- });- } catch (e) {- if (e != _break) throw e;- }- },-- all: function(iterator) {- var result = true;- this.each(function(value, index) {- if (!(result &= (iterator || Prototype.K)(value, index)))- throw _break;- });- return result;- },-- any: function(iterator) {- var result = true;- this.each(function(value, index) {- if (result &= (iterator || Prototype.K)(value, index))- throw _break;- });- return result;- },-- collect: function(iterator) {- var results = [];- this.each(function(value, index) {- results.push(iterator(value, index));- });- return results;- },-- detect: function (iterator) {- var result;- this.each(function(value, index) {- if (iterator(value, index)) {- result = value;- throw _break;- }- });- return result;- },-- findAll: function(iterator) {- var results = [];- this.each(function(value, index) {- if (iterator(value, index))- results.push(value);- });- return results;- },-- grep: function(pattern, iterator) {- var results = [];- this.each(function(value, index) {- var stringValue = value.toString();- if (stringValue.match(pattern))- results.push((iterator || Prototype.K)(value, index));- })- return results;- },-- include: function(object) {- var found = false;- this.each(function(value) {- if (value == object) {- found = true;- throw _break;- }- });- return found;- },-- inject: function(memo, iterator) {- this.each(function(value, index) {- memo = iterator(memo, value, index);- });- return memo;- },-- invoke: function(method) {- var args = $A(arguments).slice(1);- return this.collect(function(value) {- return value[method].apply(value, args);- });- },-- max: function(iterator) {- var result;- this.each(function(value, index) {- value = (iterator || Prototype.K)(value, index);- if (value >= (result || value))- result = value;- });- return result;- },-- min: function(iterator) {- var result;- this.each(function(value, index) {- value = (iterator || Prototype.K)(value, index);- if (value <= (result || value))- result = value;- });- return result;- },-- partition: function(iterator) {- var trues = [], falses = [];- this.each(function(value, index) {- ((iterator || Prototype.K)(value, index) ?- trues : falses).push(value);- });- return [trues, falses];- },-- pluck: function(property) {- var results = [];- this.each(function(value, index) {- results.push(value[property]);- });- return results;- },-- reject: function(iterator) {- var results = [];- this.each(function(value, index) {- if (!iterator(value, index))- results.push(value);- });- return results;- },-- sortBy: function(iterator) {- return this.collect(function(value, index) {- return {value: value, criteria: iterator(value, index)};- }).sort(function(left, right) {- var a = left.criteria, b = right.criteria;- return a < b ? -1 : a > b ? 1 : 0;- }).pluck('value');- },-- toArray: function() {- return this.collect(Prototype.K);- },-- zip: function() {- var iterator = Prototype.K, args = $A(arguments);- if (typeof args.last() == 'function')- iterator = args.pop();-- var collections = [this].concat(args).map($A);- return this.map(function(value, index) {- iterator(value = collections.pluck(index));- return value;- });- }-}--Object.extend(Enumerable, {- map: Enumerable.collect,- find: Enumerable.detect,- select: Enumerable.findAll,- member: Enumerable.include,- entries: Enumerable.toArray-});--$A = Array.from = function(iterable) {- var results = [];- for (var i = 0; i < iterable.length; i++)- results.push(iterable[i]);- return results;-}--Object.extend(Array.prototype, {- _each: function(iterator) {- for (var i = 0; i < this.length; i++)- iterator(this[i]);- },-- first: function() {- return this[0];- },-- last: function() {- return this[this.length - 1];- }-});--Object.extend(Array.prototype, Enumerable);---var Ajax = {- getTransport: function() {- return Try.these(- function() {return new ActiveXObject('Msxml2.XMLHTTP')},- function() {return new ActiveXObject('Microsoft.XMLHTTP')},- function() {return new XMLHttpRequest()}- ) || false;- }-}--Ajax.Base = function() {};-Ajax.Base.prototype = {- setOptions: function(options) {- this.options = {- method: 'post',- asynchronous: true,- parameters: ''- }- Object.extend(this.options, options || {});- },-- responseIsSuccess: function() {- return this.transport.status == undefined- || this.transport.status == 0- || (this.transport.status >= 200 && this.transport.status < 300);- },-- responseIsFailure: function() {- return !this.responseIsSuccess();- }-}--Ajax.Request = Class.create();-Ajax.Request.Events =- ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete'];--Ajax.Request.prototype = Object.extend(new Ajax.Base(), {- initialize: function(url, options) {- this.transport = Ajax.getTransport();- this.setOptions(options);- this.request(url);- },-- request: function(url) {- var parameters = this.options.parameters || '';- if (parameters.length > 0) parameters += '&_=';-- try {- if (this.options.method == 'get')- url += '?' + parameters;-- this.transport.open(this.options.method, url,- this.options.asynchronous);-- if (this.options.asynchronous) {- this.transport.onreadystatechange = this.onStateChange.bind(this);- setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);- }-- this.setRequestHeaders();-- var body = this.options.postBody ? this.options.postBody : parameters;- this.transport.send(this.options.method == 'post' ? body : null);-- } catch (e) {- }- },-- setRequestHeaders: function() {- var requestHeaders =- ['X-Requested-With', 'XMLHttpRequest',- 'X-Prototype-Version', Prototype.Version];-- if (this.options.method == 'post') {- requestHeaders.push('Content-type',- 'application/x-www-form-urlencoded');-- /* Force "Connection: close" for Mozilla browsers to work around- * a bug where XMLHttpReqeuest sends an incorrect Content-length- * header. See Mozilla Bugzilla #246651.- */- if (this.transport.overrideMimeType)- requestHeaders.push('Connection', 'close');- }-- if (this.options.requestHeaders)- requestHeaders.push.apply(requestHeaders, this.options.requestHeaders);-- for (var i = 0; i < requestHeaders.length; i += 2)- this.transport.setRequestHeader(requestHeaders[i], requestHeaders[i+1]);- },-- onStateChange: function() {- var readyState = this.transport.readyState;- if (readyState != 1)- this.respondToReadyState(this.transport.readyState);- },-- respondToReadyState: function(readyState) {- var event = Ajax.Request.Events[readyState];-- if (event == 'Complete')- (this.options['on' + this.transport.status]- || this.options['on' + (this.responseIsSuccess() ? 'Success' : 'Failure')]- || Prototype.emptyFunction)(this.transport);-- (this.options['on' + event] || Prototype.emptyFunction)(this.transport);-- /* Avoid memory leak in MSIE: clean up the oncomplete event handler */- if (event == 'Complete')- this.transport.onreadystatechange = Prototype.emptyFunction;- }-});--Ajax.Updater = Class.create();-Ajax.Updater.ScriptFragment = '(?:<script.*?>)((\n|.)*?)(?:<\/script>)';--Object.extend(Object.extend(Ajax.Updater.prototype, Ajax.Request.prototype), {- initialize: function(container, url, options) {- this.containers = {- success: container.success ? $(container.success) : $(container),- failure: container.failure ? $(container.failure) :- (container.success ? null : $(container))- }-- this.transport = Ajax.getTransport();- this.setOptions(options);-- var onComplete = this.options.onComplete || Prototype.emptyFunction;- this.options.onComplete = (function() {- this.updateContent();- onComplete(this.transport);- }).bind(this);-- this.request(url);- },-- updateContent: function() {- var receiver = this.responseIsSuccess() ?- this.containers.success : this.containers.failure;-- var match = new RegExp(Ajax.Updater.ScriptFragment, 'img');- var response = this.transport.responseText.replace(match, '');- var scripts = this.transport.responseText.match(match);-- if (receiver) {- if (this.options.insertion) {- new this.options.insertion(receiver, response);- } else {- receiver.innerHTML = response;- }- }-- if (this.responseIsSuccess()) {- if (this.onComplete)- setTimeout((function() {this.onComplete(- this.transport)}).bind(this), 10);- }-- if (this.options.evalScripts && scripts) {- match = new RegExp(Ajax.Updater.ScriptFragment, 'im');- setTimeout((function() {- for (var i = 0; i < scripts.length; i++)- eval(scripts[i].match(match)[1]);- }).bind(this), 10);- }- }-});--Ajax.PeriodicalUpdater = Class.create();-Ajax.PeriodicalUpdater.prototype = Object.extend(new Ajax.Base(), {- initialize: function(container, url, options) {- this.setOptions(options);- this.onComplete = this.options.onComplete;-- this.frequency = (this.options.frequency || 2);- this.decay = 1;-- this.updater = {};- this.container = container;- this.url = url;-- this.start();- },-- start: function() {- this.options.onComplete = this.updateComplete.bind(this);- this.onTimerEvent();- },-- stop: function() {- this.updater.onComplete = undefined;- clearTimeout(this.timer);- (this.onComplete || Ajax.emptyFunction).apply(this, arguments);- },-- updateComplete: function(request) {- if (this.options.decay) {- this.decay = (request.responseText == this.lastText ?- this.decay * this.options.decay : 1);-- this.lastText = request.responseText;- }- this.timer = setTimeout(this.onTimerEvent.bind(this),- this.decay * this.frequency * 1000);- },-- onTimerEvent: function() {- this.updater = new Ajax.Updater(this.container, this.url, this.options);- }-});--document.getElementsByClassName = function(className) {- var children = document.getElementsByTagName('*') || document.all;- var elements = new Array();-- for (var i = 0; i < children.length; i++) {- var child = children[i];- var classNames = child.className.split(' ');- for (var j = 0; j < classNames.length; j++) {- if (classNames[j] == className) {- elements.push(child);- break;- }- }- }-- return elements;-}--/*--------------------------------------------------------------------------*/--if (!window.Element) {- var Element = new Object();-}--Object.extend(Element, {- toggle: function() {- for (var i = 0; i < arguments.length; i++) {- var element = $(arguments[i]);- element.style.display =- (element.style.display == 'none' ? '' : 'none');- }- },-- hide: function() {- for (var i = 0; i < arguments.length; i++) {- var element = $(arguments[i]);- element.style.display = 'none';- }- },-- show: function() {- for (var i = 0; i < arguments.length; i++) {- var element = $(arguments[i]);- element.style.display = '';- }- },-- remove: function(element) {- element = $(element);- element.parentNode.removeChild(element);- },-- getHeight: function(element) {- element = $(element);- return element.offsetHeight;- },-- hasClassName: function(element, className) {- element = $(element);- if (!element)- return;- var a = element.className.split(' ');- for (var i = 0; i < a.length; i++) {- if (a[i] == className)- return true;- }- return false;- },-- addClassName: function(element, className) {- element = $(element);- Element.removeClassName(element, className);- element.className += ' ' + className;- },-- removeClassName: function(element, className) {- element = $(element);- if (!element)- return;- var newClassName = '';- var a = element.className.split(' ');- for (var i = 0; i < a.length; i++) {- if (a[i] != className) {- if (i > 0)- newClassName += ' ';- newClassName += a[i];- }- }- element.className = newClassName;- },-- // removes whitespace-only text node children- cleanWhitespace: function(element) {- var element = $(element);- for (var i = 0; i < element.childNodes.length; i++) {- var node = element.childNodes[i];- if (node.nodeType == 3 && !/\S/.test(node.nodeValue))- Element.remove(node);- }- }-});--var Toggle = new Object();-Toggle.display = Element.toggle;--/*--------------------------------------------------------------------------*/--Abstract.Insertion = function(adjacency) {- this.adjacency = adjacency;-}--Abstract.Insertion.prototype = {- initialize: function(element, content) {- this.element = $(element);- this.content = content;-- if (this.adjacency && this.element.insertAdjacentHTML) {- this.element.insertAdjacentHTML(this.adjacency, this.content);- } else {- this.range = this.element.ownerDocument.createRange();- if (this.initializeRange) this.initializeRange();- this.fragment = this.range.createContextualFragment(this.content);- this.insertContent();- }- }-}--var Insertion = new Object();--Insertion.Before = Class.create();-Insertion.Before.prototype = Object.extend(new Abstract.Insertion('beforeBegin'), {- initializeRange: function() {- this.range.setStartBefore(this.element);- },-- insertContent: function() {- this.element.parentNode.insertBefore(this.fragment, this.element);- }-});--Insertion.Top = Class.create();-Insertion.Top.prototype = Object.extend(new Abstract.Insertion('afterBegin'), {- initializeRange: function() {- this.range.selectNodeContents(this.element);- this.range.collapse(true);- },-- insertContent: function() {- this.element.insertBefore(this.fragment, this.element.firstChild);- }-});--Insertion.Bottom = Class.create();-Insertion.Bottom.prototype = Object.extend(new Abstract.Insertion('beforeEnd'), {- initializeRange: function() {- this.range.selectNodeContents(this.element);- this.range.collapse(this.element);- },-- insertContent: function() {- this.element.appendChild(this.fragment);- }-});--Insertion.After = Class.create();-Insertion.After.prototype = Object.extend(new Abstract.Insertion('afterEnd'), {- initializeRange: function() {- this.range.setStartAfter(this.element);- },-- insertContent: function() {- this.element.parentNode.insertBefore(this.fragment,- this.element.nextSibling);- }-});--var Field = {- clear: function() {- for (var i = 0; i < arguments.length; i++)- $(arguments[i]).value = '';- },-- focus: function(element) {- $(element).focus();- },-- present: function() {- for (var i = 0; i < arguments.length; i++)- if ($(arguments[i]).value == '') return false;- return true;- },-- select: function(element) {- $(element).select();- },-- activate: function(element) {- $(element).focus();- $(element).select();- }-}--/*--------------------------------------------------------------------------*/--var Form = {- serialize: function(form) {- var elements = Form.getElements($(form));- var queryComponents = new Array();-- for (var i = 0; i < elements.length; i++) {- var queryComponent = Form.Element.serialize(elements[i]);- if (queryComponent)- queryComponents.push(queryComponent);- }-- return queryComponents.join('&');- },-- getElements: function(form) {- var form = $(form);- var elements = new Array();-- for (tagName in Form.Element.Serializers) {- var tagElements = form.getElementsByTagName(tagName);- for (var j = 0; j < tagElements.length; j++)- elements.push(tagElements[j]);- }- return elements;- },-- getInputs: function(form, typeName, name) {- var form = $(form);- var inputs = form.getElementsByTagName('input');-- if (!typeName && !name)- return inputs;-- var matchingInputs = new Array();- for (var i = 0; i < inputs.length; i++) {- var input = inputs[i];- if ((typeName && input.type != typeName) ||- (name && input.name != name))- continue;- matchingInputs.push(input);- }-- return matchingInputs;- },-- disable: function(form) {- var elements = Form.getElements(form);- for (var i = 0; i < elements.length; i++) {- var element = elements[i];- element.blur();- element.disabled = 'true';- }- },-- enable: function(form) {- var elements = Form.getElements(form);- for (var i = 0; i < elements.length; i++) {- var element = elements[i];- element.disabled = '';- }- },-- focusFirstElement: function(form) {- var form = $(form);- var elements = Form.getElements(form);- for (var i = 0; i < elements.length; i++) {- var element = elements[i];- if (element.type != 'hidden' && !element.disabled) {- Field.activate(element);- break;- }- }- },-- reset: function(form) {- $(form).reset();- }-}--Form.Element = {- serialize: function(element) {- var element = $(element);- var method = element.tagName.toLowerCase();- var parameter = Form.Element.Serializers[method](element);-- if (parameter)- return encodeURIComponent(parameter[0]) + '=' +- encodeURIComponent(parameter[1]);- },-- getValue: function(element) {- var element = $(element);- var method = element.tagName.toLowerCase();- var parameter = Form.Element.Serializers[method](element);-- if (parameter)- return parameter[1];- }-}--Form.Element.Serializers = {- input: function(element) {- switch (element.type.toLowerCase()) {- case 'submit':- case 'hidden':- case 'password':- case 'text':- return Form.Element.Serializers.textarea(element);- case 'checkbox':- case 'radio':- return Form.Element.Serializers.inputSelector(element);- }- return false;- },-- inputSelector: function(element) {- if (element.checked)- return [element.name, element.value];- },-- textarea: function(element) {- return [element.name, element.value];- },-- select: function(element) {- var value = '';- if (element.type == 'select-one') {- var index = element.selectedIndex;- if (index >= 0)- value = element.options[index].value || element.options[index].text;- } else {- value = new Array();- for (var i = 0; i < element.length; i++) {- var opt = element.options[i];- if (opt.selected)- value.push(opt.value || opt.text);- }- }- return [element.name, value];- }-}--/*--------------------------------------------------------------------------*/--var $F = Form.Element.getValue;--/*--------------------------------------------------------------------------*/--Abstract.TimedObserver = function() {}-Abstract.TimedObserver.prototype = {- initialize: function(element, frequency, callback) {- this.frequency = frequency;- this.element = $(element);- this.callback = callback;-- this.lastValue = this.getValue();- this.registerCallback();- },-- registerCallback: function() {- setInterval(this.onTimerEvent.bind(this), this.frequency * 1000);- },-- onTimerEvent: function() {- var value = this.getValue();- if (this.lastValue != value) {- this.callback(this.element, value);- this.lastValue = value;- }- }-}--Form.Element.Observer = Class.create();-Form.Element.Observer.prototype = Object.extend(new Abstract.TimedObserver(), {- getValue: function() {- return Form.Element.getValue(this.element);- }-});--Form.Observer = Class.create();-Form.Observer.prototype = Object.extend(new Abstract.TimedObserver(), {- getValue: function() {- return Form.serialize(this.element);- }-});--/*--------------------------------------------------------------------------*/--Abstract.EventObserver = function() {}-Abstract.EventObserver.prototype = {- initialize: function(element, callback) {- this.element = $(element);- this.callback = callback;-- this.lastValue = this.getValue();- if (this.element.tagName.toLowerCase() == 'form')- this.registerFormCallbacks();- else- this.registerCallback(this.element);- },-- onElementEvent: function() {- var value = this.getValue();- if (this.lastValue != value) {- this.callback(this.element, value);- this.lastValue = value;- }- },-- registerFormCallbacks: function() {- var elements = Form.getElements(this.element);- for (var i = 0; i < elements.length; i++)- this.registerCallback(elements[i]);- },-- registerCallback: function(element) {- if (element.type) {- switch (element.type.toLowerCase()) {- case 'checkbox':- case 'radio':- element.target = this;- element.prev_onclick = element.onclick || Prototype.emptyFunction;- element.onclick = function() {- this.prev_onclick();- this.target.onElementEvent();- }- break;- case 'password':- case 'text':- case 'textarea':- case 'select-one':- case 'select-multiple':- element.target = this;- element.prev_onchange = element.onchange || Prototype.emptyFunction;- element.onchange = function() {- this.prev_onchange();- this.target.onElementEvent();- }- break;- }- }- }-}--Form.Element.EventObserver = Class.create();-Form.Element.EventObserver.prototype = Object.extend(new Abstract.EventObserver(), {- getValue: function() {- return Form.Element.getValue(this.element);- }-});--Form.EventObserver = Class.create();-Form.EventObserver.prototype = Object.extend(new Abstract.EventObserver(), {- getValue: function() {- return Form.serialize(this.element);- }-});---if (!window.Event) {- var Event = new Object();-}--Object.extend(Event, {- KEY_BACKSPACE: 8,- KEY_TAB: 9,- KEY_RETURN: 13,- KEY_ESC: 27,- KEY_LEFT: 37,- KEY_UP: 38,- KEY_RIGHT: 39,- KEY_DOWN: 40,- KEY_DELETE: 46,-- element: function(event) {- return event.target || event.srcElement;- },-- isLeftClick: function(event) {- return (((event.which) && (event.which == 1)) ||- ((event.button) && (event.button == 1)));- },-- pointerX: function(event) {- return event.pageX || (event.clientX +- (document.documentElement.scrollLeft || document.body.scrollLeft));- },-- pointerY: function(event) {- return event.pageY || (event.clientY +- (document.documentElement.scrollTop || document.body.scrollTop));- },-- stop: function(event) {- if (event.preventDefault) {- event.preventDefault();- event.stopPropagation();- } else {- event.returnValue = false;- }- },-- // find the first node with the given tagName, starting from the- // node the event was triggered on; traverses the DOM upwards- findElement: function(event, tagName) {- var element = Event.element(event);- while (element.parentNode && (!element.tagName ||- (element.tagName.toUpperCase() != tagName.toUpperCase())))- element = element.parentNode;- return element;- },-- observers: false,-- _observeAndCache: function(element, name, observer, useCapture) {- if (!this.observers) this.observers = [];- if (element.addEventListener) {- this.observers.push([element, name, observer, useCapture]);- element.addEventListener(name, observer, useCapture);- } else if (element.attachEvent) {- this.observers.push([element, name, observer, useCapture]);- element.attachEvent('on' + name, observer);- }- },-- unloadCache: function() {- if (!Event.observers) return;- for (var i = 0; i < Event.observers.length; i++) {- Event.stopObserving.apply(this, Event.observers[i]);- Event.observers[i][0] = null;- }- Event.observers = false;- },-- observe: function(element, name, observer, useCapture) {- var element = $(element);- useCapture = useCapture || false;-- if (name == 'keypress' &&- ((/Konqueror|Safari|KHTML/.test(navigator.userAgent))- || element.attachEvent))- name = 'keydown';-- this._observeAndCache(element, name, observer, useCapture);- },-- stopObserving: function(element, name, observer, useCapture) {- var element = $(element);- useCapture = useCapture || false;-- if (name == 'keypress' &&- ((/Konqueror|Safari|KHTML/.test(navigator.userAgent))- || element.detachEvent))- name = 'keydown';-- if (element.removeEventListener) {- element.removeEventListener(name, observer, useCapture);- } else if (element.detachEvent) {- element.detachEvent('on' + name, observer);- }- }-});--/* prevent memory leaks in IE */-Event.observe(window, 'unload', Event.unloadCache, false);--var Position = {-- // set to true if needed, warning: firefox performance problems- // NOT neeeded for page scrolling, only if draggable contained in- // scrollable elements- includeScrollOffsets: false,-- // must be called before calling withinIncludingScrolloffset, every time the- // page is scrolled- prepare: function() {- this.deltaX = window.pageXOffset- || document.documentElement.scrollLeft- || document.body.scrollLeft- || 0;- this.deltaY = window.pageYOffset- || document.documentElement.scrollTop- || document.body.scrollTop- || 0;- },-- realOffset: function(element) {- var valueT = 0, valueL = 0;- do {- valueT += element.scrollTop || 0;- valueL += element.scrollLeft || 0;- element = element.parentNode;- } while (element);- return [valueL, valueT];- },-- cumulativeOffset: function(element) {- var valueT = 0, valueL = 0;- do {- valueT += element.offsetTop || 0;- valueL += element.offsetLeft || 0;- element = element.offsetParent;- } while (element);- return [valueL, valueT];- },-- // caches x/y coordinate pair to use with overlap- within: function(element, x, y) {- if (this.includeScrollOffsets)- return this.withinIncludingScrolloffsets(element, x, y);- this.xcomp = x;- this.ycomp = y;- this.offset = this.cumulativeOffset(element);-- return (y >= this.offset[1] &&- y < this.offset[1] + element.offsetHeight &&- x >= this.offset[0] &&- x < this.offset[0] + element.offsetWidth);- },-- withinIncludingScrolloffsets: function(element, x, y) {- var offsetcache = this.realOffset(element);-- this.xcomp = x + offsetcache[0] - this.deltaX;- this.ycomp = y + offsetcache[1] - this.deltaY;- this.offset = this.cumulativeOffset(element);-- return (this.ycomp >= this.offset[1] &&- this.ycomp < this.offset[1] + element.offsetHeight &&- this.xcomp >= this.offset[0] &&- this.xcomp < this.offset[0] + element.offsetWidth);- },-- // within must be called directly before- overlap: function(mode, element) {- if (!mode) return 0;- if (mode == 'vertical')- return ((this.offset[1] + element.offsetHeight) - this.ycomp) /- element.offsetHeight;- if (mode == 'horizontal')- return ((this.offset[0] + element.offsetWidth) - this.xcomp) /- element.offsetWidth;- },-- clone: function(source, target) {- source = $(source);- target = $(target);- target.style.position = 'absolute';- var offsets = this.cumulativeOffset(source);- target.style.top = offsets[1] + 'px';- target.style.left = offsets[0] + 'px';- target.style.width = source.offsetWidth + 'px';- target.style.height = source.offsetHeight + 'px';- }-}diff --git a/lucene/site/src/documentation/skins/common/skinconf.xsl b/lucene/site/src/documentation/skins/common/skinconf.xsldeleted file mode 100644index 5d1132086f1..00000000000--- a/lucene/site/src/documentation/skins/common/skinconf.xsl+++ /dev/null@@ -1,238 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:template match="skinconfig">- <xsl:copy>- <xsl:if test="not(disable-print-link)">- <disable-print-link>true</disable-print-link>- </xsl:if>- <xsl:if test="not(disable-pdf-link)">- <disable-pdf-link>true</disable-pdf-link>- </xsl:if>- <xsl:if test="not(disable-txt-link)">- <disable-txt-link>true</disable-txt-link>- </xsl:if>- <xsl:if test="not(disable-pod-link)">- <disable-pod-link>true</disable-pod-link>- </xsl:if>- <xsl:if test="not(disable-xml-link)">- <disable-xml-link>true</disable-xml-link>- </xsl:if>- <xsl:if test="not(disable-external-link-image)">- <disable-external-link-image>false</disable-external-link-image>- </xsl:if>- <xsl:if test="not(disable-compliance-links)">- <disable-compliance-links>false</disable-compliance-links>- </xsl:if>- <xsl:if test="not(obfuscate-mail-links)">- <obfuscate-mail-links>true</obfuscate-mail-links>- </xsl:if>- <xsl:if test="not(obfuscate-mail-value)">- <obfuscate-mail-value>.at.</obfuscate-mail-value>- </xsl:if>- <xsl:if test="not(disable-font-script)">- <disable-font-script>true</disable-font-script>- </xsl:if>-<!--- <xsl:if test="not(project-name)">- <project-name>MyProject</project-name>- </xsl:if>- <xsl:if test="not(project-description)">- <project-description>MyProject Description</project-description>- </xsl:if>- <xsl:if test="not(project-url)">- <project-url>http://myproj.mygroup.org/</project-url>- </xsl:if>- <xsl:if test="not(project-logo)">- <project-logo>images/project.png</project-logo>- </xsl:if>- <xsl:if test="not(group-name)">- <group-name>MyGroup</group-name>- </xsl:if>- <xsl:if test="not(group-description)">- <group-description>MyGroup Description</group-description>- </xsl:if>- <xsl:if test="not(group-url)">- <group-url>http://mygroup.org</group-url>- </xsl:if>- <xsl:if test="not(group-logo)">- <group-logo>images/group.png</group-logo>- </xsl:if>- <xsl:if test="not(host-url)">- <host-url/>- </xsl:if>- <xsl:if test="not(host-logo)">- <host-logo/>- </xsl:if>- <xsl:if test="not(year)">- <year>2006</year>- </xsl:if>- <xsl:if test="not(vendor)">- <vendor>The Acme Software Foundation.</vendor>- </xsl:if>- -->- <xsl:if test="not(trail)">- <trail>- <link1 name="" href=""/>- <link2 name="" href=""/>- <link3 name="" href=""/>- </trail>- </xsl:if>- <xsl:if test="not(toc)">- <toc level="2" location="page"/>- </xsl:if>- <xsl:if test="not(pdf/page-numbering-format)">- <pdf>- <page-numbering-format>Page 1</page-numbering-format>- </pdf>- </xsl:if>- <xsl:if test="not(pdf/show-external-urls)">- <pdf>- <show-external-urls>true</show-external-urls>- </pdf>- </xsl:if>-<!--- <xsl:if test="not(colors)">- <colors>- <color name="header" value="#294563"/>-- <color name="tab-selected" value="#4a6d8c"/>- <color name="tab-unselected" value="#b5c7e7"/>- <color name="subtab-selected" value="#4a6d8c"/>- <color name="subtab-unselected" value="#4a6d8c"/>-- <color name="heading" value="#294563"/>- <color name="subheading" value="#4a6d8c"/>-- <color name="navstrip" value="#cedfef"/>- <color name="toolbox" value="#294563"/>-- <color name="menu" value="#4a6d8c"/>- <color name="dialog" value="#4a6d8c"/>-- <color name="body" value="#ffffff"/>-- <color name="table" value="#7099C5"/>- <color name="table-cell" value="#f0f0ff"/>- <color name="highlight" value="#ffff00"/>- <color name="fixme" value="#c60"/>- <color name="note" value="#069"/>-- <color name="warning" value="#900"/>- <color name="code" value="#CFDCED"/>-- <color name="footer" value="#cedfef"/>- </colors>- </xsl:if>--->- <xsl:if test="not(extra-css)">- <extra-css/>- </xsl:if>- <xsl:if test="not(credits)">- <credits>- <credit>- <name>Built with Apache Forrest</name>- <url>http://forrest.apache.org/</url>- <image>images/built-with-forrest-button.png</image>- <width>88</width>- <height>31</height>- </credit>-<!-- A credit with @role='pdf' will have its name and url displayed in the- PDF page's footer. -->- </credits>- </xsl:if>- <xsl:copy-of select="@*"/>- <xsl:copy-of select="node()"/>-<!--- <xsl:copy-of select="node()[not(name(.)='colors')]"/>- <xsl:apply-templates select="colors"/>-->- </xsl:copy>- </xsl:template>-<!--- <xsl:template match="colors">- <colors>- <xsl:if test="not(color[@name='header'])">- <color name="header" value="#294563"/>- </xsl:if>- <xsl:if test="not(color[@name='tab-selected'])">- <color name="tab-selected" value="#4a6d8c"/>- </xsl:if>- <xsl:if test="not(color[@name='tab-unselected'])">- <color name="tab-unselected" value="#b5c7e7"/>- </xsl:if>- <xsl:if test="not(color[@name='subtab-selected'])">- <color name="subtab-selected" value="#4a6d8c"/>- </xsl:if>- <xsl:if test="not(color[@name='subtab-unselected'])">- <color name="subtab-unselected" value="#4a6d8c"/>- </xsl:if>- <xsl:if test="not(color[@name='heading'])">- <color name="heading" value="#294563"/>- </xsl:if>- <xsl:if test="not(color[@name='subheading'])">- <color name="subheading" value="#4a6d8c"/>- </xsl:if>- <xsl:if test="not(color[@name='navstrip'])">- <color name="navstrip" value="#cedfef"/>- </xsl:if>- <xsl:if test="not(color[@name='toolbox'])">- <color name="toolbox" value="#294563"/>- </xsl:if>- <xsl:if test="not(color[@name='menu'])">- <color name="menu" value="#4a6d8c"/>- </xsl:if>- <xsl:if test="not(color[@name='dialog'])">- <color name="dialog" value="#4a6d8c"/>- </xsl:if>- <xsl:if test="not(color[@name='body'])">- <color name="body" value="#ffffff"/>- </xsl:if>- <xsl:if test="not(color[@name='table'])">- <color name="table" value="#7099C5"/>- </xsl:if>- <xsl:if test="not(color[@name='table-cell'])">- <color name="table-cell" value="#f0f0ff"/>- </xsl:if>- <xsl:if test="not(color[@name='highlight'])">- <color name="highlight" value="#yellow"/>- </xsl:if>- <xsl:if test="not(color[@name='fixme'])">- <color name="fixme" value="#c60"/>- </xsl:if>- <xsl:if test="not(color[@name='note'])">- <color name="note" value="#069"/>- </xsl:if>- <xsl:if test="not(color[@name='warning'])">- <color name="warning" value="#900"/>- </xsl:if>- <xsl:if test="not(color[@name='code'])">- <color name="code" value="#CFDCED"/>- </xsl:if>- <xsl:if test="not(color[@name='footer'])">- <color name="footer" value="#cedfef"/>- </xsl:if>-- <xsl:copy>- <xsl:copy-of select="@*"/>- <xsl:copy-of select="node()[name(.)='color']"/>- </xsl:copy>-- </colors>- </xsl:template>--->-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/translations/CommonMessages_de.xml b/lucene/site/src/documentation/skins/common/translations/CommonMessages_de.xmldeleted file mode 100644index bc461196e64..00000000000--- a/lucene/site/src/documentation/skins/common/translations/CommonMessages_de.xml+++ /dev/null@@ -1,23 +0,0 @@-<?xml version="1.0" encoding="ISO-8859-1"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<catalogue>- <message key="Font size:">Schriftgr�sse:</message>- <message key="Last Published:">Zuletzt ver�ffentlicht:</message>- <message key="Search">Suche:</message>- <message key="Search the site with">Suche auf der Seite mit</message>-</catalogue>diff --git a/lucene/site/src/documentation/skins/common/translations/CommonMessages_en_US.xml b/lucene/site/src/documentation/skins/common/translations/CommonMessages_en_US.xmldeleted file mode 100644index 88dfe143118..00000000000--- a/lucene/site/src/documentation/skins/common/translations/CommonMessages_en_US.xml+++ /dev/null@@ -1,23 +0,0 @@-<?xml version="1.0" encoding="ISO-8859-1"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<catalogue>- <message key="Font size:">Font size:</message>- <message key="Last Published:">Last Published:</message>- <message key="Search">Search</message>- <message key="Search the site with">Search site with</message>-</catalogue>diff --git a/lucene/site/src/documentation/skins/common/translations/CommonMessages_es.xml b/lucene/site/src/documentation/skins/common/translations/CommonMessages_es.xmldeleted file mode 100644index 63be6712b30..00000000000--- a/lucene/site/src/documentation/skins/common/translations/CommonMessages_es.xml+++ /dev/null@@ -1,23 +0,0 @@-<?xml version="1.0" encoding="ISO-8859-1"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<catalogue>- <message key="Font size:">Tama�o del texto:</message>- <message key="Last Published:">Fecha de publicaci�n:</message>- <message key="Search">Buscar</message>- <message key="Search the site with">Buscar en</message>-</catalogue>diff --git a/lucene/site/src/documentation/skins/common/translations/CommonMessages_fr.xml b/lucene/site/src/documentation/skins/common/translations/CommonMessages_fr.xmldeleted file mode 100644index 622569a4ffa..00000000000--- a/lucene/site/src/documentation/skins/common/translations/CommonMessages_fr.xml+++ /dev/null@@ -1,23 +0,0 @@-<?xml version="1.0" encoding="ISO-8859-1"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<catalogue>- <message key="Font size:">Taille :</message>- <message key="Last Published:">Derni�re publication :</message>- <message key="Search">Rechercher</message>- <message key="Search the site with">Rechercher sur le site avec</message>-</catalogue>diff --git a/lucene/site/src/documentation/skins/common/xslt/fo/document-to-fo.xsl b/lucene/site/src/documentation/skins/common/xslt/fo/document-to-fo.xsldeleted file mode 100644index 6bae24b043f..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/fo/document-to-fo.xsl+++ /dev/null@@ -1,1014 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"- xmlns:fo="http://www.w3.org/1999/XSL/Format"- version="1.0">-<!-- left, justify, right -->- <xsl:variable name="text-align" select="string(//skinconfig/pdf/page/@text-align)"/>-<!-- print URL of external links -->- <xsl:variable name="show-external-urls" select="//skinconfig/pdf/show-external-urls"/>-<!-- Get the section depth to use when generating the minitoc (default is 2) -->- <xsl:variable name="toc-max-depth" select="number(//skinconfig/toc/@max-depth)"/>-<!-- The page size to be used -->- <xsl:variable name="pagesize"- select="string(//skinconfig/pdf/page/@size)"/>-<!-- The page orientation ("portrait" or "landscape") -->- <xsl:variable name="pageorientation"- select="string(//skinconfig/pdf/page/@orientation)"/>-<!-- Double-sided printing toggle -->- <xsl:variable name="doublesided"- select="string(//skinconfig/pdf/margins/@double-sided)"/>-<!-- The top page margin -->- <xsl:variable name="topmargin"- select="string(//skinconfig/pdf/margins/top)"/>-<!-- The bottom page margin -->- <xsl:variable name="bottommargin"- select="string(//skinconfig/pdf/margins/bottom)"/>-<!-- The inner page margin (always the left margin if- double-sided printing is off, alternating between left and right if- it's on) -->- <xsl:variable name="innermargin"- select="string(//skinconfig/pdf/margins/inner)"/>-<!-- The outer page margin (always the right margin if- double-sided printing is off, alternating between right and left if- it's on)-->- <xsl:variable name="outermargin"- select="string(//skinconfig/pdf/margins/outer)"/>- <xsl:param name="numbersections" select="'true'"/>-<!-- page breaks after TOC and each page if an aggregate document -->- <xsl:variable name="page-break-top-sections" select="'true'"/>-<!-- page numbering format -->- <xsl:variable name="page-numbering-format" select="string(//skinconfig/pdf/page-numbering-format)"/>-<!-- Section depth at which we stop numbering and just indent -->- <xsl:param name="numbering-max-depth" select="'3'"/>- <xsl:param name="imagesdir" select="."/>- <xsl:param name="xmlbasedir"/>- <xsl:include href="pdfoutline.xsl"/>- <xsl:include href="footerinfo.xsl"/>-<!-- Determine page height for various page sizes (US Letter portrait- is the default) -->-<!-- FIXME: JJP:would this be better of a file? -->- <xsl:variable name="pageheight">- <xsl:choose>- <xsl:when test="$pageorientation = 'landscape'">- <xsl:choose>- <xsl:when test="$pagesize = 'a0'">841mm</xsl:when>- <xsl:when test="$pagesize = 'a1'">594mm</xsl:when>- <xsl:when test="$pagesize = 'a2'">420mm</xsl:when>- <xsl:when test="$pagesize = 'a3'">297mm</xsl:when>- <xsl:when test="$pagesize = 'a4'">210mm</xsl:when>- <xsl:when test="$pagesize = 'a5'">148mm</xsl:when>- <xsl:when test="$pagesize = 'executive'">7.25in</xsl:when>- <xsl:when test="$pagesize = 'folio'">8.5in</xsl:when>- <xsl:when test="$pagesize = 'ledger'">11in</xsl:when>- <xsl:when test="$pagesize = 'legal'">8.5in</xsl:when>- <xsl:when test="$pagesize = 'letter'">8.5in</xsl:when>- <xsl:when test="$pagesize = 'quarto'">8.5in</xsl:when>- <xsl:when test="$pagesize = 'tabloid'">11in</xsl:when>- <xsl:otherwise>8.5in</xsl:otherwise>- </xsl:choose>- </xsl:when>- <xsl:otherwise>- <xsl:choose>- <xsl:when test="$pagesize = 'a0'">1189mm</xsl:when>- <xsl:when test="$pagesize = 'a1'">841mm</xsl:when>- <xsl:when test="$pagesize = 'a2'">594mm</xsl:when>- <xsl:when test="$pagesize = 'a3'">420mm</xsl:when>- <xsl:when test="$pagesize = 'a4'">297mm</xsl:when>- <xsl:when test="$pagesize = 'a5'">210mm</xsl:when>- <xsl:when test="$pagesize = 'executive'">10.5in</xsl:when>- <xsl:when test="$pagesize = 'folio'">13in</xsl:when>- <xsl:when test="$pagesize = 'ledger'">17in</xsl:when>- <xsl:when test="$pagesize = 'legal'">14in</xsl:when>- <xsl:when test="$pagesize = 'quarto'">10.83in</xsl:when>- <xsl:when test="$pagesize = 'tabloid'">17in</xsl:when>- <xsl:otherwise>11in</xsl:otherwise>- </xsl:choose>- </xsl:otherwise>- </xsl:choose>- </xsl:variable>-<!-- Determine page width for various page sizes (US Letter portrait- is the default) -->- <xsl:variable name="pagewidth">- <xsl:choose>- <xsl:when test="$pageorientation = 'landscape'">- <xsl:choose>- <xsl:when test="$pagesize = 'a0'">1189mm</xsl:when>- <xsl:when test="$pagesize = 'a1'">841mm</xsl:when>- <xsl:when test="$pagesize = 'a2'">594mm</xsl:when>- <xsl:when test="$pagesize = 'a3'">420mm</xsl:when>- <xsl:when test="$pagesize = 'a4'">297mm</xsl:when>- <xsl:when test="$pagesize = 'a5'">210mm</xsl:when>- <xsl:when test="$pagesize = 'executive'">10.5in</xsl:when>- <xsl:when test="$pagesize = 'folio'">13in</xsl:when>- <xsl:when test="$pagesize = 'ledger'">17in</xsl:when>- <xsl:when test="$pagesize = 'legal'">14in</xsl:when>- <xsl:when test="$pagesize = 'quarto'">10.83in</xsl:when>- <xsl:when test="$pagesize = 'tabloid'">17in</xsl:when>- <xsl:otherwise>11in</xsl:otherwise>- </xsl:choose>- </xsl:when>- <xsl:otherwise>- <xsl:choose>- <xsl:when test="$pagesize = 'a0'">841mm</xsl:when>- <xsl:when test="$pagesize = 'a1'">594mm</xsl:when>- <xsl:when test="$pagesize = 'a2'">420mm</xsl:when>- <xsl:when test="$pagesize = 'a3'">297mm</xsl:when>- <xsl:when test="$pagesize = 'a4'">210mm</xsl:when>- <xsl:when test="$pagesize = 'a5'">148mm</xsl:when>- <xsl:when test="$pagesize = 'executive'">7.25in</xsl:when>- <xsl:when test="$pagesize = 'folio'">8.5in</xsl:when>- <xsl:when test="$pagesize = 'ledger'">11in</xsl:when>- <xsl:when test="$pagesize = 'legal'">8.5in</xsl:when>- <xsl:when test="$pagesize = 'letter'">8.5in</xsl:when>- <xsl:when test="$pagesize = 'quarto'">8.5in</xsl:when>- <xsl:when test="$pagesize = 'tabloid'">11in</xsl:when>- <xsl:otherwise>8.5in</xsl:otherwise>- </xsl:choose>- </xsl:otherwise>- </xsl:choose>- </xsl:variable>- <xsl:template match="/">- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">- <fo:layout-master-set>- <fo:simple-page-master master-name="first-page"- page-height="{$pageheight}"- page-width="{$pagewidth}"- margin-top="{$topmargin}"- margin-bottom="{$bottommargin}"- margin-left="{$innermargin}"- margin-right="{$outermargin}">- <fo:region-body- margin-top="0.5in"- margin-bottom=".5in"/>- <fo:region-after- region-name="first-footer"- extent=".5in"- display-align="before"/>- </fo:simple-page-master>- <fo:simple-page-master master-name="even-page"- page-height="{$pageheight}"- page-width="{$pagewidth}"- margin-top="{$topmargin}"- margin-bottom="{$bottommargin}">- <xsl:choose>- <xsl:when test="$doublesided = 'true'">- <xsl:attribute name="margin-left">- <xsl:value-of select="$outermargin"/>- </xsl:attribute>- <xsl:attribute name="margin-right">- <xsl:value-of select="$innermargin"/>- </xsl:attribute>- </xsl:when>- <xsl:otherwise>- <xsl:attribute name="margin-left">- <xsl:value-of select="$innermargin"/>- </xsl:attribute>- <xsl:attribute name="margin-right">- <xsl:value-of select="$outermargin"/>- </xsl:attribute>- </xsl:otherwise>- </xsl:choose>- <fo:region-before- region-name="even-header"- extent="0.5in"- border-bottom="0.5pt solid"/>- <fo:region-body- margin-top="0.5in"- margin-bottom=".5in"/>- <fo:region-after- region-name="even-footer"- extent=".5in"- display-align="before"/>- </fo:simple-page-master>- <fo:simple-page-master master-name="odd-page"- page-height="{$pageheight}"- page-width="{$pagewidth}"- margin-top="{$topmargin}"- margin-bottom="{$bottommargin}"- margin-left="{$innermargin}"- margin-right="{$outermargin}">- <fo:region-before- region-name="odd-header"- extent="0.5in"- border-bottom="0.5pt solid"/>- <fo:region-body- margin-top="0.5in"- margin-bottom=".5in"/>- <fo:region-after- region-name="odd-footer"- extent=".5in"- display-align="before"/>- </fo:simple-page-master>- <fo:page-sequence-master master-name="book">- <fo:repeatable-page-master-alternatives>- <fo:conditional-page-master-reference- page-position="first"- master-reference="first-page"/>- <fo:conditional-page-master-reference- odd-or-even="odd"- master-reference="odd-page"/>- <fo:conditional-page-master-reference- odd-or-even="even"- master-reference="even-page"/>- </fo:repeatable-page-master-alternatives>- </fo:page-sequence-master>- </fo:layout-master-set>- <xsl:apply-templates select="/site/document" mode="outline"/>- <fo:page-sequence master-reference="book">- <xsl:apply-templates select="/site/document"/>- </fo:page-sequence>- </fo:root>- </xsl:template>- <xsl:template match="document">- <fo:title>- <xsl:value-of select="header/title"/>- </fo:title>- <fo:static-content flow-name="first-footer">- <fo:block- border-top="0.25pt solid"- padding-before="6pt"- text-align="center">- <xsl:apply-templates select="footer"/>- </fo:block>-<!-- don't list page number on first page if it's contents is just the TOC -->- <xsl:if test="not($toc-max-depth > 0 and $page-break-top-sections)">- <xsl:call-template name="insertPageNumber">- <xsl:with-param name="text-align">start</xsl:with-param>- </xsl:call-template>- </xsl:if>- <xsl:call-template name="info"/>- </fo:static-content>- <fo:static-content flow-name="even-header">- <fo:block- font-size="70%"- text-align="end"- font-style="italic">- <xsl:value-of select="header/title"/>- </fo:block>- </fo:static-content>- <fo:static-content flow-name="even-footer">- <fo:block- border-top="0.25pt solid"- padding-before="6pt"- text-align="center">- <xsl:apply-templates select="footer"/>- </fo:block>- <xsl:call-template name="insertPageNumber">- <xsl:with-param name="text-align">end</xsl:with-param>- </xsl:call-template>- <xsl:call-template name="info"/>- </fo:static-content>- <fo:static-content flow-name="odd-header">- <fo:block- font-size="70%"- text-align="start"- font-style="italic">- <xsl:value-of select="header/title"/>- </fo:block>- </fo:static-content>- <fo:static-content flow-name="odd-footer">- <fo:block- border-top="0.25pt solid"- padding-before="6pt"- text-align="center">- <xsl:apply-templates select="footer"/>- </fo:block>- <xsl:call-template name="insertPageNumber">- <xsl:with-param name="text-align">start</xsl:with-param>- </xsl:call-template>- <xsl:call-template name="info"/>- </fo:static-content>- <fo:flow flow-name="xsl-region-body">- <fo:block- padding-before="24pt"- padding-after="24pt"- font-size="24pt"- font-weight="bold"- id="{generate-id()}">- <xsl:value-of select="header/title"/>- </fo:block>- <fo:block- text-align="{$text-align}"- padding-before="18pt"- padding-after="18pt">- <xsl:apply-templates/>- </fo:block>-<!-- Total number of pages calculation... -->- <fo:block id="term"/>- </fo:flow>- </xsl:template>- <xsl:template match="abstract">- <fo:block- font-size="12pt"- text-align="center"- space-before="20pt"- space-after="25pt"- width="7.5in"- font-family="serif"- font-style="italic">- <xsl:call-template name="insertPageBreaks"/>- <xsl:apply-templates/>- </fo:block>- </xsl:template>- <xsl:template match="notice">- <fo:block- font-size="10pt"- text-align="left"- space-before="20pt"- width="7.5in"- font-family="serif"- border-top="0.25pt solid"- border-bottom="0.25pt solid"- padding-before="6pt"- padding-after="6pt">- <xsl:call-template name="insertPageBreaks"/>-<!-- insert i18n stuff here -->- NOTICE: <xsl:apply-templates/>- </fo:block>- </xsl:template>- <xsl:template match="anchor">- <fo:block id="{@id}"/>- <xsl:apply-templates/>- </xsl:template>- <xsl:template match="section">- <xsl:param name="level">0</xsl:param>- <xsl:variable name="size">-<!-- 14pt for level 1 12pt for level 2 -->- <xsl:value-of select="14-number($level)"/>- </xsl:variable>- <xsl:variable name="background-color" select="//skinconfig/colors/color[@name='body']/@value"/>- <xsl:variable name="heading-color" select="//skinconfig/colors/color[@name='subheading']/@value"/>- <xsl:variable name="heading-type" select="//skinconfig/headings/@type"/>- <fo:block- font-family="serif"- font-size="{$size}pt"- font-weight="bold"- space-before="12pt"- space-after="4pt">- <xsl:call-template name="insertPageBreaks"/>- <xsl:if test="$heading-type = 'boxed'">- <xsl:attribute name="background-color">- <xsl:value-of select="$heading-color"/>- </xsl:attribute>- </xsl:if>- <xsl:attribute name="id">- <xsl:choose>- <xsl:when test="normalize-space(@id)!=''">- <xsl:value-of select="@id"/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="generate-id()"/>- </xsl:otherwise>- </xsl:choose>- </xsl:attribute>- <xsl:if test="$numbersections = 'true' and number($level) < $numbering-max-depth+1">- <xsl:number format="1.1.1.1.1.1.1" count="section" level="multiple"/>-<xsl:text>. </xsl:text>- </xsl:if>-<!-- For sections 4 or more nestings deep, indent instead of number -->- <xsl:if test="number($level) > $numbering-max-depth+1">- <xsl:attribute name="start-indent">- <xsl:value-of select="4+number($level)"/>-<xsl:text>pt</xsl:text>- </xsl:attribute>- </xsl:if>- <xsl:value-of select="title"/>- </fo:block>- <xsl:if test="$heading-type = 'underlined'">-<!-- The non-breaking space in this block is required, otherwise- the block won't be rendered at all. -->- <fo:block- font-family="serif"- font-size="{10 div (number($level) +1 )}pt"- background-color="{$heading-color}"> </fo:block>- </xsl:if>- <fo:block- background-color="{$background-color}">- <xsl:apply-templates>- <xsl:with-param name="level" select="number($level)+1"/>- </xsl:apply-templates>- </fo:block>- </xsl:template>- <xsl:template match="title">-<!-- do nothing as titles are handled in their parent templates -->- </xsl:template>- <xsl:template match="subtitle">- <xsl:param name="level">0</xsl:param>- <xsl:variable name="size" select="16-(number($level)*1.5)"/>- <fo:block- font-weight="bold"- font-size="{$size}pt">- <xsl:call-template name="insertPageBreaks"/>- <xsl:apply-templates/>- </fo:block>- </xsl:template>- <xsl:template match="authors">- <fo:block- space-before="20pt"- font-weight="bold"- font-size="9pt">- <xsl:call-template name="insertPageBreaks"/>-<!-- insert i18n stuff here -->- by- <xsl:for-each select="person">- <xsl:value-of select="@name"/>- <xsl:if test="not(position() = last())">, </xsl:if>- </xsl:for-each>- </fo:block>- </xsl:template>- <xsl:template match="p">- <xsl:choose>- <xsl:when test="ancestor::li and not(preceding-sibling::*)">- <fo:block- space-after="4pt"- font-family="serif">- <xsl:call-template name="insertPageBreaks"/>- <xsl:apply-templates/>- </fo:block>- </xsl:when>- <xsl:otherwise>- <fo:block- space-before="4pt"- space-after="4pt"- font-family="serif">- <xsl:call-template name="insertPageBreaks"/>- <xsl:apply-templates/>- </fo:block>- </xsl:otherwise>- </xsl:choose>- </xsl:template>- <xsl:template match="source">- <xsl:variable name="color" select="//skinconfig/colors/color[@name='code']/@value"/>- <fo:block- font-family="monospace"- font-size="10pt"- background-color="{$color}"- white-space-collapse="false"- linefeed-treatment="preserve"- white-space-treatment="preserve"- wrap-option="wrap"- text-align="start">- <xsl:call-template name="insertPageBreaks"/>- <xsl:apply-templates/>- </fo:block>- </xsl:template>- <xsl:template match="ol|ul">- <fo:list-block- provisional-distance-between-starts="18pt"- provisional-label-separation="3pt"- text-align="start">- <xsl:apply-templates/>- </fo:list-block>- </xsl:template>- <xsl:template match="ol/li">- <fo:list-item>- <xsl:if test="not(following-sibling::li[1])">- <xsl:attribute name="space-after">6pt"</xsl:attribute>- </xsl:if>- <fo:list-item-label- end-indent="label-end()">- <fo:block>- <xsl:number format="1."/>- </fo:block>- </fo:list-item-label>- <fo:list-item-body- start-indent="body-start()">- <fo:block- font-family="serif">- <xsl:apply-templates/>- </fo:block>- </fo:list-item-body>- </fo:list-item>- </xsl:template>-<!-- Emulate browser handling of these invalid combinations that our DTD- unfortunately allows -->- <xsl:template match="ul/ul | ul/ol | ol/ul | ol/ol">- <fo:list-item>- <fo:list-item-label end-indent="label-end()">- <fo:block></fo:block>- </fo:list-item-label>- <fo:list-item-body start-indent="body-start()">- <fo:block font-family="serif">- <xsl:apply-templates/>- </fo:block>- </fo:list-item-body>- </fo:list-item>- </xsl:template>- <xsl:template match="ul/li">- <fo:list-item>- <xsl:if test="not(following-sibling::li[1])">- <xsl:attribute name="space-after">6pt</xsl:attribute>- </xsl:if>- <fo:list-item-label end-indent="label-end()">- <fo:block>•</fo:block>- </fo:list-item-label>- <fo:list-item-body start-indent="body-start()">- <fo:block- font-family="serif">- <xsl:apply-templates/>- </fo:block>- </fo:list-item-body>- </fo:list-item>- </xsl:template>- <xsl:template match="dl">- <fo:list-block- provisional-distance-between-starts="18pt"- provisional-label-separation="3pt"- text-align="start">- <xsl:apply-templates/>- </fo:list-block>- </xsl:template>- <xsl:template match="dt">- <fo:list-item>- <fo:list-item-label end-indent="label-end()">- <fo:block></fo:block>- </fo:list-item-label>- <fo:list-item-body start-indent="body-start()">- <fo:block- font-weight="bold">- <xsl:apply-templates/>- </fo:block>- </fo:list-item-body>- </fo:list-item>- </xsl:template>- <xsl:template match="dd">- <fo:list-item>- <fo:list-item-label end-indent="label-end()">- <fo:block></fo:block>- </fo:list-item-label>- <fo:list-item-body start-indent="body-start()">- <fo:block>- <xsl:apply-templates/>- </fo:block>- </fo:list-item-body>- </fo:list-item>- </xsl:template>- <xsl:template match="strong">- <fo:inline font-weight="bold">- <xsl:apply-templates/>- </fo:inline>- </xsl:template>- <xsl:template match="em">- <fo:inline font-style="italic">- <xsl:apply-templates/>- </fo:inline>- </xsl:template>- <xsl:template match="code">- <fo:inline font-family="monospace">- <xsl:apply-templates/>- </fo:inline>- </xsl:template>- <xsl:template match="warning">- <xsl:variable name="color" select="//skinconfig/colors/color[@name='warning']/@value"/>- <fo:block- margin-left="0.25in"- margin-right="0.25in"- font-weight="bold"- font-size="10pt"- font-family="serif"- space-before="10pt"- border-before-style="solid"- border-start-style="solid"- border-end-style="solid"- border-color="{$color}"- background-color="{$color}"- color="#ffffff">- <xsl:call-template name="insertPageBreaks"/>- <xsl:choose>- <xsl:when test="@label">- <xsl:value-of select="@label"/>- </xsl:when>- <xsl:otherwise>Warning: </xsl:otherwise>- </xsl:choose>- <xsl:value-of select="title"/>- </fo:block>- <fo:block- margin-left="0.25in"- margin-right="0.25in"- font-family="serif"- font-size="8pt"- border-after-style="solid"- border-start-style="solid"- border-end-style="solid"- border-color="{$color}"- background-color="#fff0f0"- padding-start="3pt"- padding-end="3pt"- padding-before="3pt"- padding-after="3pt"- space-after="10pt">- <xsl:apply-templates/>- </fo:block>- </xsl:template>- <xsl:template match="note">- <xsl:variable name="color" select="//skinconfig/colors/color[@name='note']/@value"/>- <fo:block- margin-left="0.25in"- margin-right="0.25in"- font-weight="bold"- font-size="10pt"- color="#ffffff"- font-family="serif"- space-before="10pt"- border-before-style="solid"- border-start-style="solid"- border-end-style="solid"- border-color="{$color}"- background-color="{$color}">- <xsl:call-template name="insertPageBreaks"/>- <xsl:choose>- <xsl:when test="@label">- <xsl:value-of select="@label"/>- </xsl:when>-<!-- insert i18n stuff here -->- <xsl:otherwise>Note: </xsl:otherwise>- </xsl:choose>- <xsl:value-of select="title"/>- </fo:block>- <fo:block- margin-left="0.25in"- margin-right="0.25in"- font-family="serif"- font-size="8pt"- space-after="10pt"- border-after-style="solid"- border-start-style="solid"- border-end-style="solid"- border-color="{$color}"- background-color="#F0F0FF"- padding-start="3pt"- padding-end="3pt"- padding-before="3pt"- padding-after="3pt">- <xsl:apply-templates/>- </fo:block>- </xsl:template>- <xsl:template match="fixme">- <xsl:variable name="color" select="//skinconfig/colors/color[@name='fixme']/@value"/>- <fo:block- margin-left="0.25in"- margin-right="0.25in"- font-weight="bold"- font-size="10pt"- color="#FFFFFF"- font-family="serif"- space-before="10pt"- border-before-style="solid"- border-start-style="solid"- border-end-style="solid"- border-color="{$color}"- background-color="{$color}">- <xsl:call-template name="insertPageBreaks"/>-<!-- insert i18n stuff here -->- FIXME (<xsl:value-of select="@author"/>): <xsl:value-of select="title"/>- </fo:block>- <fo:block- margin-left="0.25in"- margin-right="0.25in"- font-family="serif"- font-size="8pt"- space-after="10pt"- border-after-style="solid"- border-start-style="solid"- border-end-style="solid"- border-color="{$color}"- background-color="#FFF0F0"- padding-start="3pt"- padding-end="3pt"- padding-before="3pt"- padding-after="3pt">- <xsl:apply-templates/>- </fo:block>- </xsl:template>- <xsl:template match="link|fork|jump">- <xsl:variable name="color" select="//skinconfig/colors/color[@name = 'body']/@link"/>- <xsl:choose>- <xsl:when test="starts-with(@href, '#')">- <fo:basic-link color="{$color}" text-decoration="underline" internal-destination="{substring(@href,2)}">- <xsl:apply-templates/>- </fo:basic-link>- </xsl:when>- <xsl:otherwise>- <fo:basic-link color="{$color}" text-decoration="underline" external-destination="{@href}">- <xsl:apply-templates/>- </fo:basic-link>- <xsl:if test="$show-external-urls = 'true' and @href != string(.)">- (<xsl:value-of select="@href"/>)- </xsl:if>- </xsl:otherwise>- </xsl:choose>- </xsl:template>- <xsl:template match="figure|img">- <fo:block text-align="center">- <xsl:call-template name="insertPageBreaks"/>- <xsl:if test="normalize-space(@id)!=''">- <xsl:attribute name="id">- <xsl:value-of select="@id"/>- </xsl:attribute>- </xsl:if>-<!-- Make relative paths absolute -->- <xsl:variable name="imgpath">- <xsl:choose>-<!-- resources image dir -->- <xsl:when test="starts-with(string(@src),'images/')">- <xsl:value-of select="concat($imagesdir,substring-after(@src,'images'))"/>- </xsl:when>- <xsl:when test="contains(string(@src),'/images/')">- <xsl:value-of select="concat($imagesdir,substring-after(@src,'/images'))"/>- </xsl:when>-<!-- already absolute -->- <xsl:when test="contains(string(@src),':') or starts-with(string(@src),'/')">- <xsl:value-of select="@src"/>- </xsl:when>-<!-- relative to document -->- <xsl:otherwise>- <xsl:value-of select="concat($xmlbasedir,@src)"/>- </xsl:otherwise>- </xsl:choose>- </xsl:variable>- <fo:external-graphic src="{$imgpath}">- <xsl:if test="@height">- <xsl:attribute name="height">- <xsl:value-of select="@height"/>- </xsl:attribute>- </xsl:if>- <xsl:if test="@width">- <xsl:attribute name="width">- <xsl:value-of select="@width"/>- </xsl:attribute>- </xsl:if>- </fo:external-graphic>-<!-- alt text -->- <xsl:if test="//skinconfig/pdf/show-image-alt-text='true'">- <xsl:if test="normalize-space(@alt)!=''">- <fo:block>- <xsl:value-of select="@alt"/>- </fo:block>- </xsl:if>- </xsl:if>- </fo:block>- </xsl:template>- <xsl:template match="table">-<!-- FIXME: Apache FOP must have column widths specified at present,- this section can be removed when this limitation is removed from Fop.- Unfortunately, this means that each column is a fixed width,- but at least the table displays! -->- <xsl:variable name="max-number-columns-td">- <xsl:for-each select="tr">- <xsl:sort select="count(td|th)" data-type="number"- order="descending"/>- <xsl:if test="position() = 1">- <xsl:value-of select="count(td|th)"/>- </xsl:if>- </xsl:for-each>- </xsl:variable>- <xsl:variable name="max-number-columns-colspan">- <xsl:for-each select="tr">- <xsl:sort select="count(td|th)" data-type="number"- order="descending"/>- <xsl:if test="position() = 1">- <xsl:value-of- select="sum(td/@colspan|th/@colspan)"/>- </xsl:if>- </xsl:for-each>- </xsl:variable>- <xsl:variable name="max-number-columns">- <xsl:choose>- <xsl:when- test="$max-number-columns-colspan>$max-number-columns-td">- <xsl:value-of- select="$max-number-columns-colspan"/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="$max-number-columns-td"/>- </xsl:otherwise>- </xsl:choose>- </xsl:variable>- <xsl:variable name="column-width">- <xsl:value-of select="6.25 div number($max-number-columns)"/>in- </xsl:variable>- <fo:table>- <fo:table-column>- <xsl:attribute name="column-width">- <xsl:value-of select="$column-width"/>- </xsl:attribute>- <xsl:attribute name="number-columns-repeated">- <xsl:value-of select="number($max-number-columns)"/>- </xsl:attribute>- </fo:table-column>-<!-- End of hack for Fop support (if removing this hack, remember- you need the <fo:table> element) -->- <fo:table-body- font-size="10pt"- font-family="sans-serif">- <xsl:apply-templates select="tr"/>- </fo:table-body>- </fo:table>-<!-- FIXME: Apache Fop does not support the caption element yet.- This hack will display the table caption accordingly. -->- <xsl:if test="caption">- <fo:block- text-align="center"- font-weight="bold">-<!-- insert i18n stuff here -->- Table- <xsl:text> </xsl:text>- <xsl:number count="table" level="multiple"/>-<xsl:text>: </xsl:text>- <xsl:value-of select="caption"/>- </fo:block>- </xsl:if>- </xsl:template>- <xsl:template match="tr">- <fo:table-row>- <xsl:apply-templates/>- </fo:table-row>- </xsl:template>- <xsl:template match="th">- <xsl:variable name="border-color" select="//skinconfig/colors/color[@name = 'table']/@value"/>- <xsl:variable name="background-color" select="$border-color"/>- <fo:table-cell- padding-before="4pt"- padding-after="4pt"- padding-start="4pt"- padding-end="4pt"- color="#FFFFFF"- background-color="{$background-color}"- border="1pt solid {$border-color}">- <xsl:attribute name="number-columns-spanned">- <xsl:value-of select="@colspan"/>- </xsl:attribute>- <xsl:attribute name="number-rows-spanned">- <xsl:value-of select="@rowspan"/>- </xsl:attribute>- <fo:block- text-align="center">- <xsl:apply-templates/>- </fo:block>- </fo:table-cell>- </xsl:template>- <xsl:template match="td">- <xsl:variable name="border-color" select="//skinconfig/colors/color[@name = 'table']/@value"/>- <xsl:variable name="background-color" select="//skinconfig/colors/color[@name = 'table-cell']/@value"/>- <fo:table-cell- padding-before="4pt"- padding-after="4pt"- padding-start="4pt"- padding-end="4pt"- background-color="{$background-color}"- border="1pt solid {$border-color}">- <xsl:attribute name="number-columns-spanned">- <xsl:value-of select="@colspan"/>- </xsl:attribute>- <xsl:attribute name="number-rows-spanned">- <xsl:value-of select="@rowspan"/>- </xsl:attribute>- <fo:block>- <xsl:apply-templates/>- </fo:block>- </fo:table-cell>- </xsl:template>- <xsl:template match="br">- <fo:block></fo:block>- </xsl:template>- <xsl:template match="legal">- <fo:inline- font-size="8pt">- <xsl:apply-templates/>- </fo:inline>- </xsl:template>- <xsl:template match="body[count(//section) != 0]">- <xsl:if test="$toc-max-depth > 0">- <fo:block font-family="serif" font-size="14pt" font-weight="bold"- space-after="5pt" space-before="5pt" text-align="justify" width="7.5in">- <xsl:call-template name="insertPageBreaks"/>-<!-- insert i18n stuff here -->-<xsl:text>Table of contents</xsl:text>- </fo:block>- <fo:block font-family="sans" font-size="12pt" space-after="5pt"- space-before="0pt" text-align="justify" width="7.5in">- <xsl:if test="$page-break-top-sections">- <xsl:attribute name="break-after">page</xsl:attribute>- </xsl:if>- <xsl:apply-templates select="section" mode="toc" />- </fo:block>- </xsl:if>- <xsl:apply-templates />- </xsl:template>- <xsl:template match="section" mode="toc">-<!-- FIXME: see bug FOR-640 -->- <xsl:param name="depth" select="'1'"/>- <fo:block space-before="5pt" text-align-last="justify" start-indent=".5em" text-indent=".5em">- <fo:inline>- <xsl:variable name="id">- <xsl:choose>- <xsl:when test="normalize-space(@id)!=''">- <xsl:value-of select="@id"/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="generate-id()"/>- </xsl:otherwise>- </xsl:choose>- </xsl:variable>- <fo:basic-link internal-destination="{$id}">- <xsl:value-of select="substring('          ', 0, 2 * $depth - 1)" />- <fo:inline font-size="10pt">- <xsl:number count="section" format="1.1.1.1.1.1.1" level="multiple" />- </fo:inline>-<xsl:text> </xsl:text>- <xsl:value-of select="title" />- <fo:leader leader-pattern="dots" />- <fo:page-number-citation ref-id="{$id}" />- </fo:basic-link>- </fo:inline>- <xsl:if test="$toc-max-depth > $depth">- <xsl:apply-templates select="section" mode="toc">- <xsl:with-param name="depth" select="$depth + 1"/>- </xsl:apply-templates>- </xsl:if>- </fo:block>- </xsl:template>-<!-- ====================================================================== -->-<!-- Local Extensions section -->-<!-- ====================================================================== -->- <xsl:template match="citation">- <fo:inline>- [<xsl:value-of select="@def"/>]- </fo:inline>- </xsl:template>- <xsl:template match="p[@class='quote']">- <fo:block start-indent="1em"- space-before="4pt"- space-after="4pt"- background-color="#f0f0f0"- font-family="monospace">- <xsl:call-template name="insertPageBreaks"/>- <xsl:apply-templates/>- </fo:block>- </xsl:template>- <xsl:template name="insertPageBreaks">-<!-- if marked as a 'pageBreakBefore', and we're breaking on pages, and were not the first node -->- <xsl:if test="contains(@class, 'pageBreakBefore') and preceding-sibling::node()">- <xsl:attribute name="break-before">page</xsl:attribute>- </xsl:if>-<!-- if marked as a 'pageBreakAfter', and we're breaking on pages, and were not the last node -->- <xsl:if test="contains(@class, 'pageBreakAfter') and following-sibling::node()">- <xsl:attribute name="break-after">page</xsl:attribute>- </xsl:if>- </xsl:template>-<!-- Display the document numerotation -->- <xsl:template name="insertPageNumber">- <xsl:param name="text-align" select="'start'"/>- <xsl:variable name="prefixe" select="substring-before($page-numbering-format,'1')"/>- <xsl:variable name="sep" select="substring-before(substring-after($page-numbering-format,'1'),'1')"/>- <xsl:variable name="postfixe">- <xsl:choose>- <xsl:when test="contains(substring-after($page-numbering-format,'1'),'1')">- <xsl:value-of select="substring-after(substring-after($page-numbering-format,'1'),'1')"/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="substring-after($page-numbering-format,'1')"/>- </xsl:otherwise>- </xsl:choose>- </xsl:variable>-<!-- if 'page-numbering-format' contains 1 digits, the page number is displayed in the footer -->- <xsl:if test="contains($page-numbering-format,'1')">- <fo:block font-size="70%" text-align="{$text-align}">-<!-- if the separator is not found, the total page number is skipped -->- <xsl:value-of select="$prefixe"/>- <fo:page-number/>- <xsl:if test="$sep != ''">- <xsl:value-of select="$sep"/>- <fo:page-number-citation ref-id="term"/>- </xsl:if>- <xsl:value-of select="$postfixe"/>- </fo:block>- </xsl:if>- </xsl:template>-<!-- ====================================================================== -->-<!-- Temporary section - subject to change on short notice -->-<!-- ====================================================================== -->- <xsl:template match="//style">-<!-- HACK: The OpenOffice.org input plugin currently produces- intermediate documents that contain a style element, invalid per- the Forrest Document DTD. This style element must be ignored- here. To find out why this is done this way, read the comments- attached to issue FOR-433. -->- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/fo/footerinfo.xsl b/lucene/site/src/documentation/skins/common/xslt/fo/footerinfo.xsldeleted file mode 100644index c5ba5c9460e..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/fo/footerinfo.xsl+++ /dev/null@@ -1,70 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"- xmlns:fo="http://www.w3.org/1999/XSL/Format"- version="1.0">-<!---Named template to generate a short message in the PDF footer, from text in-skinconf.xml. By default, the message is a copyright statement. If a credit-with @role='pdf' is present, that is used instead. Eg:--<credit role="pdf">- <name>Generated by Apache FOP 1.0-dev</name>- <url>http://xml.apache.org/fop/dev/</url>-</credit>--->- <xsl:template name="info">- <xsl:variable name="disable-copyright-footer" select="//skinconfig/pdf/disable-copyright-footer"/>- <xsl:variable name="pdfcredit" select="//skinconfig/credits/credit[@role = 'pdf']"/>- <xsl:variable name="text">- <xsl:if test="$pdfcredit">- <xsl:value-of select="$pdfcredit/name"/>- </xsl:if>- <xsl:if test="not($pdfcredit) and not($disable-copyright-footer = 'true')">-<xsl:text>Copyright © </xsl:text>- <xsl:value-of select="//skinconfig/year"/> <xsl:value-of- select="//skinconfig/vendor"/>-<xsl:text> All rights reserved.</xsl:text>- </xsl:if>- </xsl:variable>- <xsl:variable name="url" select="$pdfcredit/url"/>- <fo:block-container font-style="italic" absolute-position="absolute"- left="0pt" top="0pt" right="6.25in" bottom="150pt"- font-size="10pt">- <xsl:if test="not($url)">- <fo:block text-align="center" color="lightgrey">- <xsl:value-of select="$text"/>- </fo:block>- </xsl:if>- <xsl:if test="$url">- <fo:block text-align="center">- <fo:basic-link color="lightgrey"- external-destination="{$url}">- <xsl:value-of select="$text"/>- </fo:basic-link>- </fo:block>- <fo:block text-align="center">- <fo:basic-link color="lightgrey"- external-destination="{$url}">- <xsl:value-of select="$url"/>- </fo:basic-link>- </fo:block>- </xsl:if>- </fo:block-container>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/fo/pdfoutline.xsl b/lucene/site/src/documentation/skins/common/xslt/fo/pdfoutline.xsldeleted file mode 100644index acdc6ac9cf1..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/fo/pdfoutline.xsl+++ /dev/null@@ -1,45 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"- xmlns:fo="http://www.w3.org/1999/XSL/Format"- xmlns:fox="http://xml.apache.org/fop/extensions"- version="1.0">- <xsl:template match="document" mode="outline">- <xsl:apply-templates select="body/section" mode="outline"/>- </xsl:template>- <xsl:template match="section" mode="outline">- <fox:outline>- <xsl:attribute name="internal-destination">- <xsl:choose>- <xsl:when test="normalize-space(@id)!=''">- <xsl:value-of select="@id"/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="generate-id()"/>- </xsl:otherwise>- </xsl:choose>- </xsl:attribute>- <fox:label>- <xsl:number format="1.1.1.1.1.1.1" count="section" level="multiple"/>-<xsl:text> </xsl:text>- <xsl:value-of select="normalize-space(title)"/>- </fox:label>- <xsl:apply-templates select="section" mode="outline"/>- </fox:outline>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/html/book-to-menu.xsl b/lucene/site/src/documentation/skins/common/xslt/html/book-to-menu.xsldeleted file mode 100644index 228b57e5c4d..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/html/book-to-menu.xsl+++ /dev/null@@ -1,139 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<!---book-to-menu.xsl generates the HTML menu. It outputs XML/HTML of the form:- <div class="menu">- ...- </div>-which is then merged with other HTML by site-to-xhtml.xsl---->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">-<!-- ================================================================ -->-<!-- These templates SHOULD be overridden -->-<!-- ================================================================ -->- <xsl:template name="selected">- <xsl:value-of select="@label"/>- </xsl:template>- <xsl:template name="unselected"><a href="{@href}">- <xsl:if test="@description">- <xsl:attribute name="title">- <xsl:value-of select="@description"/>- </xsl:attribute>- </xsl:if>- <xsl:value-of select="@label"/></a>- </xsl:template>- <xsl:template name="print-external">-<!-- Use apply-imports when overriding -->- <xsl:value-of select="@label"/>- </xsl:template>-<!-- ================================================================ -->-<!-- These templates CAN be overridden -->-<!-- ================================================================ -->-<!-- Eg, if tab href is 'index.html#foo', this will be called when index.html- is selected -->- <xsl:template name="selected-anchor">-<!-- By default, render as unselected so that it is clickable (takes user- to the anchor) -->- <xsl:call-template name="unselected"/>- </xsl:template>- <xsl:template name="unselected-anchor">- <xsl:call-template name="unselected"/>- </xsl:template>- <xsl:template match="book">- <xsl:apply-templates select="menu"/>- </xsl:template>- <xsl:template match="menu">- <div class="menu">- <xsl:call-template name="base-menu"/>- </div>- </xsl:template>- <xsl:template match="menu-item">-<!-- Use apply-imports when overriding -->- <xsl:variable name="href-nofrag">- <xsl:call-template name="path-nofrag">- <xsl:with-param name="path" select="@href"/>- </xsl:call-template>- </xsl:variable>- <xsl:variable name="node-path">- <xsl:call-template name="normalize">- <xsl:with-param name="path" select="concat($dirname, $href-nofrag)"/>- </xsl:call-template>- </xsl:variable>- <xsl:choose>-<!-- Compare with extensions stripped -->- <xsl:when test="$node-path = $path-nofrag">- <xsl:choose>- <xsl:when test="contains(@href, '#')">- <xsl:call-template name="selected-anchor"/>- </xsl:when>- <xsl:otherwise>- <xsl:call-template name="selected"/>- </xsl:otherwise>- </xsl:choose>- </xsl:when>- <xsl:otherwise>- <xsl:choose>- <xsl:when test="contains(@href, '#')">- <xsl:call-template name="unselected-anchor"/>- </xsl:when>- <xsl:otherwise>- <xsl:call-template name="unselected"/>- </xsl:otherwise>- </xsl:choose>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-<!-- ================================================================ -->-<!-- These templates SHOULD NOT be overridden -->-<!-- ================================================================ -->- <xsl:param name="path"/>- <xsl:include href="pathutils.xsl"/>- <xsl:variable name="filename">- <xsl:call-template name="filename">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:variable>- <xsl:variable name="path-nofrag">- <xsl:call-template name="path-nofrag">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:variable>- <xsl:variable name="dirname">- <xsl:call-template name="dirname">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:variable>- <xsl:template match="external">- <li><xsl:choose>- <xsl:when test="starts-with(@href, $path-nofrag)">- <span class="externalSelected">- <xsl:call-template name="print-external"/>- </span>- </xsl:when>- <xsl:otherwise><a href="{@href}" target="_blank">- <xsl:value-of select="@label"/></a>- </xsl:otherwise>- </xsl:choose></li>- </xsl:template>- <xsl:template match="menu-item[@type='hidden']"/>- <xsl:template match="external[@type='hidden']"/>- <xsl:template name="base-menu">- <xsl:apply-templates/>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/html/document-to-html.xsl b/lucene/site/src/documentation/skins/common/xslt/html/document-to-html.xsldeleted file mode 100644index d4496e07a7e..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/html/document-to-html.xsl+++ /dev/null@@ -1,374 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<!---This stylesheet contains the majority of templates for converting documentv11-to HTML. It renders XML as HTML in this form:-- <div class="content">- ...- </div>--..which site-to-xhtml.xsl then combines with HTML from the index (book-to-menu.xsl)-and tabs (tab-to-menu.xsl) to generate the final HTML.--Section handling- - <a name/> anchors are added if the id attribute is specified---->-<xsl:stylesheet version="1.0"- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:param name="dynamic-page" select="'false'"/>- <xsl:param name="notoc"/>- <xsl:param name="path"/>-<!-- <xsl:include href="split.xsl"/> -->- <xsl:include href="dotdots.xsl"/>- <xsl:include href="pathutils.xsl"/>-<!-- Path to site root, eg '../../' -->- <xsl:variable name="root">- <xsl:call-template name="dotdots">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:variable>- <xsl:variable name="skin-img-dir" select="concat(string($root), 'skin/images')"/>- <xsl:template match="/">- <xsl:apply-templates mode="toc"/>- <xsl:apply-templates/>- </xsl:template>- <xsl:template match="document">- <div class="content">- <table summary="" class="title">- <tr>- <td valign="middle">- <xsl:if test="normalize-space(header/title)!=''">- <h1>- <xsl:value-of select="header/title"/>- </h1>- </xsl:if>- </td>- <div id="skinconf-printlink"/>- <xsl:if test="$dynamic-page='false'">- <div id="skinconf-pdflink"/>- <div id="skinconf-xmllink"/>- </xsl:if>- </tr>- </table>- <xsl:if test="normalize-space(header/subtitle)!=''">- <h3>- <xsl:value-of select="header/subtitle"/>- </h3>- </xsl:if>- <xsl:apply-templates select="header/type"/>- <xsl:apply-templates select="header/notice"/>- <xsl:apply-templates select="header/abstract"/>- <xsl:apply-templates select="body"/>- <div class="attribution">- <xsl:apply-templates select="header/authors"/>- <xsl:if test="header/authors and header/version">-<xsl:text>; </xsl:text>- </xsl:if>- <xsl:apply-templates select="header/version"/>- </div>- </div>- </xsl:template>- <xsl:template match="body">- <div id="skinconf-toc-page"/>- <xsl:apply-templates/>- </xsl:template>-<!-- Generate a <a name="..."> tag for an @id -->- <xsl:template match="@id">- <xsl:if test="normalize-space(.)!=''"><a name="{.}"/>- </xsl:if>- </xsl:template>- <xsl:template match="section">-<!-- count the number of section in the ancestor-or-self axis to compute- the title element name later on -->- <xsl:variable name="sectiondepth" select="count(ancestor-or-self::section)"/><a name="{generate-id()}"/>- <xsl:apply-templates select="@id"/>-<!-- generate a title element, level 1 -> h3, level 2 -> h4 and so on... -->- <xsl:element name="{concat('h',$sectiondepth + 2)}">- <xsl:value-of select="title"/>- <xsl:if test="$notoc='true' and $sectiondepth = 3">- <span style="float: right"><a href="#{@id}-menu">^</a>- </span>- </xsl:if>- </xsl:element>-<!-- Indent FAQ entry text 15 pixels -->- <xsl:variable name="indent">- <xsl:choose>- <xsl:when test="$notoc='true' and $sectiondepth = 3">-<xsl:text>15</xsl:text>- </xsl:when>- <xsl:otherwise>-<xsl:text>0</xsl:text>- </xsl:otherwise>- </xsl:choose>- </xsl:variable>- <div style="margin-left: {$indent} ; border: 2px">- <xsl:apply-templates select="*[not(self::title)]"/>- </div>- </xsl:template>- <xsl:template match="note | warning | fixme">- <xsl:apply-templates select="@id"/>- <div>- <xsl:call-template name="add.class">- <xsl:with-param name="class">- <xsl:value-of select="local-name()"/>- </xsl:with-param>- </xsl:call-template>- <div class="label">- <xsl:choose>-<!-- FIXME: i18n Transformer here -->- <xsl:when test="@label">- <xsl:value-of select="@label"/>- </xsl:when>- <xsl:when test="local-name() = 'note'">Note</xsl:when>- <xsl:when test="local-name() = 'warning'">Warning</xsl:when>- <xsl:otherwise>Fixme (<xsl:value-of select="@author"/>)</xsl:otherwise>- </xsl:choose>- </div>- <div class="content">- <xsl:apply-templates/>- </div>- </div>- </xsl:template>- <xsl:template match="notice">- <div class="notice">-<!-- FIXME: i18n Transformer here -->-<xsl:text>Notice: </xsl:text>- <xsl:apply-templates/>- </div>- </xsl:template>- <xsl:template match="link">- <xsl:apply-templates select="@id"/><a>- <xsl:if test="@class='jump'">- <xsl:attribute name="target">_top</xsl:attribute>- </xsl:if>- <xsl:if test="@class='fork'">- <xsl:attribute name="target">_blank</xsl:attribute>- </xsl:if>- <xsl:copy-of select="@*"/>- <xsl:apply-templates/></a>- </xsl:template>- <xsl:template match="jump">- <xsl:apply-templates select="@id"/><a href="{@href}" target="_top">- <xsl:apply-templates/></a>- </xsl:template>- <xsl:template match="fork">- <xsl:apply-templates select="@id"/><a href="{@href}" target="_blank">- <xsl:apply-templates/></a>- </xsl:template>- <xsl:template match="p[@xml:space='preserve']">- <xsl:apply-templates select="@id"/>- <div class="pre">- <xsl:copy-of select="@id"/>- <xsl:apply-templates/>- </div>- </xsl:template>- <xsl:template match="source">- <xsl:apply-templates select="@id"/>- <pre class="code">-<!-- Temporarily removed long-line-splitter ... gives out-of-memory problems -->- <xsl:copy-of select="@id"/>- <xsl:apply-templates/>-<!--- <xsl:call-template name="format">- <xsl:with-param select="." name="txt" />- <xsl:with-param name="width">80</xsl:with-param>- </xsl:call-template>--->- </pre>- </xsl:template>- <xsl:template match="anchor"><a name="{@id}">- <xsl:copy-of select="@id"/></a>- </xsl:template>- <xsl:template match="icon">- <xsl:apply-templates select="@id"/>- <img class="icon">- <xsl:copy-of select="@height | @width | @src | @alt | @id"/>- </img>- </xsl:template>- <xsl:template match="code">- <xsl:apply-templates select="@id"/>- <span>- <xsl:call-template name="add.class">- <xsl:with-param name="class">codefrag</xsl:with-param>- </xsl:call-template>- <xsl:copy-of select="@id"/>- <xsl:value-of select="."/>- </span>- </xsl:template>- <xsl:template match="figure">- <xsl:apply-templates select="@id"/>- <div align="center">- <xsl:copy-of select="@id"/>- <img class="figure">- <xsl:copy-of select="@height | @width | @src | @alt | @id"/>- </img>- </div>- </xsl:template>- <xsl:template match="table">- <xsl:apply-templates select="@id"/>- <xsl:choose>-<!-- Limit Forrest specific processing to tables without class -->- <xsl:when test="not(@class) or @class=''">- <table cellpadding="4" cellspacing="1" class="ForrestTable">- <xsl:copy-of select="@cellspacing | @cellpadding | @border | @class | @bgcolor |@id"/>- <xsl:apply-templates/>- </table>- </xsl:when>- <xsl:otherwise>-<!-- Tables with class are passed without change -->- <xsl:copy>- <xsl:copy-of select="@*"/>- <xsl:apply-templates/>- </xsl:copy>- </xsl:otherwise>- </xsl:choose>- <xsl:if test="@class = ''"></xsl:if>- </xsl:template>- <xsl:template match="acronym/@title">- <xsl:attribute name="title">- <xsl:value-of select="normalize-space(.)"/>- </xsl:attribute>- </xsl:template>- <xsl:template match="header/authors">- <xsl:for-each select="person">- <xsl:choose>- <xsl:when test="position()=1">by</xsl:when>- <xsl:otherwise>,</xsl:otherwise>- </xsl:choose>-<xsl:text> </xsl:text>- <xsl:value-of select="@name"/>- </xsl:for-each>- </xsl:template>- <xsl:template match="version">- <span class="version">- <xsl:apply-templates select="@major"/>- <xsl:apply-templates select="@minor"/>- <xsl:apply-templates select="@fix"/>- <xsl:apply-templates select="@tag"/>- <xsl:choose>- <xsl:when test="starts-with(., '$Revision: ')">- version <xsl:value-of select="substring(., 12, string-length(.) -11-2)"/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="."/>- </xsl:otherwise>- </xsl:choose>- </span>- </xsl:template>- <xsl:template match="@major">- v<xsl:value-of select="."/>- </xsl:template>- <xsl:template match="@minor | @fix">- <xsl:value-of select="concat('.',.)"/>- </xsl:template>- <xsl:template match="@tag">- <xsl:value-of select="concat('-',.)"/>- </xsl:template>- <xsl:template match="type">- <p class="type">-<!-- FIXME: i18n Transformer here -->-<xsl:text>Type: </xsl:text>- <xsl:value-of select="."/>- </p>- </xsl:template>- <xsl:template match="abstract">- <p>- <xsl:apply-templates/>- </p>- </xsl:template>- <xsl:template name="email"><a>- <xsl:attribute name="href">- <xsl:value-of select="concat('mailto:',@email)"/>- </xsl:attribute>- <xsl:value-of select="@name"/></a>- </xsl:template>- <xsl:template name="generate-id">- <xsl:choose>- <xsl:when test="@id">- <xsl:value-of select="@id"/>- </xsl:when>- <xsl:when test="@title">- <xsl:value-of select="@title"/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="generate-id(.)"/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-<!-- Templates for "toc" mode. This will generate a complete- Table of Contents for the document. This will then be used- by the site2xhtml to generate a Menu ToC and a Page ToC -->- <xsl:template match="document" mode="toc">- <xsl:apply-templates mode="toc"/>- </xsl:template>- <xsl:template match="body" mode="toc">- <tocitems>- <xsl:if test="../header/meta[@name='forrest.force-toc'] = 'true'">- <xsl:attribute name="force">true</xsl:attribute>- </xsl:if>- <xsl:apply-templates select="section" mode="toc">- <xsl:with-param name="level" select="1"/>- </xsl:apply-templates>- </tocitems>- </xsl:template>- <xsl:template match="section" mode="toc">- <xsl:param name="level"/>- <tocitem level="{$level}">- <xsl:attribute name="href">#<xsl:call-template name="generate-id"/>- </xsl:attribute>- <xsl:attribute name="title">- <xsl:value-of select="title"/>- </xsl:attribute>- <xsl:apply-templates mode="toc">- <xsl:with-param name="level" select="$level+1"/>- </xsl:apply-templates>- </tocitem>- </xsl:template>- <xsl:template name="add.class">-<!-- use the parameter to set class attribute -->-<!-- if there are already classes set, adds to them -->- <xsl:param name="class"/>- <xsl:attribute name="class">- <xsl:choose>- <xsl:when test="@class">- <xsl:value-of select="$class"/>-<xsl:text> </xsl:text>- <xsl:value-of select="@class"/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="$class"/>- </xsl:otherwise>- </xsl:choose>- </xsl:attribute>- </xsl:template>- <xsl:template match="node()|@*" mode="toc"/>-<!-- End of "toc" mode templates -->- <xsl:template match="node()|@*" priority="-1">-<!-- id processing will create its own a-element so processing has to- happen outside the copied element- -->- <xsl:apply-templates select="@id"/>- <xsl:copy>- <xsl:apply-templates select="@*[name(.) != 'id']"/>- <xsl:copy-of select="@id"/>- <xsl:apply-templates/>- </xsl:copy>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/html/dotdots.xsl b/lucene/site/src/documentation/skins/common/xslt/html/dotdots.xsldeleted file mode 100644index 2ff9d1f3266..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/html/dotdots.xsl+++ /dev/null@@ -1,73 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<!---Contains the 'dotdots' template, which, given a path, will output a set of-directory traversals to get back to the source directory. Handles both '/' and-'\' directory separators.--Examples:- Input Output- index.html ""- dir/index.html "../"- dir/subdir/index.html "../../"- dir//index.html "../"- dir/ "../"- dir// "../"- \some\windows\path "../../"- \some\windows\path\ "../../../"- \Program Files\mydir "../"--Cannot handle ..'s in the path, so don't expect 'dir/subdir/../index.html' to-work.---->-<xsl:stylesheet- version="1.0"- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:template name="dotdots">- <xsl:param name="path"/>- <xsl:variable name="dirs" select="normalize-space(translate(concat($path, 'x'), ' /\', '_ '))"/>-<!-- The above does the following:- o Adds a trailing character to the path. This prevents us having to deal- with the special case of ending with '/'- o Translates all directory separators to ' ', and normalize spaces,- cunningly eliminating duplicate '//'s. We also translate any real- spaces into _ to preserve them.- -->- <xsl:variable name="remainder" select="substring-after($dirs, ' ')"/>- <xsl:if test="$remainder">-<xsl:text>../</xsl:text>- <xsl:call-template name="dotdots">- <xsl:with-param name="path" select="translate($remainder, ' ', '/')"/>-<!-- Translate back to /'s because that's what the template expects. -->- </xsl:call-template>- </xsl:if>- </xsl:template>-<!--- Uncomment to test.- Usage: saxon dotdots.xsl dotdots.xsl path='/my/test/path'-- <xsl:param name="path"/>- <xsl:template match="/">- <xsl:message>Path: <xsl:value-of select="$path"/></xsl:message>- <xsl:call-template name="dotdots">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:template>- -->-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/html/pathutils.xsl b/lucene/site/src/documentation/skins/common/xslt/html/pathutils.xsldeleted file mode 100644index c1639a4b4f2..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/html/pathutils.xsl+++ /dev/null@@ -1,231 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">-<!---PathUtils.xsl--A set of XSLT templates useful for parsing URI paths:--dirname: return the directory part of a path-filename: return the file part of a path-ext: return the last extension of the filename in a path-filename-noext: return the file part of a path without its last extension---->-<!-- Returns the directory part of a path. Equivalent to Unix 'dirname'.-Examples:-'' -> ''-'foo/index.html' -> 'foo/'--->- <xsl:template name="dirname">- <xsl:param name="path" />- <xsl:if test="contains($path, '/')">- <xsl:value-of select="concat(substring-before($path, '/'), '/')" />- <xsl:call-template name="dirname">- <xsl:with-param name="path"- select="substring-after($path, '/')" />- </xsl:call-template>- </xsl:if>- </xsl:template>-<!-- Normalized (..'s eliminated) version of 'dirname' -->- <xsl:template name="dirname-nz">- <xsl:param name="path" />- <xsl:call-template name="normalize">- <xsl:with-param name="path">- <xsl:call-template name="dirname">- <xsl:with-param name="path" select="$path" />- </xsl:call-template>- </xsl:with-param>- </xsl:call-template>- </xsl:template>-<!-- Returns the filename part of a path. Equivalent to Unix 'basename'-Examples:-'index.html' -> 'index.html'-'foo/bar/' -> ''-'foo/bar/index.html' -> 'index.html'--->- <xsl:template name="filename">- <xsl:param name="path"/>- <xsl:choose>- <xsl:when test="contains($path, '/')">- <xsl:call-template name="filename">- <xsl:with-param name="path" select="substring-after($path, '/')"/>- </xsl:call-template>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="$path"/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-<!-- Returns the last extension of a filename in a path.-Examples:-'index.html' -> '.html'-'index.dtdx.html' -> '.html'-'foo/bar/' -> ''-'foo/bar/index.html' -> '.html'-'foo/bar/index' -> ''--->- <xsl:template name="ext">- <xsl:param name="path"/>- <xsl:param name="subflag"/>-<!-- Outermost call? -->- <xsl:choose>- <xsl:when test="contains($path, '.')">- <xsl:call-template name="ext">- <xsl:with-param name="path" select="substring-after($path, '.')"/>- <xsl:with-param name="subflag" select="'sub'"/>- </xsl:call-template>- </xsl:when>-<!-- Handle extension-less filenames by returning '' -->- <xsl:when test="not($subflag) and not(contains($path, '.'))">-<xsl:text/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="concat('.', $path)"/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-<!-- Returns a filename of a path stripped of its last extension.-Examples:-'foo/bar/index.dtdx.html' -> 'index.dtdx'--->- <xsl:template name="filename-noext">- <xsl:param name="path"/>- <xsl:variable name="filename">- <xsl:call-template name="filename">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:variable>- <xsl:variable name="ext">- <xsl:call-template name="ext">- <xsl:with-param name="path" select="$filename"/>- </xsl:call-template>- </xsl:variable>- <xsl:value-of select="substring($filename, 1, string-length($filename) - string-length($ext))"/>- </xsl:template>-<!-- Returns a path with the filename stripped of its last extension.-Examples:-'foo/bar/index.dtdx.html' -> 'foo/bar/index.dtdx'--->- <xsl:template name="path-noext">- <xsl:param name="path"/>- <xsl:variable name="ext">- <xsl:call-template name="ext">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:variable>- <xsl:value-of select="substring($path, 1, string-length($path) - string-length($ext))"/>- </xsl:template>-<!-- Normalized (..'s eliminated) version of 'path-noext' -->- <xsl:template name="path-noext-nz">- <xsl:param name="path" />- <xsl:call-template name="normalize">- <xsl:with-param name="path">- <xsl:call-template name="path-noext">- <xsl:with-param name="path" select="$path" />- </xsl:call-template>- </xsl:with-param>- </xsl:call-template>- </xsl:template>-<!-- Returns a path with any fragment identifier ('#...') stripped off-Examples:-'foo/bar/index.dtdx.html#blah' -> 'foo/bar/index.dtdx.html'--->- <xsl:template name="path-nofrag">- <xsl:param name="path"/>- <xsl:if test="not(contains($path, '#'))">- <xsl:value-of select="$path"/>- </xsl:if>- <xsl:if test="contains($path, '#')">- <xsl:value-of select="substring-before($path, '#')"/>- </xsl:if>- </xsl:template>-<!-- Normalizes a path, converting '/' to '\' and eliminating ..'s-Examples:-'foo/bar/../baz/index.html' -> foo/baz/index.html'--->- <xsl:template name="normalize">- <xsl:param name="path"/>-<!-- replace all \ with / -->- <xsl:variable name="path-" select="translate($path, '\', '/')"/>- <xsl:choose>-<!-- process relative refs here -->- <xsl:when test="contains($path-, '/../')">-<!-- put part before /../ into $pa: "foo/bar" -->- <xsl:variable name="pa" select="substring-before($path-, '/../')"/>-<!-- put part after first occurrence /../ into $th: "baz/index.html" -->- <xsl:variable name="th" select="substring-after($path-, '/../')"/>-<!-- cut last real directory name before /../ and put rest in $pa- : "foo/" -->- <xsl:variable name="pa-">- <xsl:call-template name="dirname">- <xsl:with-param name="path" select="$pa"/>- </xsl:call-template>- </xsl:variable>-<!-- recombine pieces thus eliminating one .. and one dir step before it- and recurse into this template to eliminate more /../- -->- <xsl:variable name="pa-th" select="concat($pa-, $th)"/>- <xsl:call-template name="normalize">- <xsl:with-param name="path" select="$pa-th"/>- </xsl:call-template>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="$path-"/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-<!---Uncomment this to test.-Usage: saxon pathutils.xsl pathutils.xsl path=foo/bar--<xsl:param name="path" select="'/foo/bar/../baz/index.html'"/>-<xsl:template match="/">- <xsl:message>- path = <xsl:value-of select="$path"/>- normalize = <xsl:call-template name="normalize">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- dirname = <xsl:call-template name="dirname">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- dirname-nz = <xsl:call-template name="dirname-nz">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- filename = <xsl:call-template name="filename">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- ext = <xsl:call-template name="ext">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- filename-noext = <xsl:call-template name="filename-noext">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- path-noext = <xsl:call-template name="path-noext">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- path-noext-nz = <xsl:call-template name="path-noext-nz">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- path-nofrag = <xsl:call-template name="path-nofrag">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>-- </xsl:message>-</xsl:template>--->-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/html/renderlogo.xsl b/lucene/site/src/documentation/skins/common/xslt/html/renderlogo.xsldeleted file mode 100644index 698156b9ba2..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/html/renderlogo.xsl+++ /dev/null@@ -1,67 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<!---A simple callable template that renders a logo for an entity. The logo will-be a hyperlink and may include an image (with width and height if specified)-or else it will just include the specified text.--Note that text and image are mandatory parts of the template.--->-<xsl:stylesheet- version="1.0"- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:template name="renderlogo">- <xsl:param name="name"/>- <xsl:param name="url"/>- <xsl:param name="logo"/>- <xsl:param name="width"/>- <xsl:param name="height"/>- <xsl:param name="root"/>- <xsl:param name="description"/><a href="{$url}">- <xsl:choose>- <xsl:when test="$logo and not($logo = '')">- <img alt="{$name}" class="logoImage">- <xsl:attribute name="src">- <xsl:if test="not(starts-with($logo, 'http://'))">- <xsl:value-of select="$root"/>- </xsl:if>- <xsl:value-of select="$logo"/>- </xsl:attribute>- <xsl:if test="$width">- <xsl:attribute name="width">- <xsl:value-of select="$width"/>- </xsl:attribute>- </xsl:if>- <xsl:if test="$height">- <xsl:attribute name="height">- <xsl:value-of select="$height"/>- </xsl:attribute>- </xsl:if>- <xsl:if test="$description">- <xsl:attribute name="title">- <xsl:value-of select="$description"/>- </xsl:attribute>- </xsl:if>- </img>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="$name"/>- </xsl:otherwise>- </xsl:choose></a>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/html/site-to-xhtml.xsl b/lucene/site/src/documentation/skins/common/xslt/html/site-to-xhtml.xsldeleted file mode 100644index 2f8b15cd399..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/html/site-to-xhtml.xsl+++ /dev/null@@ -1,388 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<!---site-to-xhtml.xsl is the final stage in HTML page production. It merges HTML from-document-to-html.xsl, tab-to-menu.xsl and book-to-menu.xsl, and adds the site header,-footer, searchbar, css etc. As input, it takes XML of the form:--<site>- <div class="menu">- ...- </div>- <div class="tab">- ...- </div>- <div class="content">- ...- </div>-</site>---->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"- xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java">- <xsl:variable name="config" select="//skinconfig"/>-<!-- If true, a txt link for this page will not be generated -->- <xsl:variable name="disable-txt-link" select="//skinconfig/disable-txt-link"/>-<!-- If true, a PDF link for this page will not be generated -->- <xsl:variable name="disable-pdf-link" select="//skinconfig/disable-pdf-link"/>-<!-- If true, a "print" link for this page will not be generated -->- <xsl:variable name="disable-print-link" select="//skinconfig/disable-print-link"/>-<!-- If true, an XML link for this page will not be generated -->- <xsl:variable name="disable-xml-link" select="//skinconfig/disable-xml-link"/>-<!-- If true, a POD link for this page will not be generated -->- <xsl:variable name="disable-pod-link" select="//skinconfig/disable-pod-link"/>-<!-- Get the location where to generate the minitoc -->- <xsl:variable name="minitoc-location" select="//skinconfig/toc/@location"/>- <xsl:param name="path"/>- <xsl:include href="dotdots.xsl"/>- <xsl:include href="pathutils.xsl"/>- <xsl:include href="renderlogo.xsl"/>-<!-- Path (..'s) to the root directory -->- <xsl:variable name="root">- <xsl:call-template name="dotdots">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:variable>-<!-- Source filename (eg 'foo.xml') of current page -->- <xsl:variable name="filename">- <xsl:call-template name="filename">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:variable>-<!-- Path of Lucene search results page (relative to $root) -->- <xsl:param name="lucene-search" select="'lucene-search.html'"/>- <xsl:variable name="filename-noext">- <xsl:call-template name="filename-noext">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:variable>-<!-- Whether to obfuscate email links -->- <xsl:variable name="obfuscate-mail-links" select="//skinconfig/obfuscate-mail-links"/>-<!-- If true, the font size script will not be rendered -->- <xsl:variable name="disable-font-script" select="//skinconfig/disable-font-script"/>-<!-- If true, an the images on all external links will not be added -->- <xsl:variable name="disable-external-link-image" select="//skinconfig/disable-external-link-image"/>- <xsl:variable name="skin-img-dir" select="concat(string($root), 'skin/images')"/>- <xsl:variable name="spacer" select="concat($root, 'skin/images/spacer.gif')"/>- <xsl:template name="breadcrumbs">- <xsl:if test="(//skinconfig/trail/link1/@name)and(//skinconfig/trail/link1/@name!='')"><a href="{//skinconfig/trail/link1/@href}">- <xsl:value-of select="//skinconfig/trail/link1/@name"/></a>- </xsl:if>- <xsl:if test="(//skinconfig/trail/link2/@name)and(//skinconfig/trail/link2/@name!='')"> > <a href="{//skinconfig/trail/link2/@href}">- <xsl:value-of select="//skinconfig/trail/link2/@name"/></a>- </xsl:if>- <xsl:if test="(//skinconfig/trail/link3/@name)and(//skinconfig/trail/link3/@name!='')"> > <a href="{//skinconfig/trail/link3/@href}">- <xsl:value-of select="//skinconfig/trail/link3/@name"/></a>- </xsl:if>-<script type="text/javascript" language="JavaScript" src="{$root}skin/breadcrumbs.js"/>- </xsl:template>- <xsl:template match="site">- <html>- <head>- <title><xsl:value-of select="div[@class='content']/table/tr/td/h1"/></title>- <xsl:if test="//skinconfig/favicon-url"><link rel="shortcut icon">- <xsl:attribute name="href">- <xsl:value-of select="concat($root,//skinconfig/favicon-url)"/>- </xsl:attribute></link>- </xsl:if>- </head>- <body>- <xsl:if test="//skinconfig/group-url">- <xsl:call-template name="renderlogo">- <xsl:with-param name="name" select="//skinconfig/group-name"/>- <xsl:with-param name="url" select="//skinconfig/group-url"/>- <xsl:with-param name="logo" select="//skinconfig/group-logo"/>- <xsl:with-param name="root" select="$root"/>- <xsl:with-param name="description" select="//skinconfig/group-description"/>- </xsl:call-template>- </xsl:if>- <xsl:call-template name="renderlogo">- <xsl:with-param name="name" select="//skinconfig/project-name"/>- <xsl:with-param name="url" select="//skinconfig/project-url"/>- <xsl:with-param name="logo" select="//skinconfig/project-logo"/>- <xsl:with-param name="root" select="$root"/>- <xsl:with-param name="description" select="//skinconfig/project-description"/>- </xsl:call-template>- <xsl:comment>================= start Tabs ==================</xsl:comment>- <xsl:apply-templates select="div[@class='tab']"/>- <xsl:comment>================= end Tabs ==================</xsl:comment>- <xsl:comment>================= start Menu items ==================</xsl:comment>- <xsl:apply-templates select="div[@class='menu']"/>- <xsl:comment>================= end Menu items ==================</xsl:comment>- <xsl:comment>================= start Content==================</xsl:comment>- <xsl:apply-templates select="div[@class='content']"/>- <xsl:comment>================= end Content==================</xsl:comment>- <xsl:comment>================= start Footer ==================</xsl:comment>- <xsl:choose>- <xsl:when test="$config/copyright-link"><a>- <xsl:attribute name="href">- <xsl:value-of select="$config/copyright-link"/>- </xsl:attribute>- Copyright © <xsl:value-of select="$config/year"/>- <xsl:call-template name="current-year">- <xsl:with-param name="copyrightyear" select="$config/year"/>- </xsl:call-template> - <xsl:value-of select="$config/vendor"/></a>- </xsl:when>- <xsl:otherwise>- Copyright © <xsl:value-of select="$config/year"/>- <xsl:call-template name="current-year">- <xsl:with-param name="copyrightyear" select="$config/year"/>- </xsl:call-template> - <xsl:value-of select="$config/vendor"/>- </xsl:otherwise>- </xsl:choose>- All rights reserved.- <script language="JavaScript" type="text/javascript"><![CDATA[<!--- document.write(" - "+"Last Published: " + document.lastModified);- // -->]]></script>- <xsl:if test="//skinconfig/host-logo and not(//skinconfig/host-logo = '')"><a href="{//skinconfig/host-url}">- <xsl:call-template name="renderlogo">- <xsl:with-param name="name" select="//skinconfig/host-name"/>- <xsl:with-param name="url" select="//skinconfig/host-url"/>- <xsl:with-param name="logo" select="//skinconfig/host-logo"/>- <xsl:with-param name="root" select="$root"/>- </xsl:call-template></a>- </xsl:if>- <xsl:if test="$filename = 'index.html' and //skinconfig/credits">- <xsl:for-each select="//skinconfig/credits/credit[not(@role='pdf')]">- <xsl:call-template name="renderlogo">- <xsl:with-param name="name" select="name"/>- <xsl:with-param name="url" select="url"/>- <xsl:with-param name="logo" select="image"/>- <xsl:with-param name="root" select="$root"/>- <xsl:with-param name="width" select="width"/>- <xsl:with-param name="height" select="height"/>- </xsl:call-template>- </xsl:for-each>- </xsl:if><a href="http://validator.w3.org/check/referer">- <img class="skin" border="0"- src="http://www.w3.org/Icons/valid-html401"- alt="Valid HTML 4.01!" height="31" width="88"/></a>- </body>- </html>- </xsl:template>-<!-- Add links to any standards-compliance logos -->- <xsl:template name="compliancy-logos">- <xsl:if test="$filename = 'index.html' and //skinconfig/disable-compliance-links = 'false'"><a href="http://validator.w3.org/check/referer">- <img class="logoImage"- src="{$skin-img-dir}/valid-html401.png"- alt="Valid HTML 4.01!" title="Valid HTML 4.01!" height="31" width="88" border="0"/></a><a href="http://jigsaw.w3.org/css-validator/check/referer">- <img class="logoImage"- src="{$skin-img-dir}/vcss.png"- alt="Valid CSS!" title="Valid CSS!" height="31" width="88" border="0"/></a>- </xsl:if>- </xsl:template>-<!-- Generates the PDF link -->- <xsl:template match="div[@id='skinconf-pdflink']">- <xsl:if test="not($config/disable-pdf-link) or $disable-pdf-link = 'false'">- <td align="center" width="40" nowrap="nowrap"><a href="{$filename-noext}.pdf" class="dida">- <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF"/>- <br/>- PDF</a>- </td>- </xsl:if>- </xsl:template>-<!-- Generates the TXT link -->- <xsl:template match="div[@id='skinconf-txtlink']">- <xsl:if test="$disable-txt-link = 'false'">- <td align="center" width="40" nowrap="nowrap"><a href="{$filename-noext}.txt" class="dida">- <img class="skin" src="{$skin-img-dir}/txtdoc.png" alt="TXT"/>- <br/>- TXT</a>- </td>- </xsl:if>- </xsl:template>-<!-- Generates the POD link -->- <xsl:template match="div[@id='skinconf-podlink']">- <xsl:if test="$disable-pod-link = 'false'">- <td align="center" width="40" nowrap="nowrap"><a href="{$filename-noext}.pod" class="dida">- <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD"/>- <br/>- POD</a>- </td>- </xsl:if>- </xsl:template>-<!-- Generates the XML link -->- <xsl:template match="div[@id='skinconf-xmllink']">- <xsl:if test="$disable-xml-link = 'false'">- <td align="center" width="40" nowrap="nowrap"><a href="{$filename-noext}.xml" class="dida">- <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML"/>- <br/>- XML</a>- </td>- </xsl:if>- </xsl:template>-<!-- Generates the "printer friendly version" link -->- <xsl:template match="div[@id='skinconf-printlink']">- <xsl:if test="$disable-print-link = 'false'">-<script type="text/javascript" language="Javascript">-function printit() {- if (window.print) {- window.focus();- window.print();- }-}--var NS = (navigator.appName == "Netscape");-var VERSION = parseInt(navigator.appVersion);-if (VERSION > 3) {- document.write('<td align="center" width="40" nowrap="nowrap">');- document.write(' <a href="javascript:printit()" class="dida">');- document.write(' <img class="skin" src="{$skin-img-dir}/printer.gif" alt="Print this Page"/><br />');- document.write(' print</a>');- document.write('</td>');-}-</script>- </xsl:if>- </xsl:template>-<!-- handle all obfuscating mail links and disabling external link images -->- <xsl:template match="a">- <xsl:choose>- <xsl:when test="$obfuscate-mail-links='true' and starts-with(@href, 'mailto:') and contains(@href, '@')">- <xsl:variable name="mailto-1" select="substring-before(@href,'@')"/>- <xsl:variable name="mailto-2" select="substring-after(@href,'@')"/>- <xsl:variable name="obfuscation" select="normalize-space(//skinconfig/obfuscate-mail-value)"/><a href="{$mailto-1}{$obfuscation}{$mailto-2}">- <xsl:apply-templates/></a>- </xsl:when>- <xsl:when test="not($disable-external-link-image='true') and contains(@href, ':') and not(contains(@href, //skinconfig/group-url)) and not(contains(@href, //skinconfig/project-url))"><a href="{@href}" class="external">- <xsl:apply-templates/></a>- </xsl:when>- <xsl:otherwise>-<!-- xsl:copy-of makes sure we copy <a href> as well as <a name>- or any other <a ...> forms -->- <xsl:copy-of select="."/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>- <xsl:template match="div[@id='skinconf-toc-page']">- <xsl:if test="$config/toc">- <xsl:if test="contains($minitoc-location,'page')">- <xsl:if test="(count(//tocitems/tocitem) >= $config/toc/@min-sections) or (//tocitems/@force = 'true')">- <xsl:call-template name="minitoc">- <xsl:with-param name="tocroot" select="//tocitems"/>- </xsl:call-template>- </xsl:if>- </xsl:if>- </xsl:if>- </xsl:template>- <xsl:template name="minitoc">- <xsl:param name="tocroot"/>- <xsl:if test="(count($tocroot/tocitem) >= $config/toc/@min-sections) or ($tocroot/@force = 'true')">- <xsl:if test="contains($config/toc/@location,'page')">- <ul class="minitoc">- <xsl:for-each select="$tocroot/tocitem">- <li><a href="{@href}">- <xsl:value-of select="@title"/></a>- <xsl:if test="@level<//skinconfig/toc/@max-depth+1">- <xsl:call-template name="minitoc">- <xsl:with-param name="tocroot" select="."/>- </xsl:call-template>- </xsl:if></li>- </xsl:for-each>- </ul>- </xsl:if>- </xsl:if>- </xsl:template>- <xsl:template name="html-meta">- <meta name="Generator" content="Apache Forrest"/>- <meta name="Forrest-version">- <xsl:attribute name="content">- <xsl:value-of select="//info/forrest-version"/>- </xsl:attribute>- </meta>- <meta name="Forrest-skin-name">- <xsl:attribute name="content">- <xsl:value-of select="//info/project-skin"/>- </xsl:attribute>- </meta>- </xsl:template>-<!-- meta information from v 2.0 documents- FIXME: the match is really inefficient -->- <xsl:template name="meta-data">- <xsl:for-each select="//meta-data/meta">- <xsl:element name="meta">- <xsl:attribute name="name">- <xsl:value-of select="@name"/>- </xsl:attribute>- <xsl:attribute name="content">- <xsl:value-of select="."/>- </xsl:attribute>- <xsl:if test="@xml:lang">- <xsl:attribute name="lang">- <xsl:value-of select="@xml:lang"/>- </xsl:attribute>- </xsl:if>- </xsl:element>- </xsl:for-each>- </xsl:template>- <xsl:template name="feedback">- <div id="feedback">- <xsl:value-of select="$config/feedback"/>- <xsl:choose>- <xsl:when test="$config/feedback/@href and not($config/feedback/@href='')"><a id="feedbackto">- <xsl:attribute name="href">- <xsl:value-of select="$config/feedback/@href"/>- <xsl:value-of select="$path"/>- </xsl:attribute>- <xsl:value-of select="$config/feedback/@to"/></a>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="$config/feedback/@to"/>- </xsl:otherwise>- </xsl:choose>- </div>- </xsl:template>- <xsl:template match="node()|@*" priority="-1">- <xsl:copy>- <xsl:apply-templates select="@*"/>- <xsl:apply-templates/>- </xsl:copy>- </xsl:template>-<!-- inception year copyright management -->- <xsl:template name="current-year">-<!-- Displays the current year after the inception year (in the copyright i.e: 2002-2005)- - the copyright year (2005 by default) can be indicated in the copyrightyear parameter,- - the year format (yyyy by default) can be indicated in the dateformat parameter,- - the dates separator (- by default) can be indicated in the dateseparator parameter.- For instance the following call will format the year on 2 digits and separates the dates- with /- (copyright 02/05)- <xsl:call-template name="current-year">- <xsl:with-param name="copyrightyear" select="'02'"/>- <xsl:with-param name="dateformat" select="'yy'"/>- <xsl:with-param name="dateseparator" select="'/'"/>- </xsl:call-template>- Warning, to enable inception year, inception attribute must be set to "true" in copyright/year/@inception- -->- <xsl:param name="copyrightyear">2005</xsl:param>- <xsl:param name="dateformat">yyyy</xsl:param>- <xsl:param name="dateseparator">-</xsl:param>- <xsl:if test="$copyrightyear[@inception = 'true']">- <xsl:variable name="tz" select='java:java.util.SimpleTimeZone.new(0,"GMT+00:00")' />- <xsl:variable name="formatter" select="java:java.text.SimpleDateFormat.new($dateformat)"/>- <xsl:variable name="settz" select="java:setTimeZone($formatter, $tz)" />- <xsl:variable name="date" select="java:java.util.Date.new()"/>- <xsl:variable name="year" select="java:format($formatter, $date)"/>- <xsl:if test="$copyrightyear != $year">- <xsl:value-of select="$dateseparator"/>- <xsl:value-of select="$year"/>- </xsl:if>- </xsl:if>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/html/split.xsl b/lucene/site/src/documentation/skins/common/xslt/html/split.xsldeleted file mode 100644index 14c88e72cb4..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/html/split.xsl+++ /dev/null@@ -1,124 +0,0 @@-<?xml version="1.0"?>-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">-<!--- This stylesheet was taken from the XSLT FAQ http://www.dpawson.co.uk/xsl/-- Comments and adaption to be used without normalize-space()- by [email protected]--->-<!--- Input:--<doc>--<para>- 123456 2345 343434 545454 43434 343- 12345 343434 545454 43434 343- 32345645 343434 545454 43434 343- 3422222225 343434 545454 43434 343- llllllllllllllllllllllooooooooooooooonnnnnnnnnnnggggggggg- 345 343434 545454 43434 343-</para>--</doc>--Output:--<HTML>-<BODY>-<PRE>123456 2345 343434 545454-43434 343 12345 343434 545454-43434 343 32345645 343434-545454 43434 343 3422222225-343434 545454 43434 343-lllllllllllllllllllllloooooooo-ooooooonnnnnnnnnnnggggggggg-345 343434 545454 43434-343-</PRE>-</BODY>-</HTML>--Fragment ised:-- <xsl:template match="/doc">- <HTML><BODY><PRE>- <xsl:call-template name="format">- <xsl:with-param select="normalize-space(para)" name="txt" />- <xsl:with-param name="width">30</xsl:with-param>- </xsl:call-template>- </PRE></BODY></HTML>- </xsl:template>----->- <xsl:template match="/body">- <body>- <xsl:call-template name="format">- <xsl:with-param select="source" name="txt" />- <xsl:with-param name="width">40</xsl:with-param>- </xsl:call-template>- </body>- </xsl:template>- <xsl:template name="format">- <xsl:param name="txt" />- <xsl:param name="width" />-<!-- if there is still text left -->- <xsl:if test="$txt">- <xsl:variable name = "pretxt" select = "substring($txt,0, $width)" />- <xsl:choose>- <xsl:when test="contains($pretxt, '
')">- <xsl:value-of select="substring-before($pretxt, '
')"/>-<xsl:text>
</xsl:text>- <xsl:call-template name="format">- <xsl:with-param name="txt" select="substring-after($txt,'
')"/>- <xsl:with-param select="$width" name="width" />- </xsl:call-template>- </xsl:when>- <xsl:otherwise>-<!-- get the width at which to break-->- <xsl:variable name="real-width">- <xsl:call-template name="tune-width">- <xsl:with-param select="$txt" name="txt" />- <xsl:with-param select="$width" name="width" />- <xsl:with-param select="$width" name="def" />- </xsl:call-template>- </xsl:variable>-<!-- output the first part of the broken string -->- <xsl:value-of select="substring($txt, 1, $real-width)" />-<!-- output a newline -->-<xsl:text>
</xsl:text>-<!-- call itself with the remaining part of the text -->- <xsl:call-template name="format">- <xsl:with-param select="substring($txt,$real-width + 1)" name="txt" />- <xsl:with-param select="$width" name="width" />- </xsl:call-template>- </xsl:otherwise>- </xsl:choose>- </xsl:if>- </xsl:template>-<!-- used by template "format", it calculates the width at the given def-- It starts at def length and comes back till it finds a space -->- <xsl:template name="tune-width">- <xsl:param name="txt" />- <xsl:param name="width" />- <xsl:param name="def" />- <xsl:choose>- <xsl:when test="$width = 0">- <xsl:value-of select="$def" />- </xsl:when>- <xsl:when test="substring($txt, $width, 1 ) = ' '">- <xsl:value-of select="$width" />- </xsl:when>- <xsl:otherwise>-<!-- otherwise need to tune again, trying with $width - 1 -->- <xsl:call-template name="tune-width">- <xsl:with-param select="$width - 1" name="width" />- <xsl:with-param select="$txt" name="txt" />- <xsl:with-param select="$def" name="def" />- </xsl:call-template>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/html/strip_namespaces.xsl b/lucene/site/src/documentation/skins/common/xslt/html/strip_namespaces.xsldeleted file mode 100644index 47dec6a1788..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/html/strip_namespaces.xsl+++ /dev/null@@ -1,39 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">-<!-- FIXME: FOR-555. This might not be the best solution though, but it sure works -->- <xsl:template match="comment()|processing-instruction()">- <xsl:copy>- <xsl:apply-templates select="@*|*|text()|processing-instruction()|comment()"/>- </xsl:copy>- </xsl:template>-<!-- End fixme FOR-555 -->- <xsl:template match="*">-<!-- remove element prefix (if any) -->- <xsl:element name="{local-name()}">-<!-- process attributes -->- <xsl:for-each select="@*">-<!-- remove attribute prefix (if any) -->- <xsl:attribute name="{local-name()}">- <xsl:value-of select="."/>- </xsl:attribute>- </xsl:for-each>- <xsl:apply-templates/>- </xsl:element>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/html/tab-to-menu.xsl b/lucene/site/src/documentation/skins/common/xslt/html/tab-to-menu.xsldeleted file mode 100644index 257d2919f70..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/html/tab-to-menu.xsl+++ /dev/null@@ -1,195 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<!---This stylesheet generates 'tabs' at the top left of the screen. Tabs are-visual indicators that a certain subsection of the URI space is being browsed.-For example, if we had tabs with paths:--Tab1: ''-Tab2: 'community'-Tab3: 'community/howto'-Tab4: 'community/howto/xmlform/index.html'--Then if the current path was 'community/howto/foo', Tab3 would be highlighted.-The rule is: the tab with the longest path that forms a prefix of the current-path is enabled.--The output of this stylesheet is HTML of the form:- <div class="tab">- ...- </div>--which is then merged by site-to-xhtml.xsl---->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">-<!-- ================================================================ -->-<!-- These templates SHOULD be overridden -->-<!-- ================================================================ -->-<!-- Called before first level 1 tag -->- <xsl:template name="pre-separator"></xsl:template>-<!-- Called after last level 1 tag -->- <xsl:template name="post-separator"></xsl:template>-<!-- Called between level 1 tags -->- <xsl:template name="separator">-<xsl:text> | </xsl:text>- </xsl:template>-<!-- Called before first level 2 tag -->- <xsl:template name="level2-pre-separator"></xsl:template>-<!-- Called after last level 2 tag -->- <xsl:template name="level2-post-separator"></xsl:template>-<!-- Called between level 2 tags -->- <xsl:template name="level2-separator">-<xsl:text> | </xsl:text>- </xsl:template>-<!--- Note: sub-stylesheets can't do apply-imports here, because it would choose- the 'tags' template and infinitely recurse. Hence call-template used instead.- -->-<!-- Display a selected level 1 tab node -->- <xsl:template name="selected">- <xsl:call-template name="base-selected"/>- </xsl:template>-<!-- Display an unselected level 1 tab node -->- <xsl:template name="not-selected">- <xsl:call-template name="base-not-selected"/>- </xsl:template>-<!-- Display a selected second level tab node -->- <xsl:template name="level2-selected">- <xsl:call-template name="base-selected"/>- </xsl:template>-<!-- Display an unselected second level tab node -->- <xsl:template name="level2-not-selected">- <xsl:call-template name="base-not-selected"/>- </xsl:template>-<!-- ================================================================ -->-<!-- These templates CAN be overridden -->-<!-- ================================================================ -->- <xsl:template match="tabs">- <div class="tab">- <xsl:call-template name="base-tabs"/>- </div>- </xsl:template>-<!-- ================================================================ -->-<!-- These templates SHOULD NOT be overridden -->-<!-- ================================================================ -->- <xsl:param name="path"/>- <xsl:include href="dotdots.xsl"/>- <xsl:include href="tabutils.xsl"/>-<!-- NOTE: Xalan has a bug (race condition?) where sometimes $root is only half-evaluated -->- <xsl:variable name="root">- <xsl:call-template name="dotdots">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:variable>- <xsl:variable name="skin-img-dir" select="concat(string($root), 'skin/images')"/>-<!--- The longest path of any level 1 tab, whose path is a subset of the current URL. Ie,- the path of the 'current' level 1 tab.- -->- <xsl:variable name="longest-dir">- <xsl:call-template name="longest-dir">- <xsl:with-param name="tabfile" select="/"/>- </xsl:call-template>- </xsl:variable>-<!--- The longest path of any level 2 tab, whose path is a subset of the current URL. Ie,- the path of the 'current' level 2 tab.- -->- <xsl:variable name="level2-longest-dir">- <xsl:call-template name="level2-longest-dir">- <xsl:with-param name="tabfile" select="/"/>- </xsl:call-template>- </xsl:variable>- <xsl:variable name="matching-id">- <xsl:call-template name="matching-id"/>- </xsl:variable>-<!-- Called from tabs, after it has written the outer 'div class=tabs' and- any other HTML -->- <xsl:template name="base-tabs">- <xsl:call-template name="pre-separator"/>- <xsl:for-each select="tab">- <xsl:if test="position()!=1">- <xsl:call-template name="separator"/>- </xsl:if>- <xsl:apply-templates select="." mode="level1"/>- </xsl:for-each>- <xsl:call-template name="post-separator"/>- </xsl:template>-<!-- Called from tabs, after it has written the outer 'div class=tabs' and- any other HTML -->- <xsl:template name="level2tabs">- <xsl:call-template name="level2-pre-separator"/>- <xsl:for-each select="tab[@dir=$longest-dir]/tab|tab[@href=$longest-dir]/tab|tab[tab/@id=$matching-id]/tab">- <xsl:if test="position()!=1">- <xsl:call-template name="level2-separator"/>- </xsl:if>- <xsl:apply-templates select="." mode="level2"/>- </xsl:for-each>- <xsl:call-template name="level2-post-separator"/>- </xsl:template>- <xsl:template match="tab" mode="level1">- <xsl:choose>- <xsl:when test="@id and @id = $matching-id">- <xsl:call-template name="selected"/>- </xsl:when>- <xsl:when test="not(@id) and @dir = $longest-dir or @href = $longest-dir">- <xsl:call-template name="selected"/>- </xsl:when>- <xsl:when test="tab[@id = $matching-id]">- <xsl:call-template name="selected"/>- </xsl:when>- <xsl:otherwise>- <xsl:call-template name="not-selected"/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>- <xsl:template match="tab" mode="level2">- <xsl:choose>- <xsl:when test="@id and @id = $matching-id">- <xsl:call-template name="level2-selected"/>- </xsl:when>- <xsl:when test="@dir = $level2-longest-dir">- <xsl:call-template name="level2-selected"/>- </xsl:when>- <xsl:otherwise>- <xsl:call-template name="level2-not-selected"/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-<!-- Called from 'selected' -->- <xsl:template name="base-selected"><a class="selected">- <xsl:attribute name="href">- <xsl:call-template name="calculate-tab-href">- <xsl:with-param name="tab" select="."/>- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:attribute>- <xsl:value-of select="@label"/></a>- </xsl:template>-<!-- Called from 'not-selected' -->- <xsl:template name="base-not-selected"><a class="unselected">- <xsl:attribute name="href">- <xsl:call-template name="calculate-tab-href">- <xsl:with-param name="tab" select="."/>- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>- </xsl:attribute>- <xsl:value-of select="@label"/></a>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/html/tabutils.xsl b/lucene/site/src/documentation/skins/common/xslt/html/tabutils.xsldeleted file mode 100644index 0caaaf4c81f..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/html/tabutils.xsl+++ /dev/null@@ -1,98 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<!---Some callable templates useful when dealing with tab paths. Mostly used in-tab-to-menu.xsl--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:param name="site-file" select="'cocoon://abs-menulinks'"/>- <xsl:variable name="site" select="document($site-file)"/>-<!-- Given the current path and a tabs.xml entry, returns a relative path to- the specified tab's URL. When rendering a set of tabs, this template will be- called once per tab.- -->- <xsl:template name="calculate-tab-href">- <xsl:param name="dir_index" select="'index.html'"/>- <xsl:param name="tab"/>-<!-- current 'tab' node -->- <xsl:param name="path" select="$path"/>- <xsl:if test="starts-with($tab/@href, 'http')">-<!-- Absolute URL -->- <xsl:value-of select="$tab/@href"/>- </xsl:if>- <xsl:if test="not(starts-with($tab/@href, 'http'))">-<!-- Root-relative path -->- <xsl:variable name="backpath">- <xsl:call-template name="dotdots">- <xsl:with-param name="path" select="$path"/>- </xsl:call-template>-<xsl:text>/</xsl:text>- <xsl:value-of select="$tab/@dir | $tab/@href"/>-<!-- If we obviously have a directory, add /index.html -->- <xsl:if test="$tab/@dir or substring($tab/@href, string-length($tab/@href),- string-length($tab/@href)) = '/'">-<xsl:text>/</xsl:text>- <xsl:if test="$tab/@indexfile">- <xsl:value-of select="$tab/@indexfile"/>- </xsl:if>- <xsl:if test="not(@indexfile)">- <xsl:value-of select="$dir_index"/>- </xsl:if>- </xsl:if>- </xsl:variable>- <xsl:value-of- select="translate(normalize-space(translate($backpath, ' /', '/ ')), ' /', '/ ')"/>-<!-- Link to backpath, normalizing slashes -->- </xsl:if>- </xsl:template>-<!--- The id of any tab, whose path is a subset of the current URL. Ie,- the path of the 'current' tab.- -->- <xsl:template name="matching-id" xmlns:l="http://apache.org/forrest/linkmap/1.0">- <xsl:value-of select="$site//*[starts-with(@href, $path)]/@tab"/>- </xsl:template>-<!--- The longest path of any level 1 tab, whose path is a subset of the current URL. Ie,- the path of the 'current' tab.- -->- <xsl:template name="longest-dir">- <xsl:param name="tabfile"/>- <xsl:for-each select="$tabfile/tabs/tab[starts-with($path, @dir|@href)]">- <xsl:sort select="string-length(@dir|@href)"- data-type="number" order="descending"/>- <xsl:if test="position()=1">- <xsl:value-of select="@dir|@href"/>- </xsl:if>- </xsl:for-each>- </xsl:template>-<!--- The longest path of any level 2 tab, whose path is a subset of the current URL. Ie,- the path of the 'current' tab.- -->- <xsl:template name="level2-longest-dir">- <xsl:param name="tabfile"/>- <xsl:for-each select="$tabfile/tabs/tab/tab[starts-with($path, @dir|@href)]">- <xsl:sort select="string-length(@dir|@href)"- data-type="number" order="descending"/>- <xsl:if test="position()=1">- <xsl:value-of select="@dir|@href"/>- </xsl:if>- </xsl:for-each>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/common/xslt/svg/document-to-svg.xsl b/lucene/site/src/documentation/skins/common/xslt/svg/document-to-svg.xsldeleted file mode 100644index 08ca5ba1b7a..00000000000--- a/lucene/site/src/documentation/skins/common/xslt/svg/document-to-svg.xsl+++ /dev/null@@ -1,45 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >- <xsl:output method="xml" media-type="image/svg" omit-xml-declaration="yes" indent="yes"/>-<!-- the skinconf file -->- <xsl:param name="config-file"/>- <xsl:variable name="config" select="document($config-file)/skinconfig"/>-<!-- Get the section depth to use when generating the minitoc (default is 2) -->- <xsl:variable name="toc-max-depth" select="number($config/toc/@max-depth)"/>- <xsl:param name="numbersections" select="'true'"/>-<!-- Section depth at which we stop numbering and just indent -->- <xsl:param name="numbering-max-depth" select="'3'"/>- <xsl:param name="ctxbasedir" select="."/>- <xsl:param name="xmlbasedir"/>- <xsl:template match="/">- <svg width="1305" height="1468" xmlns="http://www.w3.org/2000/svg">- <g transform="translate(0 0)">- <xsl:apply-templates/>- </g>- </svg>- </xsl:template>- <xsl:template match="document">- <text x="00px" y="30px" style="font-size:20;">- <xsl:value-of select="header/title"/>- </text>- <text x="0px" y="50px" style="font-size:12;">- <xsl:apply-templates/>- </text>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/lucene/css/basic.css b/lucene/site/src/documentation/skins/lucene/css/basic.cssdeleted file mode 100644index 4ed58b99ae7..00000000000--- a/lucene/site/src/documentation/skins/lucene/css/basic.css+++ /dev/null@@ -1,166 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-/**- * General- */--img { border: 0; }--#content table {- border: 0;- width: 100%;-}-/*Hack to get IE to render the table at 100%*/-* html #content table { margin-left: -3px; }--#content th,-#content td {- margin: 0;- padding: 0;- vertical-align: top;-}--.clearboth {- clear: both;-}--.note, .warning, .fixme {- border: solid black 1px;- margin: 1em 3em;-}--.note .label {- background: #369;- color: white;- font-weight: bold;- padding: 5px 10px;-}-.note .content {- background: #F0F0FF;- color: black;- line-height: 120%;- font-size: 90%;- padding: 5px 10px;-}-.warning .label {- background: #C00;- color: white;- font-weight: bold;- padding: 5px 10px;-}-.warning .content {- background: #FFF0F0;- color: black;- line-height: 120%;- font-size: 90%;- padding: 5px 10px;-}-.fixme .label {- background: #C6C600;- color: black;- font-weight: bold;- padding: 5px 10px;-}-.fixme .content {- padding: 5px 10px;-}--/**- * Typography- */--body {- font-family: verdana, "Trebuchet MS", arial, helvetica, sans-serif;- font-size: 100%;-}--#content {- font-family: Georgia, Palatino, Times, serif;- font-size: 95%;-}-#tabs {- font-size: 70%;-}-#menu {- font-size: 80%;-}-#footer {- font-size: 70%;-}--h1, h2, h3, h4, h5, h6 {- font-family: "Trebuchet MS", verdana, arial, helvetica, sans-serif;- font-weight: bold;- margin-top: 1em;- margin-bottom: .5em;-}--h1 {- margin-top: 0;- margin-bottom: 1em;- font-size: 1.4em;-}-#content h1 {- font-size: 160%;- margin-bottom: .5em;-}-#menu h1 {- margin: 0;- padding: 10px;- background: #336699;- color: white;-}-h2 { font-size: 120%; }-h3 { font-size: 100%; }-h4 { font-size: 90%; }-h5 { font-size: 80%; }-h6 { font-size: 75%; }--p {- line-height: 120%;- text-align: left;- margin-top: .5em;- margin-bottom: 1em;-}--#content li,-#content th,-#content td,-#content li ul,-#content li ol{- margin-top: .5em;- margin-bottom: .5em;-}---#content li li,-#minitoc-area li{- margin-top: 0em;- margin-bottom: 0em;-}--#content .attribution {- text-align: right;- font-style: italic;- font-size: 85%;- margin-top: 1em;-}--.codefrag {- font-family: "Courier New", Courier, monospace;- font-size: 110%;-}diff --git a/lucene/site/src/documentation/skins/lucene/css/print.css b/lucene/site/src/documentation/skins/lucene/css/print.cssdeleted file mode 100644index 8916b9fc01e..00000000000--- a/lucene/site/src/documentation/skins/lucene/css/print.css+++ /dev/null@@ -1,54 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-body {- font-family: Georgia, Palatino, serif;- font-size: 12pt;- background: white;-}--#tabs,-#menu,-#content .toc {- display: none;-}--#content {- width: auto;- padding: 0;- float: none !important;- color: black;- background: inherit;-}--a:link, a:visited {- color: #336699;- background: inherit;- text-decoration: underline;-}--#top .logo {- padding: 0;- margin: 0 0 2em 0;-}--#footer {- margin-top: 4em;-}--acronym {- border: 0;-}diff --git a/lucene/site/src/documentation/skins/lucene/css/profile.css.xslt b/lucene/site/src/documentation/skins/lucene/css/profile.css.xsltdeleted file mode 100644index a1dcb23e49c..00000000000--- a/lucene/site/src/documentation/skins/lucene/css/profile.css.xslt+++ /dev/null@@ -1,182 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:import href="../../common/css/forrest.css.xslt"/>-<!-- xsl:output is not used by Forrest but makes it possible to debug the- stylesheet in standalone editors -->- <xsl:output method = "text" omit-xml-declaration="yes" />-<!-- ==================== main block colors ============================ -->- <xsl:template match="color[@name='header']">-#top { background-color: <xsl:value-of select="@value"/>;}-</xsl:template>- <xsl:template match="color[@name='tab-selected']">-#top .header .current { background-color: <xsl:value-of select="@value"/>;}-#top .header .current a:link { color: <xsl:value-of select="@link"/>; }-#top .header .current a:visited { color: <xsl:value-of select="@vlink"/>; }-#top .header .current a:hover { color: <xsl:value-of select="@hlink"/>; }-</xsl:template>- <xsl:template match="color[@name='tab-unselected']">-#tabs li { background-color: <xsl:value-of select="@value"/> ;}-#tabs li a:link { color: <xsl:value-of select="@link"/>; }-#tabs li a:visited { color: <xsl:value-of select="@vlink"/>; }-#tabs li a:hover { color: <xsl:value-of select="@hlink"/>; }-</xsl:template>- <xsl:template match="color[@name='subtab-selected']">-#level2tabs a.selected { background-color: <xsl:value-of select="@value"/> ;}-#level2tabs a:link { color: <xsl:value-of select="@link"/>; }-#level2tabs a:visited { color: <xsl:value-of select="@vlink"/>; }-#level2tabs a:hover { color: <xsl:value-of select="@hlink"/>; }-</xsl:template>- <xsl:template match="color[@name='subtab-unselected']">-#level2tabs { background-color: <xsl:value-of select="@value"/>;}-#level2tabs a.unselected:link { color: <xsl:value-of select="@link"/>; }-#level2tabs a.unselected:visited { color: <xsl:value-of select="@vlink"/>; }-#level2tabs a.unselected:hover { color: <xsl:value-of select="@hlink"/>; }-</xsl:template>- <xsl:template match="color[@name='heading']">-.heading { background-color: <xsl:value-of select="@value"/>;}-</xsl:template>- <xsl:template match="color[@name='subheading']">-.boxed { background-color: <xsl:value-of select="@value"/>;}-.underlined_5 {border-bottom: solid 5px <xsl:value-of select="@value"/>;}-.underlined_10 {border-bottom: solid 10px <xsl:value-of select="@value"/>;}-table caption {-background-color: <xsl:value-of select="@value"/>;-color: <xsl:value-of select="@font"/>;-}-</xsl:template>- <xsl:template match="color[@name='feedback']">-#feedback {-color: <xsl:value-of select="@font"/>;-background: <xsl:value-of select="@value"/>;-text-align: <xsl:value-of select="@align"/>;-}-#feedback #feedbackto {-color: <xsl:value-of select="@font"/>;-}-</xsl:template>- <xsl:template match="color[@name='breadtrail']">-#main .breadtrail {-background: <xsl:value-of select="@value"/>;-color: <xsl:value-of select="@font"/>;-}-#main .breadtrail a:link { color: <xsl:value-of select="@link"/>; }-#main .breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }-#main .breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }-#top .breadtrail {-background: <xsl:value-of select="@value"/>;-color: <xsl:value-of select="@font"/>;-}-#top .breadtrail a:link { color: <xsl:value-of select="@link"/>; }-#top .breadtrail a:visited { color: <xsl:value-of select="@vlink"/>; }-#top .breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }-</xsl:template>-<!--Fix for other (old) profiles-->- <xsl:template match="color[@name='navstrip']">-#publishedStrip {-color: <xsl:value-of select="@font"/>;-background: <xsl:value-of select="@value"/>;-}-</xsl:template>-<!--has to go after the nav-strip (no 'navstrip')-->- <xsl:template match="color[@name='published']">-#publishedStrip {-color: <xsl:value-of select="@font"/>;-background: <xsl:value-of select="@value"/>;-}-</xsl:template>- <xsl:template match="color[@name='toolbox']">-#menu .menupagetitle { background-color: <xsl:value-of select="@value"/>;- color: <xsl:value-of select="@font"/>;}-</xsl:template>- <xsl:template match="color[@name='border']">-#menu { border-color: <xsl:value-of select="@value"/>;}-#menu .menupagetitle { border-color: <xsl:value-of select="@value"/>;}-#menu .menupageitemgroup { border-color: <xsl:value-of select="@value"/>;}-</xsl:template>- <xsl:template match="color[@name='menu']">-#menu { background-color: <xsl:value-of select="@value"/>;}-#menu { color: <xsl:value-of select="@font"/>;}-#menu a:link { color: <xsl:value-of select="@link"/>;}-#menu a:visited { color: <xsl:value-of select="@vlink"/>;}-#menu a:hover {-background-color: <xsl:value-of select="@value"/>;-color: <xsl:value-of select="@hlink"/>;}-</xsl:template>- <xsl:template match="color[@name='dialog']">-#menu .menupageitemgroup {-background-color: <xsl:value-of select="@value"/>;-}-#menu .menupageitem {-color: <xsl:value-of select="@font"/>;-}-#menu .menupageitem a:link { color: <xsl:value-of select="@link"/>;}-#menu .menupageitem a:visited { color: <xsl:value-of select="@vlink"/>;}-#menu .menupageitem a:hover {-background-color: <xsl:value-of select="@value"/>;-color: <xsl:value-of select="@hlink"/>;-}-</xsl:template>- <xsl:template match="color[@name='menuheading']">-#menu h1 {-color: <xsl:value-of select="@font"/>;-background-color: <xsl:value-of select="@value"/>;-}-</xsl:template>- <xsl:template match="color[@name='searchbox']">-#top .searchbox {-background-color: <xsl:value-of select="@value"/> ;-color: <xsl:value-of select="@font"/>;-}-</xsl:template>- <xsl:template match="color[@name='body']">-body{-background-color: <xsl:value-of select="@value"/>;-color: <xsl:value-of select="@font"/>;-}-a:link { color:<xsl:value-of select="@link"/>}-a:visited { color:<xsl:value-of select="@vlink"/>}-a:hover { color:<xsl:value-of select="@hlink"/>}--</xsl:template>- <xsl:template match="color[@name='footer']">-#footer { background-color: <xsl:value-of select="@value"/>;}-</xsl:template>-<!-- ==================== other colors ============================ -->- <xsl:template match="color[@name='highlight']">-.highlight { background-color: <xsl:value-of select="@value"/>;}-</xsl:template>- <xsl:template match="color[@name='fixme']">-.fixme { border-color: <xsl:value-of select="@value"/>;}-</xsl:template>- <xsl:template match="color[@name='note']">-.note { border-color: <xsl:value-of select="@value"/>;}-</xsl:template>- <xsl:template match="color[@name='warning']">-.warning { border-color: <xsl:value-of select="@value"/>;}-</xsl:template>- <xsl:template match="color[@name='code']">-.code { border-color: <xsl:value-of select="@value"/>;}-</xsl:template>- <xsl:template match="color[@name='table']">-.ForrestTable { background-color: <xsl:value-of select="@value"/>;}-</xsl:template>- <xsl:template match="color[@name='table-cell']">-.ForrestTable td { background-color: <xsl:value-of select="@value"/>;}-</xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/lucene/css/screen.css b/lucene/site/src/documentation/skins/lucene/css/screen.cssdeleted file mode 100644index aa8c457cb30..00000000000--- a/lucene/site/src/documentation/skins/lucene/css/screen.css+++ /dev/null@@ -1,587 +0,0 @@-/*-* Licensed to the Apache Software Foundation (ASF) under one or more-* contributor license agreements. See the NOTICE file distributed with-* this work for additional information regarding copyright ownership.-* The ASF licenses this file to You 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.-*/-body { margin: 0px 0px 0px 0px; font-family: Verdana, Helvetica, sans-serif; }--h1 { font-size : 160%; margin: 0px 0px 0px 0px; padding: 0px; }-h2 { font-size : 140%; margin: 1em 0px 0.8em 0px; padding: 0px; font-weight : bold;}-h3 { font-size : 130%; margin: 0.8em 0px 0px 0px; padding: 0px; font-weight : bold; }-.h3 { margin: 22px 0px 3px 0px; }-h4 { font-size : 120%; margin: 0.7em 0px 0px 0px; padding: 0px; font-weight : normal; text-align: left; }-.h4 { margin: 18px 0px 0px 0px; }-h4.faq { font-size : 120%; margin: 18px 0px 0px 0px; padding: 0px; font-weight : bold; text-align: left; }-h5 { font-size : 100%; margin: 14px 0px 0px 0px; padding: 0px; font-weight : normal; text-align: left; }--/**-* table-*/-table .title { background-color: #000000; }-.ForrestTable {- color: #ffffff;- background-color: #7099C5;- width: 100%;- font-size : 100%;- empty-cells: show;-}-table caption {- padding-left: 5px;- color: white;- text-align: left;- font-weight: bold;- background-color: #000000;-}-.ForrestTable td {- color: black;- background-color: #f0f0ff;-}-.ForrestTable th { text-align: center; }-/**- * Page Header- */--#top {- position: relative;- float: left;- width: 100%;- background: #294563; /* if you want a background in the header, put it here */-}--#top .breadtrail {- background: #CFDCED;- color: black;- border-bottom: solid 1px white;- padding: 3px 10px;- font-size: 75%;-}-#top .breadtrail a { color: black; }--#top .header {- float: left;- width: 100%;- background: url("images/header_white_line.gif") repeat-x bottom;-}--#top .grouplogo {- padding: 7px 0 10px 10px;- float: left;- text-align: left;-}-#top .projectlogo {- padding: 7px 0 10px 10px;- float: left;- width: 33%;- text-align: right;-}-#top .projectlogoA1 {- padding: 7px 0 10px 10px;- float: right;-}-html>body #top .searchbox {- bottom: 0px;-}-#top .searchbox {- position: absolute;- right: 10px;- height: 42px;- font-size: 70%;- white-space: nowrap;- text-align: right;- color: white;- background-color: #000000;- z-index:0;- background-image: url(images/rc-t-l-5-1header-2searchbox-3searchbox.png);- background-repeat: no-repeat;- background-position: top left;- bottom: -1px; /* compensate for IE rendering issue */-}--#top .searchbox form {- padding: 5px 10px;- margin: 0;-}-#top .searchbox p {- padding: 0 0 2px 0;- margin: 0;-}-#top .searchbox input {- font-size: 100%;-}--#tabs {- clear: both;- padding-left: 10px;- margin: 0;- list-style: none;-}-/* background: #CFDCED url("images/tab-right.gif") no-repeat right top;*/-#tabs li {- float: left;- background-image: url(images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png);- background-repeat: no-repeat;- background-position: top right;- background-color: #000000;- margin: 0 3px 0 0;- padding: 0;-}--/*background: url("images/tab-left.gif") no-repeat left top;*/-#tabs li a {- float: left;- display: block;- font-family: verdana, arial, sans-serif;- text-decoration: none;- color: black;- white-space: nowrap;- background-image: url(images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png);- background-repeat: no-repeat;- background-position: top left;- padding: 5px 15px 4px;- width: .1em; /* IE/Win fix */-}--#tabs li a:hover {-- cursor: pointer;- text-decoration:underline;-}--#tabs > li a { width: auto; } /* Rest of IE/Win fix */--/* Commented Backslash Hack hides rule from IE5-Mac \*/-#tabs a { float: none; }-/* End IE5-Mac hack */--#top .header .current {- background-color: #4C6C8F;- background-image: url(images/rc-t-r-5-1header-2tab-selected-3tab-selected.png);- background-repeat: no-repeat;- background-position: top right;-}-#top .header .current a {- font-weight: bold;- padding-bottom: 5px;- color: white;- background-image: url(images/rc-t-l-5-1header-2tab-selected-3tab-selected.png);- background-repeat: no-repeat;- background-position: top left;-}-#publishedStrip {- padding-right: 10px;- padding-left: 20px;- padding-top: 3px;- padding-bottom:3px;- color: #ffffff;- font-size : 60%;- font-weight: bold;- background-color: #4C6C8F;- text-align:right;-}--#level2tabs {-margin: 0;-float:left;-position:relative;--}----#level2tabs a:hover {-- cursor: pointer;- text-decoration:underline;--}--#level2tabs a{-- cursor: pointer;- text-decoration:none;- background-image: url('images/chapter.gif');- background-repeat: no-repeat;- background-position: center left;- padding-left: 6px;- margin-left: 6px;-}--/*-* border-top: solid #4C6C8F 15px;-*/-#main {- position: relative;- background: white;- clear:both;-}-#main .breadtrail {- clear:both;- position: relative;- background: #CFDCED;- color: black;- border-bottom: solid 1px black;- border-top: solid 1px black;- padding: 0px 180px;- font-size: 75%;- z-index:10;-}-/**-* Round corner-*/-#roundtop {- background-image: url(images/rc-t-r-15-1body-2menu-3menu.png);- background-repeat: no-repeat;- background-position: top right;-}--#roundbottom {- background-image: url(images/rc-b-r-15-1body-2menu-3menu.png);- background-repeat: no-repeat;- background-position: top right;-}--img.corner {- width: 15px;- height: 15px;- border: none;- display: block !important;-}--.roundtopsmall {- background-image: url(images/rc-t-r-5-1header-2searchbox-3searchbox.png);- background-repeat: no-repeat;- background-position: top right;-}--#roundbottomsmall {- background-image: url(images/rc-b-r-5-1header-2tab-selected-3tab-selected.png);- background-repeat: no-repeat;- background-position: top right;-}--img.cornersmall {- width: 5px;- height: 5px;- border: none;- display: block !important;-}-/**- * Side menu- */-#menu a { font-weight: normal; text-decoration: none;}-#menu a:visited { font-weight: normal; }-#menu a:active { font-weight: normal; }-#menu a:hover { font-weight: normal; text-decoration:underline;}--#menuarea { width:10em;}-#menu {- position: relative;- float: left;- width: 160px;- padding-top: 0px;- top:-18px;- left:10px;- z-index: 20;- background-color: #f90;- font-size : 70%;--}--.menutitle {- cursor:pointer;- padding: 3px 12px;- margin-left: 10px;- background-image: url('images/chapter.gif');- background-repeat: no-repeat;- background-position: center left;- font-weight : bold;---}--.menutitle:hover{text-decoration:underline;cursor: pointer;}--#menu .menuitemgroup {- margin: 0px 0px 6px 8px;- padding: 0px;- font-weight : bold; }--#menu .selectedmenuitemgroup{- margin: 0px 0px 0px 8px;- padding: 0px;- font-weight : normal;-- }--#menu .menuitem {- padding: 2px 0px 1px 13px;- background-image: url('images/page.gif');- background-repeat: no-repeat;- background-position: center left;- font-weight : normal;- margin-left: 10px;-}--#menu .menupage {- margin: 2px 0px 1px 10px;- padding: 0px 3px 0px 12px;- background-image: url('images/page.gif');- background-repeat: no-repeat;- background-position: center left;- font-style : normal;-}-#menu .menupagetitle {- padding: 0px 0px 0px 1px;- font-style : normal;- border-style: solid;- border-width: 1px;- margin-right: 10px;--}-#menu .menupageitemgroup {- padding: 3px 0px 4px 6px;- font-style : normal;- border-bottom: 1px solid ;- border-left: 1px solid ;- border-right: 1px solid ;- margin-right: 10px;-}-#menu .menupageitem {- font-style : normal;- font-weight : normal;- border-width: 0px;- font-size : 90%;-}-#menu #credit {- text-align: center;-}-#menu #credit2 {- text-align: center;- padding: 3px 3px 3px 3px;- background-color: #ffffff;-}-#menu .searchbox {- text-align: center;-}-#menu .searchbox form {- padding: 3px 3px;- margin: 0;-}-#menu .searchbox input {- font-size: 100%;-}--#content {- padding: 20px 20px 20px 180px;- margin: 0;- font : small Verdana, Helvetica, sans-serif;- font-size : 80%;-}--#content ul {- margin: 0;- padding: 0 25px;-}-#content li {- padding: 0 5px;-}-#feedback {- color: black;- background: #CFDCED;- text-align:center;- margin-top: 5px;-}-#feedback #feedbackto {- font-size: 90%;- color: black;-}-#footer {- clear: both;- position: relative; /* IE bugfix (http://www.dracos.co.uk/web/css/ie6floatbug/) */- width: 100%;- background: #CFDCED;- border-top: solid 1px #4C6C8F;- color: black;-}-#footer .copyright {- position: relative; /* IE bugfix cont'd */- padding: 5px;- margin: 0;- width: 45%;-}-#footer .lastmodified {- position: relative; /* IE bugfix cont'd */- float: right;- width: 45%;- padding: 5px;- margin: 0;- text-align: right;-}-#footer a { color: white; }--#footer #logos {- text-align: left;-}---/**- * Misc Styles- */--acronym { cursor: help; }-.boxed { background-color: #a5b6c6;}-.underlined_5 {border-bottom: solid 5px #4C6C8F;}-.underlined_10 {border-bottom: solid 10px #4C6C8F;}-/* ==================== snail trail ============================ */--.trail {- position: relative; /* IE bugfix cont'd */- font-size: 70%;- text-align: right;- float: right;- margin: -10px 5px 0px 5px;- padding: 0;-}--#motd-area {- position: relative; /* IE bugfix cont'd */- float: right;- width: 35%;- background-color: #f0f0ff;- border-top: solid 1px #4C6C8F;- border-bottom: solid 1px #4C6C8F;- margin-bottom: 15px;- margin-left: 15px;- margin-right: 10%;- padding-bottom: 5px;- padding-top: 5px;-}--#minitoc-area {- border-top: solid 1px #4C6C8F;- border-bottom: solid 1px #4C6C8F;- margin: 15px 10% 5px 15px;- /* margin-bottom: 15px;- margin-left: 15px;- margin-right: 10%;*/- padding-bottom: 7px;- padding-top: 5px;-}-.minitoc {- list-style-image: url('images/current.gif');- font-weight: normal;-}--li p {- margin: 0;- padding: 0;-}--.pdflink {- position: relative; /* IE bugfix cont'd */- float: right;- margin: 0px 5px;- padding: 0;-}-.pdflink br {- margin-top: -10px;- padding-left: 1px;-}-.pdflink a {- display: block;- font-size: 70%;- text-align: center;- margin: 0;- padding: 0;-}--.pdflink img {- display: block;- height: 16px;- width: 16px;-}-.xmllink {- position: relative; /* IE bugfix cont'd */- float: right;- margin: 0px 5px;- padding: 0;-}-.xmllink br {- margin-top: -10px;- padding-left: 1px;-}-.xmllink a {- display: block;- font-size: 70%;- text-align: center;- margin: 0;- padding: 0;-}--.xmllink img {- display: block;- height: 16px;- width: 16px;-}-.podlink {- position: relative; /* IE bugfix cont'd */- float: right;- margin: 0px 5px;- padding: 0;-}-.podlink br {- margin-top: -10px;- padding-left: 1px;-}-.podlink a {- display: block;- font-size: 70%;- text-align: center;- margin: 0;- padding: 0;-}--.podlink img {- display: block;- height: 16px;- width: 16px;-}--.printlink {- position: relative; /* IE bugfix cont'd */- float: right;-}-.printlink br {- margin-top: -10px;- padding-left: 1px;-}-.printlink a {- display: block;- font-size: 70%;- text-align: center;- margin: 0;- padding: 0;-}-.printlink img {- display: block;- height: 16px;- width: 16px;-}--p.instruction {- display: list-item;- list-style-image: url('../images/instruction_arrow.png');- list-style-position: outside;- margin-left: 2em;-}diff --git a/lucene/site/src/documentation/skins/lucene/note.txt b/lucene/site/src/documentation/skins/lucene/note.txtdeleted file mode 100644index d34c8db5ef4..00000000000--- a/lucene/site/src/documentation/skins/lucene/note.txt+++ /dev/null@@ -1,50 +0,0 @@-Notes for developer:----Legend--------------------TODO -> blocker-DONE -> blocker-ToDo -> enhancement bug-done -> enhancement bug----Issues--------------------- the corner images should be rendered through svg with the header color.--> DONE--> ToDo: get rid of the images and use only divs!--- the menu points should be displayed "better".--> DONE--- Use the krysalis-site menu approach for the overall menu display.--> DONE--- Use the old lenya innermenu approch to further enhance the menu .--> DONE--- the content area needs some attention.--> DONE--- introduce the heading scheme from krysalis (<headings type="clean|box|underlined"/>)--> DONE--> ToDo: make box with round corners--> done: make underlined with variable border height--> ToDo: make underline with bottom round corner--- introduce the toc for each html-page--> DONE--- introduce the external-link-images.--> DONE--- the publish note should be where now only a border is.-Like <div id="published"/>--> DONE-, but make it configurable.--> DONE-- footer needs some attention--> DONE--- the footer do not have the color profile! Enable it!--> DONE--- the footer should as well contain a feedback link.-See http://issues.apache.org/eyebrowse/[email protected]&msgNo=71--> DONE--- introduce credits alternativ location--> DONE--- border for published / breadtrail / menu /tab divs--> ToDo\ No newline at end of filediff --git a/lucene/site/src/documentation/skins/lucene/skinconf.xsl b/lucene/site/src/documentation/skins/lucene/skinconf.xsldeleted file mode 100644index 2f8df12903c..00000000000--- a/lucene/site/src/documentation/skins/lucene/skinconf.xsl+++ /dev/null@@ -1,137 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:template match="skinconfig">- <xsl:if test="not(colors)">- <colors>-<!-- Lenya -->- <color name="header" value="#ffffff"/>- <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>- <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>- <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>- <color name="heading" value="#E5E4D9"/>- <color name="subheading" value="#E5E4D9"/>- <color name="published" value="#4C6C8F" font="#FFFFFF"/>- <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>- <color name="navstrip" value="#E5E4D9" font="#000000"/>- <color name="toolbox" value="#CFDCED" font="#000000"/>- <color name="border" value="#999999"/>- <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" />- <color name="menuheading" value="#cfdced" font="#000000" />- <color name="searchbox" value="#E5E4D9" font="#000000"/>- <color name="dialog" value="#E5E4D9" font="#000000"/>- <color name="body" value="#ffffff" />- <color name="table" value="#ccc"/>- <color name="table-cell" value="#ffffff"/>- <color name="highlight" value="#ffff00"/>- <color name="fixme" value="#cc6600"/>- <color name="note" value="#006699"/>- <color name="warning" value="#990000"/>- <color name="code" value="#003366"/>- <color name="footer" value="#E5E4D9"/>- </colors>- </xsl:if>- <xsl:copy>- <xsl:copy-of select="@*"/>- <xsl:copy-of select="node()[not(name(.)='colors')]"/>- <xsl:apply-templates select="colors"/>- </xsl:copy>- </xsl:template>- <xsl:template match="colors">- <xsl:copy>- <xsl:copy-of select="@*"/>- <xsl:copy-of select="node()[name(.)='color']"/>- <xsl:if test="not(color[@name='header'])">- <color name="header" value="#FFFFFF"/>- </xsl:if>- <xsl:if test="not(color[@name='tab-selected'])">- <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>- </xsl:if>- <xsl:if test="not(color[@name='tab-unselected'])">- <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='subtab-selected'])">- <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>- </xsl:if>- <xsl:if test="not(color[@name='subtab-unselected'])">- <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='heading'])">- <color name="heading" value="#E5E4D9"/>- </xsl:if>- <xsl:if test="not(color[@name='subheading'])">- <color name="subheading" value="#E5E4D9"/>- </xsl:if>- <xsl:if test="not(color[@name='feedback'])">- <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>- </xsl:if>- <xsl:if test="not(color[@name='published'])">- <color name="published" value="#4C6C8F" font="#FFFFFF"/>- </xsl:if>- <xsl:if test="not(color[@name='navstrip'])">- <color name="navstrip" value="#E5E4D9" font="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='toolbox'])">- <color name="toolbox" value="#CFDCED" font="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='border'])">- <color name="border" value="#999999"/>- </xsl:if>- <xsl:if test="not(color[@name='menu'])">- <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" />- </xsl:if>- <xsl:if test="not(color[@name='menuheading'])">- <color name="menuheading" value="#cfdced" font="#000000" />- </xsl:if>- <xsl:if test="not(color[@name='searchbox'])">- <color name="searchbox" value="#E5E4D9" font="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='dialog'])">- <color name="dialog" value="#E5E4D9" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>- </xsl:if>- <xsl:if test="not(color[@name='body'])">- <color name="body" value="#ffffff" />- </xsl:if>- <xsl:if test="not(color[@name='table'])">- <color name="table" value="#ccc"/>- </xsl:if>- <xsl:if test="not(color[@name='table-cell'])">- <color name="table-cell" value="#ffffff"/>- </xsl:if>- <xsl:if test="not(color[@name='highlight'])">- <color name="highlight" value="#ffff00"/>- </xsl:if>- <xsl:if test="not(color[@name='fixme'])">- <color name="fixme" value="#c60"/>- </xsl:if>- <xsl:if test="not(color[@name='note'])">- <color name="note" value="#069"/>- </xsl:if>- <xsl:if test="not(color[@name='warning'])">- <color name="warning" value="#900"/>- </xsl:if>- <xsl:if test="not(color[@name='code'])">- <color name="code" value="#a5b6c6"/>- </xsl:if>- <xsl:if test="not(color[@name='footer'])">- <color name="footer" value="#E5E4D9"/>- </xsl:if>- </xsl:copy>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/lucene/xslt/fo/document-to-fo.xsl b/lucene/site/src/documentation/skins/lucene/xslt/fo/document-to-fo.xsldeleted file mode 100644index 0fb2a23731b..00000000000--- a/lucene/site/src/documentation/skins/lucene/xslt/fo/document-to-fo.xsl+++ /dev/null@@ -1,22 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"- xmlns:fo="http://www.w3.org/1999/XSL/Format"- version="1.0">- <xsl:import href="../../../common/xslt/fo/document-to-fo.xsl"/>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/lucene/xslt/html/book-to-menu.xsl b/lucene/site/src/documentation/skins/lucene/xslt/html/book-to-menu.xsldeleted file mode 100644index 5242fc85152..00000000000--- a/lucene/site/src/documentation/skins/lucene/xslt/html/book-to-menu.xsl+++ /dev/null@@ -1,53 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<!---book-to-menu.xsl generates the HTML menu. See the imported book-to-menu.xsl for-details.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:import href="../../../common/xslt/html/book-to-menu.xsl"/>- <xsl:template match="book">- <div id="menu">- <ul>- <xsl:apply-templates select="menu"/>- </ul>- </div>- </xsl:template>- <xsl:template match="menu">- <li><h1>- <xsl:value-of select="@label"/>- </h1>- <ul>- <xsl:apply-templates/>- </ul></li>- </xsl:template>- <xsl:template match="menu-item[@type='hidden']"/>- <xsl:template match="menu-item">- <li><xsl:apply-imports/></li>- </xsl:template>- <xsl:template name="selected">- <div class="current">- <xsl:value-of select="@label"/>- </div>- </xsl:template>- <xsl:template name="print-external">- <font color="#ffcc00">- <xsl:apply-imports/>- </font>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/lucene/xslt/html/document-to-html.xsl b/lucene/site/src/documentation/skins/lucene/xslt/html/document-to-html.xsldeleted file mode 100644index 2d337bf0d60..00000000000--- a/lucene/site/src/documentation/skins/lucene/xslt/html/document-to-html.xsl+++ /dev/null@@ -1,154 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<!---This stylesheet contains templates for converting documentv11 to HTML. See the-imported document-to-html.xsl for details.--->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:import href="../../../common/xslt/html/document-to-html.xsl"/>- <xsl:template match="document">- <meta-data>- <xsl:apply-templates select="header/meta"/>- </meta-data>- <div id="content">- <div id="skinconf-printlink"/>- <div id="skinconf-xmllink"/>- <div id="skinconf-podlink"/>- <div id="skinconf-txtlink"/>- <div id="skinconf-pdflink"/>- <div id="disable-font-script"/>- <xsl:if test="normalize-space(header/title)!=''">- <h1>- <xsl:value-of select="header/title"/>- </h1>- </xsl:if>- <xsl:if test="normalize-space(header/subtitle)!=''">- <h3>- <xsl:value-of select="header/subtitle"/>- </h3>- </xsl:if>-<!--- <xsl:apply-templates select="header/type"/>- <xsl:apply-templates select="header/notice"/>- <xsl:apply-templates select="header/abstract"/>- <xsl:apply-templates select="body"/>-- <div class="attribution">- <xsl:apply-templates select="header/authors"/>- <xsl:if test="header/authors and header/version">- <xsl:text>; </xsl:text>- </xsl:if>- <xsl:apply-templates select="header/version"/>- </div>- -->- <xsl:if test="header/abstract">- <div class="abstract">- <xsl:value-of select="header/abstract"/>- </div>- </xsl:if>- <xsl:apply-templates select="body"/>- <xsl:if test="header/authors">- <p align="right">- <font size="-2">- <xsl:for-each select="header/authors/person">- <xsl:choose>- <xsl:when test="position()=1">by </xsl:when>- <xsl:otherwise>, </xsl:otherwise>- </xsl:choose>- <xsl:value-of select="@name"/>- </xsl:for-each>- </font>- </p>- </xsl:if>- <xsl:if test="header/version">- <xsl:apply-templates select="header/version"/>- </xsl:if>- </div>- </xsl:template>- <xsl:template match="body">- <div id="skinconf-toc-page"/>- <xsl:apply-templates/>- </xsl:template>- <xsl:template match="@id">- <xsl:apply-imports/>- </xsl:template>- <xsl:template match="section"><a name="{generate-id()}"/>- <xsl:apply-templates select="@id"/>- <xsl:variable name = "level" select = "count(ancestor::section)+1" />- <xsl:choose>- <xsl:when test="$level=1">- <div class="skinconf-heading-{$level}">- <h1>- <xsl:value-of select="title"/>- </h1>- </div>- <div class="section">- <xsl:apply-templates select="*[not(self::title)]"/>- </div>- </xsl:when>- <xsl:when test="$level=2">- <div class="skinconf-heading-{$level}">- <h2>- <xsl:value-of select="title"/>- </h2>- </div>- <xsl:apply-templates select="*[not(self::title)]"/>- </xsl:when>-<!-- If a faq, answer sections will be level 3 (1=Q/A, 2=part) -->- <xsl:when test="$level=3 and $notoc='true'">- <h4 class="faq">- <xsl:value-of select="title"/>- </h4>- <div align="right"><a href="#{@id}-menu">^</a>- </div>- <div style="margin-left: 15px">- <xsl:apply-templates select="*[not(self::title)]"/>- </div>- </xsl:when>- <xsl:when test="$level=3">- <h4>- <xsl:value-of select="title"/>- </h4>- <xsl:apply-templates select="*[not(self::title)]"/>- </xsl:when>- <xsl:otherwise>- <h5>- <xsl:value-of select="title"/>- </h5>- <xsl:apply-templates select="*[not(self::title)]"/>- </xsl:otherwise>- </xsl:choose>- </xsl:template>- <xsl:template match="figure">- <xsl:apply-templates select="@id"/>- <div style="text-align: center;" id="{@id}">- <img src="{@src}" alt="{@alt}" class="figure" id="{@id}">- <xsl:if test="@height">- <xsl:attribute name="height">- <xsl:value-of select="@height"/>- </xsl:attribute>- </xsl:if>- <xsl:if test="@width">- <xsl:attribute name="width">- <xsl:value-of select="@width"/>- </xsl:attribute>- </xsl:if>- </img>- </div>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/lucene/xslt/html/site-to-xhtml.xsl b/lucene/site/src/documentation/skins/lucene/xslt/html/site-to-xhtml.xsldeleted file mode 100644index fe245e1eb11..00000000000--- a/lucene/site/src/documentation/skins/lucene/xslt/html/site-to-xhtml.xsl+++ /dev/null@@ -1,821 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<!---site-to-xhtml.xsl is the final stage in HTML page production. It merges HTML from-document-to-html.xsl, tab-to-menu.xsl and book-to-menu.xsl, and adds the site header,-footer, searchbar, css etc. As input, it takes XML of the form:--<site>- <div class="menu">- ...- </div>- <div class="tab">- ...- </div>- <div class="content">- ...- </div>-</site>---->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"- xmlns:i18n="http://apache.org/cocoon/i18n/2.1" exclude-result-prefixes="i18n">- <xsl:import href="../../../common/xslt/html/site-to-xhtml.xsl"/>-<!--+- |Overall site template- +-->- <xsl:template match="site">-<!--html lang="en" xml:lang="en"-->- <html>-<!--+- |HTML-head- +-->- <head>-<!--+- |generator meta- +-->-<!-- Add some Forrest-specific metadata -->- <xsl:call-template name="html-meta"/>-<!-- Add any metadata from the documents -->- <xsl:call-template name="meta-data"/>-<!--+- |title- +-->- <title><xsl:value-of select="div[@id='content']/h1"/>- <xsl:if test="$config/motd">- <xsl:for-each select="$config/motd/motd-option">- <xsl:choose>- <xsl:when test="@starts-with='true'">- <xsl:if test="starts-with($path, @pattern)">- <xsl:if test="normalize-space(motd-title) != ''">-<xsl:text> (</xsl:text>- <xsl:value-of select="motd-title"/>-<xsl:text>)</xsl:text>- </xsl:if>- </xsl:if>- </xsl:when>- <xsl:otherwise>- <xsl:if test="contains($path, @pattern)">- <xsl:if test="normalize-space(motd-title) != ''">-<xsl:text> (</xsl:text>- <xsl:value-of select="motd-title"/>-<xsl:text>)</xsl:text>- </xsl:if>- </xsl:if>- </xsl:otherwise>- </xsl:choose>- </xsl:for-each>- </xsl:if></title>-<!--+- |stylesheets- +--><link rel="stylesheet" href="{$root}skin/basic.css" type="text/css"- /><link rel="stylesheet" href="{$root}skin/screen.css"- type="text/css" media="screen" /><link rel="stylesheet" href="{$root}skin/print.css" type="text/css"- media="print" /><link rel="stylesheet" href="{$root}skin/profile.css"- type="text/css" />-<!--+- |Javascripts- +-->-<script type="text/javascript" language="javascript"- src="{$root}skin/getBlank.js"></script>-<script type="text/javascript" language="javascript"- src="{$root}skin/getMenu.js"></script>-<script type="text/javascript" language="javascript"- src="{$root}skin/fontsize.js"></script>-<!--+- |favicon- +-->- <xsl:if test="//skinconfig/favicon-url"><link rel="shortcut icon">- <xsl:attribute name="href">- <xsl:value-of- select="concat($root,//skinconfig/favicon-url)"/>- </xsl:attribute></link>- </xsl:if>- </head>-<!--+- |HTML-body- +-->- <body onload="init()">-<script type="text/javascript">ndeSetTextSize();</script>-<!--+Site structure- +++++++++++++++++++++++++++- +=========================+- | topstrip |- +=========================+- | |- | centerstrip |- | |- | |- +=========================+- | bottomstrip |- +=========================+- +++++++++++++++++++++++++++- +-->-<!--+- |topstrip with logos and search box- +-->- <div id="top">-<!--breadcrumbs org location-->- <xsl:if test="not ($config/trail/@location)">- <xsl:comment>+- |breadtrail- +</xsl:comment>- <div class="breadtrail">- <xsl:call-template name="breadcrumbs"/>- </div>- </xsl:if>- <xsl:comment>+- |header- +</xsl:comment>- <div class="header">- <xsl:comment>+- |start group logo- +</xsl:comment>- <xsl:if test="$config/group-url">- <div class="grouplogo">- <xsl:call-template name="renderlogo">- <xsl:with-param name="name" select="$config/group-name"/>- <xsl:with-param name="url" select="$config/group-url"/>- <xsl:with-param name="logo" select="$config/group-logo"/>- <xsl:with-param name="root" select="$root"/>- <xsl:with-param name="description" select="$config/group-description"/>- </xsl:call-template>- </div>- </xsl:if>- <xsl:comment>+- |end group logo- +</xsl:comment>- <xsl:comment>+- |start Project Logo- +</xsl:comment>- <xsl:variable name="xtest">- <xsl:choose>- <xsl:when- test="$config/group-url and $config/search and not($config/search/@box-location = 'alt')">-<xsl:text>true</xsl:text>- </xsl:when>- <xsl:otherwise>-<xsl:text>false</xsl:text>- </xsl:otherwise>- </xsl:choose>- </xsl:variable>- <div class="projectlogo">- <xsl:if test="$xtest='false'" >- <xsl:attribute name="class">-<xsl:text>projectlogoA1</xsl:text>- </xsl:attribute>- </xsl:if>- <xsl:call-template name="renderlogo">- <xsl:with-param name="name" select="$config/project-name"/>- <xsl:with-param name="url" select="$config/project-url"/>- <xsl:with-param name="logo" select="$config/project-logo"/>- <xsl:with-param name="root" select="$root"/>- <xsl:with-param name="description" select="$config/project-description"/>- </xsl:call-template>- </div>- <xsl:comment>+- |end Project Logo- +</xsl:comment>- <xsl:if- test="$config/search and not($config/search/@box-location = 'alt')">- <xsl:comment>+- |start Search- +</xsl:comment>- <div class="searchbox">- <xsl:variable name="search-prompt">- <i18n:text>Search the site with</i18n:text>-<xsl:text> </xsl:text>- <xsl:value-of select="$config/search/@provider"/>- </xsl:variable>- <xsl:choose>- <xsl:when test="$config/search/@provider = 'lucene'">-<!-- Lucene search -->- <form method="get" action="{$root}{$lucene-search}">- <input type="text" id="query" name="queryString" size="25" onFocus="getBlank (this, '{$search-prompt}');">- <xsl:attribute name="value">- <xsl:value-of select="$search-prompt"/>- </xsl:attribute>- </input> - <input type="submit" value="Search" name="Search" i18n:attr="value"/>- </form>- </xsl:when>- <xsl:otherwise>- <form class="roundtopsmall" method="get" action="http://search.lucidimagination.com/p:lucene">- <input type="text" id="query" name="q" size="25" onFocus="getBlank (this, '{$search-prompt}');">- <xsl:attribute name="value">- <xsl:value-of select="$search-prompt"/>- </xsl:attribute>- </input> - <input type="submit" value="Search" name="Search" i18n:attr="value"/>- </form>- <div style="position: relative; top: -5px; left: -10px">Powered by <a style="color: #033268" href="http://www.lucidimagination.com">Lucid Imagination</a></div>- </xsl:otherwise>- </xsl:choose>-<!--div id="roundbottomsmall">- <img- src="{$skin-img-dir}/rc-b-l-5-1body-2menu-3menu.png"- alt="" width="5" height="5" class="cornersmall"- style="display: none" />- </div-->- </div>- <xsl:comment>+- |end search- +</xsl:comment>- </xsl:if>- <xsl:comment>+- |start Tabs- +</xsl:comment>- <xsl:apply-templates select="ul[@id='tabs']"/>- <xsl:comment>+- |end Tabs- +</xsl:comment>- </div>- </div>-<!--+- |centerstrip with menu and mainarea- +-->- <div id="main">- <div id="publishedStrip">- <xsl:comment>+- |start Subtabs- +</xsl:comment>- <div id="level2tabs">- <xsl:apply-templates select="span[@id='level2tabs']/node()"/>- </div>- <xsl:comment>+- |end Endtabs- +</xsl:comment>- <xsl:call-template name="last-published"/>- </div>- <xsl:comment>+- |breadtrail- +</xsl:comment>- <div class="breadtrail">- <xsl:choose>- <xsl:when test="$config/trail/@location='alt'">-<!--breadtrail location='alt'-->- <xsl:call-template name="breadcrumbs"/>- </xsl:when>- <xsl:otherwise>-<!--*NO* breadtrail-->-  - </xsl:otherwise>- </xsl:choose>- </div>- <xsl:comment>+- |start Menu, mainarea- +</xsl:comment>- <xsl:if test="div[@id='menu']/ul/li">- <xsl:call-template name="menu"/>- </xsl:if>- <xsl:comment>+- |start content- +</xsl:comment>- <xsl:apply-templates select="div[@id='content']"/>- <xsl:comment>+- |end content- +</xsl:comment>- <div class="clearboth"> </div>- </div>-<!--+- |bottomstrip with footer- +-->- <div id="footer">- <xsl:comment>+- |start bottomstrip- +</xsl:comment>- <div class="lastmodified">- <xsl:call-template name="last-published"/>- </div>- <xsl:if test="not($config/disable-copyright-footer = 'true')">- <div class="copyright">- Copyright ©- <xsl:text> </xsl:text>- <xsl:value-of select="$config/year"/>- <xsl:call-template name="current-year">- <xsl:with-param name="copyrightyear" select="$config/year"/>- </xsl:call-template>-<xsl:text> </xsl:text>- <xsl:choose>- <xsl:when test="$config/copyright-link"><a>- <xsl:attribute name="href">- <xsl:value-of select="$config/copyright-link"/>- </xsl:attribute>- <xsl:value-of select="$config/vendor"/></a>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="$config/vendor"/>- </xsl:otherwise>- </xsl:choose>- </div>- </xsl:if>- <xsl:if test="$filename = 'index.html'">- <div id="logos" >- <xsl:if test="$config/disable-compliance-links/@align">- <xsl:attribute name="style">text-align: <xsl:value-of select="$config/disable-compliance-links/@align"/>- </xsl:attribute>- </xsl:if>-<!-- W3C logos style="text-align: center;"-->- <xsl:call-template name="compliancy-logos"/>- <xsl:if test="$filename = 'index.html' and $config/credits">- <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">- <xsl:if test="not(@box-location = 'alt') and not(@box-location = 'alt2')">- <xsl:variable name="name" select="name"/>- <xsl:variable name="url" select="url"/>- <xsl:variable name="image" select="image"/>- <xsl:variable name="width" select="width"/>- <xsl:variable name="height" select="height"/><a href="{$url}">- <img alt="{$name} - logo" title="{$name}" border="0">- <xsl:attribute name="src">- <xsl:if test="not(starts-with($image, 'http://'))">- <xsl:value-of select="$root"/>- </xsl:if>- <xsl:value-of select="$image"/>- </xsl:attribute>- <xsl:attribute name="style">- <xsl:if test="$width">width: <xsl:value-of select="$width"/>px;</xsl:if>- <xsl:if test="$height">height: <xsl:value-of select="$height"/>px;</xsl:if>- </xsl:attribute>- </img></a>- </xsl:if>- </xsl:for-each>- </xsl:if>- </div>- </xsl:if>- <xsl:if test="$config/host-logo and not($config/host-logo = '')">- <div class="host">- <xsl:call-template name="renderlogo">- <xsl:with-param name="name" select="$config/host-name"/>- <xsl:with-param name="url" select="$config/host-url"/>- <xsl:with-param name="logo" select="$config/host-logo"/>- <xsl:with-param name="root" select="$root"/>- </xsl:call-template>- </div>- </xsl:if>- <xsl:if test="$config/feedback">- <xsl:call-template name="feedback"/>- </xsl:if>- <xsl:comment>+- |end bottomstrip- +</xsl:comment>- </div>- <script type="text/javascript">-- var _gaq = _gaq || [];- _gaq.push(['_setAccount', 'UA-94576-12']);- _gaq.push(['_trackPageview']);-- (function() {- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);- })();--</script>- </body>- </html>- </xsl:template>- <xsl:template name="last-published">-<script type="text/javascript"><![CDATA[<!---document.write("]]><i18n:text >Last Published:</i18n:text><![CDATA[ " + document.lastModified);-// -->]]></script>- </xsl:template>-<!--headings-->- <xsl:template match="div[@class = 'skinconf-heading-1']">- <xsl:choose>- <xsl:when test="//skinconfig/headings/@type='underlined'">- <h2 class="underlined_10">- <xsl:value-of select="h1"/>- </h2>- </xsl:when>- <xsl:when test="//skinconfig/headings/@type='boxed'">- <h2 class="boxed">- <xsl:value-of select="h1"/>- </h2>- </xsl:when>- <xsl:otherwise>- <h2 class="h3">- <xsl:value-of select="h1"/>- </h2>- </xsl:otherwise>- </xsl:choose>- </xsl:template>- <xsl:template match="div[@class = 'skinconf-heading-2']">- <xsl:choose>- <xsl:when test="//skinconfig/headings/@type='underlined'">- <h3 class="underlined_5">- <xsl:value-of select="h2"/>- </h3>- </xsl:when>- <xsl:when test="//skinconfig/headings/@type='boxed'">- <h3 class="boxed">- <xsl:value-of select="h2"/>- </h3>- </xsl:when>- <xsl:otherwise>- <h3 class="h4">- <xsl:value-of select="h2"/>- </h3>- </xsl:otherwise>- </xsl:choose>- </xsl:template>-<!-- Add links to any standards-compliance logos -->- <xsl:template name="compliancy-logos">- <xsl:if test="$filename = 'index.html' and $config/disable-compliance-links = 'false'"><a href="http://validator.w3.org/check/referer">- <img class="logoImage"- src="{$skin-img-dir}/valid-html401.png"- alt="Valid HTML 4.01!" title="Valid HTML 4.01!" style="height: 31px; width: 88px;" /></a><a href="http://jigsaw.w3.org/css-validator/check/referer">- <img class="logoImage"- src="{$skin-img-dir}/vcss.png"- alt="Valid CSS!" title="Valid CSS!" style="height: 31px; width: 88px;"/></a>- </xsl:if>- </xsl:template>- <xsl:template name="menu">- <xsl:comment>+- |start Menu- +</xsl:comment>- <div id="menu">-<!--menu - inner-->- <xsl:for-each select = "div[@id='menu']/ul/li">- <xsl:call-template name = "innermenuli" >- <xsl:with-param name="id" select="concat('1.', position())"/>- </xsl:call-template>- </xsl:for-each>-<!--- <xsl:apply-templates select="div[@id='menu']/*" />- -->-<!-- Search box: alternative location -->- <xsl:if- test="$config/search and $config/search/@box-location='alt'">- <xsl:comment>+- |start Search- +</xsl:comment>- <div class="searchbox">- <hr />- <xsl:variable name="search-prompt">- <i18n:text>Search the site with</i18n:text>-<xsl:text> </xsl:text>- <xsl:value-of select="$config/search/@provider"/>- </xsl:variable>- <xsl:choose>- <xsl:when test="$config/search/@provider = 'lucene'">-<!-- Lucene search -->- <form method="get" action="{$root}{$lucene-search}">- <input type="text" id="query" name="queryString" size="18" onFocus="getBlank (this, '{$search-prompt}');">- <xsl:attribute name="value">- <xsl:value-of select="$search-prompt"/>- </xsl:attribute>- </input> - <input type="submit" value="Search" name="Search" i18n:attr="value"/>- </form>- </xsl:when>- <xsl:otherwise>- <form class="roundtopsmall" method="get" action="http://search.lucidimagination.com/p:lucene">- <input type="text" id="query" name="q" size="25" onFocus="getBlank (this, '{$search-prompt}');">- <xsl:attribute name="value">- <xsl:value-of select="$search-prompt"/>- </xsl:attribute>- </input> - <input type="submit" value="Search" name="Search" i18n:attr="value"/>- </form>- </xsl:otherwise>- </xsl:choose>- </div>- <xsl:comment>+- |end search- +</xsl:comment>- </xsl:if>-<!--credits in alternative location-->- <div id="credit">- <xsl:if test="$filename = 'index.html' and $config/credits and ($config/credits/credit/@box-location = 'alt')">- <hr />- <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">- <xsl:if test="@box-location = 'alt'">- <xsl:variable name="name" select="name"/>- <xsl:variable name="url" select="url"/>- <xsl:variable name="image" select="image"/>- <xsl:variable name="width" select="width"/>- <xsl:variable name="height" select="height"/><a href="{$url}">- <img alt="{$name} - logo" title="{$name}" border="0">- <xsl:attribute name="src">- <xsl:if test="not(starts-with($image, 'http://'))">- <xsl:value-of select="$root"/>- </xsl:if>- <xsl:value-of select="$image"/>- </xsl:attribute>- <xsl:attribute name="style">- <xsl:if test="$width">width: <xsl:value-of select="$width"/>px;</xsl:if>- <xsl:if test="$height">height: <xsl:value-of select="$height"/>px;</xsl:if>- </xsl:attribute>- </img></a>- </xsl:if>- </xsl:for-each>- </xsl:if>-<!-- Message of the day -->- <xsl:if test="$config/motd">- <xsl:for-each select="$config/motd/motd-option">- <xsl:choose>- <xsl:when test="@starts-with='true'">- <xsl:if test="starts-with($path, @pattern)">- <xsl:if test="motd-page/@location='alt' or motd-page/@location='both'">- <hr />- <xsl:value-of select="motd-page"/>- <xsl:if test="motd-page-url">-<xsl:text> (</xsl:text><a>- <xsl:attribute name="href">- <xsl:value-of select="motd-page-url"/>- </xsl:attribute>-<xsl:text>More</xsl:text></a>-<xsl:text>)</xsl:text>- </xsl:if>- </xsl:if>- </xsl:if>- </xsl:when>- <xsl:otherwise>- <xsl:if test="contains($path, @pattern)">- <xsl:if test="motd-page/@location='alt' or motd-page/@location='both'">- <hr />- <xsl:value-of select="motd-page"/>- <xsl:if test="motd-page-url">-<xsl:text> (</xsl:text><a>- <xsl:attribute name="href">- <xsl:value-of select="motd-page-url"/>- </xsl:attribute>-<xsl:text>More</xsl:text></a>-<xsl:text>)</xsl:text>- </xsl:if>- </xsl:if>- </xsl:if>- </xsl:otherwise>- </xsl:choose>- </xsl:for-each>- </xsl:if>- </div>- <div id="roundbottom">- <img- src="{$skin-img-dir}/rc-b-l-15-1body-2menu-3menu.png"- alt="" width="15" height="15" class="corner"- style="display: none" />- </div>-<!--credits in alternative location #2-->- <xsl:comment>+- |alternative credits- +</xsl:comment>- <div id="credit2">- <xsl:if test="$config/credits and ($config/credits/credit/@box-location = 'alt2')">- <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">- <xsl:if test="@box-location = 'alt2'">- <xsl:variable name="name" select="name"/>- <xsl:variable name="url" select="url"/>- <xsl:variable name="image" select="image"/>- <xsl:variable name="width" select="width"/>- <xsl:variable name="height" select="height"/><a href="{$url}">- <img alt="{$name} - logo" title="{$name}" border="0">- <xsl:attribute name="src">- <xsl:if test="not(starts-with($image, 'http://'))">- <xsl:value-of select="$root"/>- </xsl:if>- <xsl:value-of select="$image"/>- </xsl:attribute>- <xsl:attribute name="style">- <xsl:if test="$width">width: <xsl:value-of select="$width"/>px;</xsl:if>- <xsl:if test="$height">height: <xsl:value-of select="$height"/>px;</xsl:if>- </xsl:attribute>- </img></a>- </xsl:if>- </xsl:for-each>- </xsl:if>- </div>- </div>- <xsl:comment>+- |end Menu- +</xsl:comment>- </xsl:template>- <xsl:template name="innermenuli">- <xsl:param name="id"/>- <xsl:variable name="tagid">- <xsl:choose>- <xsl:when test="descendant-or-self::node()/li/div/@class='current'">- <xsl:value-of select="concat('menu_selected_',$id)"/>- </xsl:when>- <xsl:otherwise>- <xsl:value-of select="concat('menu_',concat(font,$id))"/>- </xsl:otherwise>- </xsl:choose>- </xsl:variable>- <xsl:variable name="whichGroup">- <xsl:choose>- <xsl:when test="descendant-or-self::node()/li/div/@class='current'">selectedmenuitemgroup</xsl:when>- <xsl:otherwise>menuitemgroup</xsl:otherwise>- </xsl:choose>- </xsl:variable>- <div class="menutitle" id="{$tagid}Title"- onclick="SwitchMenu('{$tagid}', '{$root}skin/')">- <xsl:if test="contains($tagid, '_selected_')" >- <xsl:attribute name="style">-<xsl:text>background-image: url('</xsl:text>- <xsl:value-of select="$root"/>-<xsl:text>skin/images/chapter_open.gif');</xsl:text>- </xsl:attribute>- </xsl:if>- <xsl:value-of select="h1"/>- </div>- <div class="{$whichGroup}" id="{$tagid}">- <xsl:if test="contains($tagid, '_selected_')" >- <xsl:attribute name="style">-<xsl:text>display: block;</xsl:text>- </xsl:attribute>- </xsl:if>- <xsl:for-each select= "ul/li">- <xsl:choose>- <xsl:when test="a">- <div class="menuitem"><a>- <xsl:attribute name="href">- <xsl:value-of select="a/@href"/>- </xsl:attribute>- <xsl:if test="a/@title!=''">- <xsl:attribute name="title">- <xsl:value-of select="a/@title"/>- </xsl:attribute>- </xsl:if>- <xsl:value-of select="a"/></a>- </div>- </xsl:when>- <xsl:when test="div/@class='current'">- <div class="menupage">- <div class="menupagetitle">- <xsl:value-of select="div" />- </div>- <xsl:if test="$config/toc/@max-depth > 0- and contains($minitoc-location,'menu')- and count(//tocitems/tocitem) >= $config/toc/@min-sections">- <div class="menupageitemgroup">- <xsl:for-each select = "//tocitems/tocitem">- <div class="menupageitem">- <xsl:choose>- <xsl:when test="string-length(@title)>15"><a href="{@href}" title="{@title}">- <xsl:value-of select="substring(@title,0,20)" />...</a>- </xsl:when>- <xsl:otherwise><a href="{@href}">- <xsl:value-of select="@title" /></a>- </xsl:otherwise>- </xsl:choose>- </div>- </xsl:for-each>- </div>- </xsl:if>- </div>- </xsl:when>- <xsl:otherwise>- <xsl:call-template name = "innermenuli">- <xsl:with-param name="id" select="concat($id, '.', position())"/>- </xsl:call-template>- </xsl:otherwise>- </xsl:choose>- </xsl:for-each>- </div>- </xsl:template>-<!--+- |Generates the PDF link- +-->- <xsl:template match="div[@id='skinconf-pdflink']">- <xsl:if test="not($config/disable-pdf-link) or $disable-pdf-link = 'false'">- <div class="pdflink" title="Portable Document Format"><a href="{$filename-noext}.pdf" class="dida">- <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF -icon" />- <br/>- PDF</a>- </div>- </xsl:if>- </xsl:template>- <xsl:template match="div[@id='skinconf-xmllink']">- <xsl:if test="not($config/disable-xml-link) or $disable-xml-link = 'false'">- <div class="xmllink" title="raw XML"><a href="{$filename-noext}.xml" class="dida">- <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML - icon" />- <br/>- XML</a>- </div>- </xsl:if>- </xsl:template>- <xsl:template match="div[@id='skinconf-txtlink']">- <xsl:if test="not($config/disable-txt-link) or $disable-txt-link = 'false'">- <div class="podlink" title="Plain Text Documentation"><a href="{$filename-noext}.txt" class="dida">- <img class="skin" src="{$skin-img-dir}/txtdoc.png" alt="TXT - icon" />- <br/>- TXT</a>- </div>- </xsl:if>- </xsl:template>- <xsl:template match="div[@id='skinconf-podlink']">- <xsl:if test="not($config/disable-pod-link) or $disable-pod-link = 'false'">- <div class="podlink" title="Plain Old Documentation"><a href="{$filename-noext}.pod" class="dida">- <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" />- <br/>- POD</a>- </div>- </xsl:if>- </xsl:template>- <xsl:template match="div[@id='skinconf-printlink']">- <xsl:if test="not($config/disable-print-link) or $disable-print-link = 'false'">-<script type="text/javascript" language="Javascript">-function printit() {- if (window.print) {- window.focus();- window.print();- }-}- </script>-<script type="text/javascript" language="Javascript">-var NS = (navigator.appName == "Netscape");-var VERSION = parseInt(navigator.appVersion);-if (VERSION > 3) {- document.write('<div class="printlink" title="Print this Page">');- document.write(' <a href="javascript:printit()" class="dida">');- document.write(' <img class="skin" src="{$skin-img-dir}/printer.gif" alt="print - icon" />');- document.write(' <br />');- document.write(' PRINT</a>');- document.write('</div>');-}- </script>- </xsl:if>- </xsl:template>- <xsl:template match="div[@id='disable-font-script']">- <xsl:if test="$disable-font-script = 'false'">- <div class="trail">- <i18n:text >Font size:</i18n:text>-  <input type="button" onclick="ndeSetTextSize('reset'); return false;" title="Reset text" class="resetfont" value="Reset"/>-  <input type="button" onclick="ndeSetTextSize('decr'); return false;" title="Shrink text" class="smallerfont" value="-a"/>-  <input type="button" onclick="ndeSetTextSize('incr'); return false;" title="Enlarge text" class="biggerfont" value="+a"/>- </div>- </xsl:if>- </xsl:template>- <xsl:template match="div[@id='skinconf-toc-page']">-<!-- Message of the day -->- <xsl:if test="$config/motd">- <xsl:for-each select="$config/motd/motd-option">- <xsl:choose>- <xsl:when test="@starts-with='true'">- <xsl:if test="starts-with($path, @pattern)">- <xsl:if test="motd-page/@location='page' or motd-page/@location='both'">- <div id="motd-area">- <xsl:value-of select="motd-page"/>- <xsl:if test="motd-page-url">-<xsl:text> (</xsl:text><a>- <xsl:attribute name="href">- <xsl:value-of select="motd-page-url"/>- </xsl:attribute>-<xsl:text>More</xsl:text></a>-<xsl:text>)</xsl:text>- </xsl:if>- </div>- </xsl:if>- </xsl:if>- </xsl:when>- <xsl:otherwise>- <xsl:if test="contains($path, @pattern)">- <xsl:if test="motd-page/@location='page' or motd-page/@location='both'">- <div id="motd-area">- <xsl:value-of select="motd-page"/>- <xsl:if test="motd-page-url">-<xsl:text> (</xsl:text><a>- <xsl:attribute name="href">- <xsl:value-of select="motd-page-url"/>- </xsl:attribute>-<xsl:text>More</xsl:text></a>-<xsl:text>)</xsl:text>- </xsl:if>- </div>- </xsl:if>- </xsl:if>- </xsl:otherwise>- </xsl:choose>- </xsl:for-each>- </xsl:if>-<!-- Table of Contents ToC -->- <xsl:if test="$config/toc">- <xsl:if test="contains($minitoc-location,'page')">- <xsl:if test="(count(//tocitems/tocitem) >= $config/toc/@min-sections) or (//tocitems/@force = 'true')">- <div id="minitoc-area">- <xsl:call-template name="minitoc">- <xsl:with-param name="tocroot" select="//tocitems"/>- </xsl:call-template>- </div>- </xsl:if>- </xsl:if>- </xsl:if>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/src/documentation/skins/lucene/xslt/html/tab-to-menu.xsl b/lucene/site/src/documentation/skins/lucene/xslt/html/tab-to-menu.xsldeleted file mode 100644index 3253adb0e30..00000000000--- a/lucene/site/src/documentation/skins/lucene/xslt/html/tab-to-menu.xsl+++ /dev/null@@ -1,66 +0,0 @@-<?xml version="1.0"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You 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.--->-<!---This stylesheet generates 'tabs' at the top left of the screen. Tabs are-visual indicators that a certain subsection of the URI space is being browsed.-For example, if we had tabs with paths:--Tab1: ''-Tab2: 'community'-Tab3: 'community/howto'-Tab4: 'community/howto/form/index.html'--Then if the current path was 'community/howto/foo', Tab3 would be highlighted.-The rule is: the tab with the longest path that forms a prefix of the current-path is enabled.--The output of this stylesheet is HTML of the form:- <div class="tab">- ...- </div>--which is then merged by site-to-xhtml.xsl---->-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">- <xsl:import href="../../../common/xslt/html/tab-to-menu.xsl"/>- <xsl:template match="tabs">- <ul id="tabs">- <xsl:call-template name="base-tabs"/>- </ul>- <span id="level2tabs">- <xsl:call-template name="level2tabs"/>- </span>- </xsl:template>- <xsl:template name="pre-separator"></xsl:template>- <xsl:template name="post-separator"></xsl:template>- <xsl:template name="separator"></xsl:template>- <xsl:template name="level2-separator"></xsl:template>- <xsl:template name="selected">- <li class="current"><xsl:call-template name="base-selected"/></li>- </xsl:template>- <xsl:template name="not-selected">- <li><xsl:call-template name="base-not-selected"/></li>- </xsl:template>- <xsl:template name="level2-not-selected">- <xsl:call-template name="base-not-selected"/>- </xsl:template>- <xsl:template name="level2-selected">- <xsl:call-template name="base-selected"/>- </xsl:template>-</xsl:stylesheet>diff --git a/lucene/site/xsl/index.xsl b/lucene/site/xsl/index.xslnew file mode 100644index 00000000000..57d1b773171--- /dev/null+++ b/lucene/site/xsl/index.xsl@@ -0,0 +1,94 @@+<?xml version="1.0" encoding="UTF-8"?>+<!--+ Licensed to the Apache Software Foundation (ASF) under one or more+ contributor license agreements. See the NOTICE file distributed with+ this work for additional information regarding copyright ownership.+ The ASF licenses this file to You 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.+-->+<xsl:stylesheet version="1.0"+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"+ xmlns:str="http://exslt.org/strings"+ extension-element-prefixes="str"+>+ <xsl:param name="buildfiles"/>+ <xsl:param name="version"/>++ <xsl:template match="/">+ <html>+ <head>+ <title><xsl:text>Apache Lucene </xsl:text><xsl:value-of select="$version"/><xsl:text> Documentation</xsl:text></title>+ </head>+ <body>+ <div><img src="lucene_green_300.gif"/></div>+ <h1><xsl:text>Apache Lucene </xsl:text><xsl:value-of select="$version"/><xsl:text> Documentation</xsl:text></h1>+ <p>+ This is the official documentation for <b><xsl:text>Apache Lucene </xsl:text>+ <xsl:value-of select="$version"/></b>. Additional documentation is available in the+ <a href="http://wiki.apache.org/lucene-java">Wiki</a>.+ </p>+ <h2>Index</h2>+ <ul>+ <li><a href="changes/Changes.html">Changes</a></li>+ <li><a href="fileformats.html">File Formats Documentation</a></li>+ <li><a href="scoring.html">Scoring in Lucene</a></li>+ </ul>+ <h2>Getting Started</h2>+ <p>This document is intended as a "getting started" guide. It has three+ audiences: first-time users looking to install Apache Lucene in their+ application; developers looking to modify or base the applications they develop+ on Lucene; and developers looking to become involved in and contribute to the+ development of Lucene. This document is written in tutorial and walk-through+ format. The goal is to help you "get started". It does not go into great depth+ on some of the conceptual or inner details of Lucene.</p>+ <p>Each section listed below builds on one another. More advanced users may+ wish to skip sections.</p>+ <ul>+ <li><a href="demo.html">About the command-line Lucene demo and its usage</a>.+ This section is intended for anyone who wants to use the command-line Lucene+ demo.</li>+ <li><a href="demo2.html">About the sources and implementation for the+ command-line Lucene demo</a>. This section walks through the implementation+ details (sources) of the command-line Lucene demo. This section is intended for+ developers.</li>+ </ul>+ <h2>Javadocs</h2>+ <xsl:call-template name="modules"/>+ </body>+ </html>+ </xsl:template>++ <xsl:template name="modules">+ <ul>+ <xsl:for-each select="str:split($buildfiles,'|')">+ <!-- hack to list "core" first, contains() returns "true" which sorts before "false" if descending: -->+ <xsl:sort select="string(contains(text(), '/core/'))" order="descending" lang="en"/>+ <!-- hack to list "test-framework" at the end, contains() returns "true" which sorts after "false" if ascending: -->+ <xsl:sort select="string(contains(text(), '/test-framework/'))" order="ascending" lang="en"/>+ <!-- sort the remaining build files by path name: -->+ <xsl:sort select="text()" order="ascending" lang="en"/>++ <xsl:variable name="buildxml" select="document(.)"/>+ <xsl:variable name="name" select="$buildxml/*/@name"/>+ <li>+ <xsl:if test="$name='core'">+ <xsl:attribute name="style">font-size:larger; margin-bottom:.5em;</xsl:attribute>+ </xsl:if>+ <b><a href="{$name}/index.html"><xsl:value-of select="$name"/>+ </a><xsl:text>: </xsl:text></b>+ <xsl:value-of select="normalize-space($buildxml/*/description)"/>+ </li>+ </xsl:for-each>+ </ul>+ </xsl:template>++</xsl:stylesheet>diff --git a/solr/common-build.xml b/solr/common-build.xmlindex 1b508d2556b..f3035994f61 100644--- a/solr/common-build.xml+++ b/solr/common-build.xml@@ -196,7 +196,7 @@<copy file="${build.dir}/${fullnamever}.jar" todir="${dist}"/></target>- <property name="lucenedocs" location="${common.dir}/build/docs/api"/>+ <property name="lucenedocs" location="${common.dir}/build/docs"/><!-- dependency to ensure all lucene javadocs are present --><target name="lucene-javadocs" depends="javadocs-lucene-core,javadocs-analyzers-common,javadocs-analyzers-icu,javadocs-analyzers-kuromoji,javadocs-analyzers-phonetic,javadocs-analyzers-smartcn,javadocs-analyzers-morfologik,javadocs-analyzers-stempel,javadocs-analyzers-uima,javadocs-suggest,javadocs-grouping,javadocs-queries,javadocs-queryparser,javadocs-highlighter,javadocs-memory,javadocs-misc,javadocs-spatial"/>@@ -252,7 +252,7 @@<target name="define-lucene-javadoc-url-SNAPSHOT" if="version.contains.SNAPSHOT"><property name="lucene.javadoc.url"- value="${common.dir}/build/docs/api/"/>+ value="${common.dir}/build/docs/"/></target><target name="define-lucene-javadoc-url-release" unless="version.contains.SNAPSHOT">@@ -264,7 +264,7 @@</filterchain></loadproperties><property name="lucene.javadoc.url"- value="http://lucene.apache.org/java/${underscore.version}/api/"/>+ value="http://lucene.apache.org/java/${underscore.version}/"/></target><target name="jar-src" depends="init">