Apache Lucene open-source search software
fix broken links
Robert Muird4550d9277c5
diff --git a/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.java b/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.javaindex ae46ba3f4b4..a2645e2fe5a 100644--- a/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.java+++ b/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.java@@ -442,7 +442,7 @@ import org.apache.lucene.util.SmallFloat;* <b><i>t.getBoost()</i></b>* is a search time boost of term <i>t</i> in the query <i>q</i> as* specified in the query text- * (see <A HREF="../../../../../../queryparsersyntax.html#Boosting a Term">query syntax</A>),+ * (see <A HREF="{@docRoot}/../queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Boosting_a_Term">query syntax</A>),* or as set by application calls to* {@link org.apache.lucene.search.Query#setBoost(float) setBoost()}.* Notice that there is really no direct API for accessing a boost of one term in a multi term query,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 08ef4a6ae88..1cb0e0677d5 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@@ -45,27 +45,27 @@ enabling substantial customization to how a query is created.<a href="#Fields">Fields</a></li><li>-<a href="#Term Modifiers">Term Modifiers</a>+<a href="#Term_Modifiers">Term Modifiers</a><ul class="minitoc"><li>-<a href="#Wildcard Searches">Wildcard Searches</a>+<a href="#Wildcard_Searches">Wildcard Searches</a></li><li>-<a href="#Fuzzy Searches">Fuzzy Searches</a>+<a href="#Fuzzy_Searches">Fuzzy Searches</a></li><li>-<a href="#Proximity Searches">Proximity Searches</a>+<a href="#Proximity_Searches">Proximity Searches</a></li><li>-<a href="#Range Searches">Range Searches</a>+<a href="#Range_Searches">Range Searches</a></li><li>-<a href="#Boosting a Term">Boosting a Term</a>+<a href="#Boosting_a_Term">Boosting a Term</a></li></ul></li><li>-<a href="#Boolean operators">Boolean Operators</a>+<a href="#Boolean_operators">Boolean Operators</a><ul class="minitoc"><li><a href="#OR">OR</a>@@ -88,10 +88,10 @@ enabling substantial customization to how a query is created.<a href="#Grouping">Grouping</a></li><li>-<a href="#Field Grouping">Field Grouping</a>+<a href="#Field_Grouping">Field Grouping</a></li><li>-<a href="#Escaping Special Characters">Escaping Special Characters</a>+<a href="#Escaping_Special_Characters">Escaping Special Characters</a></li></ul></div>@@ -172,11 +172,11 @@ enabling substantial customization to how a query is created.</div>-<a name="N1006D"></a><a name="Term Modifiers"></a>+<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>+<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>@@ -189,7 +189,7 @@ enabling substantial customization to how a query is created.<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>+<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>@@ -197,11 +197,11 @@ enabling substantial customization to how a query is created.<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>+<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>+<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) valuesare between the lower and upper bound specified by the Range Query.@@ -214,7 +214,7 @@ enabling substantial customization to how a query is created.<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 bycurly brackets.</p>-<a name="N100DA"></a><a name="Boosting a Term"></a>+<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>@@ -229,7 +229,7 @@ enabling substantial customization to how a query is created.-<a name="N100FA"></a><a name="Boolean operators"></a>+<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.@@ -280,7 +280,7 @@ enabling substantial customization to how a query is created.</div>-<a name="N10170"></a><a name="Field Grouping"></a>+<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>@@ -289,7 +289,7 @@ enabling substantial customization to how a query is created.</div>-<a name="N10180"></a><a name="Escaping Special Characters"></a>+<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>