Skip to content

Apache Lucene open-source search software

docs: fix invalid html (#14818)

Robert Muirb009c6231b39
diff --git a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/astgrep/AstGrepPlugin.java b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/astgrep/AstGrepPlugin.java
index 0884fa37569..0744e68cfc6 100644
--- a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/astgrep/AstGrepPlugin.java
+++ b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/astgrep/AstGrepPlugin.java
@@ -66,7 +66,9 @@ public class AstGrepPlugin implements Plugin<Project> {
optionName);
}
- task.setArgs(List.of("scan", "-c", "gradle/validation/ast-grep/sgconfig.yml"));
+ // fail on any rule match regardless of severity level
+ task.setArgs(
+ List.of("scan", "-c", "gradle/validation/ast-grep/sgconfig.yml", "--error"));
});
// Common configuration.
diff --git a/gradle/validation/ast-grep/rules/syntax.yml b/gradle/validation/ast-grep/rules/syntax.yml
new file mode 100644
index 00000000000..823aba71642
--- /dev/null
+++ b/gradle/validation/ast-grep/rules/syntax.yml
@@ -0,0 +1,73 @@
+# This isn't great, for many reasons.
+# But it can prevent trouble with long-tail of various filetypes in the repository.
+# Severity is set low to prevent annoyance in editors (e.g. if it cascades badly)
+# If there is trouble, replace rule with a real linter/compiler instead
+---
+# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/rule.json
+id: css-syntax
+language: css
+rule:
+ kind: ERROR
+message: Parse Error
+severity: hint
+ignores:
+ # css injections in ms-word generated test html files
+ - "**/test/**/charfilter/**"
+note: |
+ Treesitter parse error: editors, code review, and tools may treat it incorrectly.
+ Disable false-positives with `/* ast-grep-ignore */`
+---
+# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/rule.json
+id: html-syntax
+language: html
+rule:
+ kind: ERROR
+message: Parse Error
+severity: hint
+note: |
+ Treesitter parse error: editors, code review, and tools may treat it incorrectly.
+ Disable false-positives with `<!-- ast-grep-ignore -->`
+---
+# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/rule.json
+id: javascript-syntax
+language: javascript
+rule:
+ kind: ERROR
+message: Parse Error
+severity: hint
+note: |
+ Treesitter parse error: editors, code review, and tools may treat it incorrectly.
+ Disable false-positives with `// ast-grep-ignore`
+---
+# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/rule.json
+id: json-syntax
+language: json
+rule:
+ kind: ERROR
+message: Parse Error
+severity: hint
+note: |
+ Treesitter parse error: editors, code review, and tools may treat it incorrectly.
+ Check for trailing commas and comments, which JSON forbids.
+---
+# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/rule.json
+id: python-syntax
+language: python
+rule:
+ kind: ERROR
+message: Parse Error
+severity: hint
+note: |
+ Treesitter parse error: editors, code review, and tools may treat it incorrectly.
+ Disable false-positives with `# ast-grep-ignore`
+---
+# yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/rule.json
+id: yaml-syntax
+language: yml
+rule:
+ kind: ERROR
+message: Parse Error
+severity: hint
+note: |
+ Treesitter parse error: editors, code review, and tools may treat it incorrectly.
+ Disable false-positives with `# ast-grep-ignore`
diff --git a/gradle/validation/ast-grep/tests/syntax.yml b/gradle/validation/ast-grep/tests/syntax.yml
new file mode 100644
index 00000000000..46ea355d019
--- /dev/null
+++ b/gradle/validation/ast-grep/tests/syntax.yml
@@ -0,0 +1,30 @@
+# invalid tests around the (ERROR) node are not possible:
+# instead parsers are just validated to be functional and working
+---
+id: css-syntax
+valid:
+ - |
+ color: red;
+---
+id: html-syntax
+valid:
+ - |
+ <html></html>
+---
+id: javascript-syntax
+valid:
+ - x = 1;
+---
+id: json-syntax
+valid:
+ - |
+ []
+---
+id: python-syntax
+valid:
+ - x = 1
+---
+id: yaml-syntax
+valid:
+ - |
+ foo: bar
diff --git a/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.html b/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.html
index 00311c16ed5..3408fa98658 100644
--- a/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.html
+++ b/lucene/queryparser/docs/xml/LuceneContribQuery.dtd.html
@@ -62,7 +62,7 @@ Some clauses may represent optional Query criteria while others represent mandat
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#BooleanQuery'>BooleanQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='BooleanQuery_fieldName'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='BooleanQuery_fieldName'></a>
<br /><table class='attributeTitle' summary="fieldName"><tr><td class='leftAttributeTitle'>
@fieldName</td><td class='rightAttributeTitle'>
Attribute of <a href='#BooleanQuery'>BooleanQuery</a>
@@ -82,8 +82,8 @@ Attribute of <a href='#BooleanQuery'>BooleanQuery</a>
&lt;Clause&gt;</td><td class='rightElementTitle'>
Child of <a href='#BooleanFilter'>BooleanFilter</a>, <a href='#BooleanQuery'>BooleanQuery</a>
</td></tr></table>
-<p>NOTE: "Clause" tag has 2 modes of use - inside &lt;BooleanQuery> in which case only "query" types can be
-child elements - while in a &lt;BooleanFilter> clause only "filter" types can be contained.</p><blockquote><table summary='element info'><tr>
+<p>NOTE: "Clause" tag has 2 modes of use - inside &lt;BooleanQuery&gt; in which case only "query" types can be
+child elements - while in a &lt;BooleanFilter&gt; clause only "filter" types can be contained.</p><blockquote><table summary='element info'><tr>
<td class='construct'><table summary="&lt;Clause&gt;'s children">
<thead>
<tr><th class='title' colspan='2'>&lt;Clause&gt;'s children</th></tr>
@@ -204,7 +204,7 @@ Child of <a href='#BoostQuery'>BoostQuery</a>, <a href='#Clause'>Clause</a>, <a
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#UserQuery'>UserQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='UserQuery_fieldName'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='UserQuery_fieldName'></a>
<br /><table class='attributeTitle' summary="fieldName"><tr><td class='leftAttributeTitle'>
@fieldName</td><td class='rightAttributeTitle'>
Attribute of <a href='#UserQuery'>UserQuery</a>
@@ -252,7 +252,7 @@ Child of <a href='#BoostQuery'>BoostQuery</a>, <a href='#Clause'>Clause</a>, <a
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermQuery'>TermQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermQuery_fieldName'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermQuery_fieldName'></a>
<br /><table class='attributeTitle' summary="fieldName"><tr><td class='leftAttributeTitle'>
@fieldName</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermQuery'>TermQuery</a>
@@ -267,7 +267,7 @@ Child of <a href='#BoostQuery'>BoostQuery</a>, <a href='#Clause'>Clause</a>, <a
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermQuery'>TermQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermQuery_fieldName'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermQuery_fieldName'></a>
<br /><table class='attributeTitle' summary="fieldName"><tr><td class='leftAttributeTitle'>
@fieldName</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermQuery'>TermQuery</a>
@@ -283,7 +283,7 @@ Unlike UserQuery element, this does not parse any special characters to control
of producing a Query parse error given any user input</p><p><span class='inTextTitle'>Example:</span> <em>Match on text from a database description (which may contain characters that
are illegal characters in the standard Lucene Query syntax used in the UserQuery tag</em>
</p><pre>
- &lt;TermsQuery fieldName="description"&gt;Smith & Sons (Ltd) : incorporated 1982&lt;/TermsQuery&gt;
+ &lt;TermsQuery fieldName="description"&gt;Smith &amp; Sons (Ltd) : incorporated 1982&lt;/TermsQuery&gt;
</pre><p></p><blockquote><table summary='element info'><tr>
<td class='construct'><table summary="&lt;TermsQuery&gt;'s attributes"><tr>
<th class='title' colspan='3'>&lt;TermsQuery&gt;'s attributes</th>
@@ -298,7 +298,7 @@ are illegal characters in the standard Lucene Query syntax used in the UserQuery
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermsQuery'>TermsQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermsQuery_fieldName'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermsQuery_fieldName'></a>
<br /><table class='attributeTitle' summary="fieldName"><tr><td class='leftAttributeTitle'>
@fieldName</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermsQuery'>TermsQuery</a>
@@ -351,7 +351,7 @@ Child of <a href='#BoostQuery'>BoostQuery</a>, <a href='#Clause'>Clause</a>, <a
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#FilteredQuery'>FilteredQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='Query'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='Query'></a>
<br /><table class='elementTitle' summary="Query"><tr><td class='leftElementTitle'>
&lt;Query&gt;</td><td class='rightElementTitle'>
Child of <a href='#FilteredQuery'>FilteredQuery</a>, <a href='#BoostingQuery'>BoostingQuery</a>
@@ -442,7 +442,7 @@ Attribute of <a href='#RangeFilter'>RangeFilter</a>
@upperTerm</td><td class='rightAttributeTitle'>
Attribute of <a href='#RangeFilter'>RangeFilter</a>
</td></tr></table>
-<p>The upper-most term value for this field (must be >= lowerTerm)</p><p><span class='inTextTitle'>Required</span></p><a name='RangeFilter_includeLower'></a>
+<p>The upper-most term value for this field (must be &gt;= lowerTerm)</p><p><span class='inTextTitle'>Required</span></p><a name='RangeFilter_includeLower'></a>
<br /><table class='attributeTitle' summary="includeLower"><tr><td class='leftAttributeTitle'>
@includeLower</td><td class='rightAttributeTitle'>
Attribute of <a href='#RangeFilter'>RangeFilter</a>
@@ -484,7 +484,7 @@ Attribute of <a href='#NumericRangeQuery'>NumericRangeQuery</a>
@upperTerm</td><td class='rightAttributeTitle'>
Attribute of <a href='#NumericRangeQuery'>NumericRangeQuery</a>
</td></tr></table>
-<p>The upper-most term value for this field (must be >= lowerTerm and a valid native java numeric type)</p><p><span class='inTextTitle'>Required</span></p><a name='NumericRangeQuery_type'></a>
+<p>The upper-most term value for this field (must be &gt;= lowerTerm and a valid native java numeric type)</p><p><span class='inTextTitle'>Required</span></p><a name='NumericRangeQuery_type'></a>
<br /><table class='attributeTitle' summary="type"><tr><td class='leftAttributeTitle'>
@type</td><td class='rightAttributeTitle'>
Attribute of <a href='#NumericRangeQuery'>NumericRangeQuery</a>
@@ -543,7 +543,7 @@ Attribute of <a href='#NumericRangeFilter'>NumericRangeFilter</a>
@upperTerm</td><td class='rightAttributeTitle'>
Attribute of <a href='#NumericRangeFilter'>NumericRangeFilter</a>
</td></tr></table>
-<p>The upper-most term value for this field (must be >= lowerTerm and a valid native java numeric type)</p><p><span class='inTextTitle'>Required</span></p><a name='NumericRangeFilter_type'></a>
+<p>The upper-most term value for this field (must be &gt;= lowerTerm and a valid native java numeric type)</p><p><span class='inTextTitle'>Required</span></p><a name='NumericRangeFilter_type'></a>
<br /><table class='attributeTitle' summary="type"><tr><td class='leftAttributeTitle'>
@type</td><td class='rightAttributeTitle'>
Attribute of <a href='#NumericRangeFilter'>NumericRangeFilter</a>
@@ -752,7 +752,7 @@ Attribute of <a href='#SpanFirst'>SpanFirst</a>
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#SpanFirst'>SpanFirst</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='SpanNot'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='SpanNot'></a>
<br /><table class='elementTitle' summary="SpanNot"><tr><td class='leftElementTitle'>
&lt;SpanNot&gt;</td><td class='rightElementTitle'>
Child of <a href='#BoostQuery'>BoostQuery</a>, <a href='#Clause'>Clause</a>, <a href='#SpanFirst'>SpanFirst</a>, <a href='#Include'>Include</a>, <a href='#CachedFilter'>CachedFilter</a>, <a href='#SpanOr'>SpanOr</a>, <a href='#SpanNear'>SpanNear</a>, <a href='#Exclude'>Exclude</a>, <a href='#Query'>Query</a>
@@ -860,7 +860,7 @@ Child of <a href='#BoostQuery'>BoostQuery</a>, <a href='#Clause'>Clause</a>, <a
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#ConstantScoreQuery'>ConstantScoreQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='FuzzyLikeThisQuery'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='FuzzyLikeThisQuery'></a>
<br /><table class='elementTitle' summary="FuzzyLikeThisQuery"><tr><td class='leftElementTitle'>
&lt;FuzzyLikeThisQuery&gt;</td><td class='rightElementTitle'>
Child of <a href='#BoostQuery'>BoostQuery</a>, <a href='#Clause'>Clause</a>, <a href='#CachedFilter'>CachedFilter</a>, <a href='#Query'>Query</a>
@@ -897,7 +897,7 @@ is not expected to know about the standard query operators for fuzzy, boolean or
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#FuzzyLikeThisQuery'>FuzzyLikeThisQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='FuzzyLikeThisQuery_maxNumTerms'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='FuzzyLikeThisQuery_maxNumTerms'></a>
<br /><table class='attributeTitle' summary="maxNumTerms"><tr><td class='leftAttributeTitle'>
@maxNumTerms</td><td class='rightAttributeTitle'>
Attribute of <a href='#FuzzyLikeThisQuery'>FuzzyLikeThisQuery</a>
@@ -980,7 +980,7 @@ appears commonly in the index.</em>
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#LikeThisQuery'>LikeThisQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='LikeThisQuery_fieldNames'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='LikeThisQuery_fieldNames'></a>
<br /><table class='attributeTitle' summary="fieldNames"><tr><td class='leftAttributeTitle'>
@fieldNames</td><td class='rightAttributeTitle'>
Attribute of <a href='#LikeThisQuery'>LikeThisQuery</a>
@@ -1053,7 +1053,7 @@ on the match score.</p><p><span class='inTextTitle'>Example:</span> <em>Find doc
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#BoostingQuery'>BoostingQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='BoostQuery'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='BoostQuery'></a>
<br /><table class='elementTitle' summary="BoostQuery"><tr><td class='leftElementTitle'>
&lt;BoostQuery&gt;</td><td class='rightElementTitle'>
Child of <a href='#BoostingQuery'>BoostingQuery</a>
@@ -1097,7 +1097,7 @@ Child of <a href='#BoostingQuery'>BoostingQuery</a>
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#BoostQuery'>BoostQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. A boost of >0 but &lt;1
+<p>Optional boost for matches on this query. A boost of &gt;0 but &lt;1
effectively demotes results from Query that match this BoostQuery.</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='DuplicateFilter'></a>
<br /><table class='elementTitle' summary="DuplicateFilter"><tr><td class='leftElementTitle'>
&lt;DuplicateFilter/&gt;</td><td class='rightElementTitle'>
diff --git a/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html b/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html
index 90d75d3629b..5117abe1c8f 100644
--- a/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html
+++ b/lucene/queryparser/docs/xml/LuceneCoreQuery.dtd.html
@@ -80,7 +80,7 @@ Some clauses may represent optional Query criteria while others represent mandat
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#BooleanQuery'>BooleanQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='BooleanQuery_fieldName'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='BooleanQuery_fieldName'></a>
<br /><table class='attributeTitle' summary="fieldName"><tr><td class='leftAttributeTitle'>
@fieldName</td><td class='rightAttributeTitle'>
Attribute of <a href='#BooleanQuery'>BooleanQuery</a>
@@ -100,8 +100,8 @@ Attribute of <a href='#BooleanQuery'>BooleanQuery</a>
&lt;Clause&gt;</td><td class='rightElementTitle'>
Child of <a href='#BooleanQuery'>BooleanQuery</a>
</td></tr></table>
-<p>NOTE: "Clause" tag has 2 modes of use - inside &lt;BooleanQuery> in which case only "query" types can be
-child elements - while in a &lt;BooleanFilter> clause only "filter" types can be contained.</p><blockquote><table summary='element info'><tr>
+<p>NOTE: "Clause" tag has 2 modes of use - inside &lt;BooleanQuery&gt; in which case only "query" types can be
+child elements - while in a &lt;BooleanFilter&gt; clause only "filter" types can be contained.</p><blockquote><table summary='element info'><tr>
<td class='construct'><table summary="&lt;Clause&gt;'s children">
<thead>
<tr><th class='title' colspan='2'>&lt;Clause&gt;'s children</th></tr>
@@ -210,7 +210,7 @@ Child of <a href='#Clause'>Clause</a>, <a href='#Query'>Query</a>, <a href='#Cac
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#UserQuery'>UserQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='UserQuery_fieldName'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='UserQuery_fieldName'></a>
<br /><table class='attributeTitle' summary="fieldName"><tr><td class='leftAttributeTitle'>
@fieldName</td><td class='rightAttributeTitle'>
Attribute of <a href='#UserQuery'>UserQuery</a>
@@ -258,7 +258,7 @@ Child of <a href='#Clause'>Clause</a>, <a href='#Query'>Query</a>, <a href='#Cac
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermQuery'>TermQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermQuery_fieldName'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermQuery_fieldName'></a>
<br /><table class='attributeTitle' summary="fieldName"><tr><td class='leftAttributeTitle'>
@fieldName</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermQuery'>TermQuery</a>
@@ -273,7 +273,7 @@ Child of <a href='#Include'>Include</a>, <a href='#Clause'>Clause</a>, <a href='
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermQuery'>TermQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermQuery_fieldName'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermQuery_fieldName'></a>
<br /><table class='attributeTitle' summary="fieldName"><tr><td class='leftAttributeTitle'>
@fieldName</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermQuery'>TermQuery</a>
@@ -289,7 +289,7 @@ Unlike UserQuery element, this does not parse any special characters to control
of producing a Query parse error given any user input</p><p><span class='inTextTitle'>Example:</span> <em>Match on text from a database description (which may contain characters that
are illegal characters in the standard Lucene Query syntax used in the UserQuery tag</em>
</p><pre>
- &lt;TermsQuery fieldName="description"&gt;Smith & Sons (Ltd) : incorporated 1982&lt;/TermsQuery&gt;
+ &lt;TermsQuery fieldName="description"&gt;Smith &amp; Sons (Ltd) : incorporated 1982&lt;/TermsQuery&gt;
</pre><p></p><blockquote><table summary='element info'><tr>
<td class='construct'><table summary="&lt;TermsQuery&gt;'s attributes"><tr>
<th class='title' colspan='3'>&lt;TermsQuery&gt;'s attributes</th>
@@ -304,7 +304,7 @@ are illegal characters in the standard Lucene Query syntax used in the UserQuery
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermsQuery'>TermsQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermsQuery_fieldName'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='TermsQuery_fieldName'></a>
<br /><table class='attributeTitle' summary="fieldName"><tr><td class='leftAttributeTitle'>
@fieldName</td><td class='rightAttributeTitle'>
Attribute of <a href='#TermsQuery'>TermsQuery</a>
@@ -357,7 +357,7 @@ Child of <a href='#Clause'>Clause</a>, <a href='#Query'>Query</a>, <a href='#Cac
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#FilteredQuery'>FilteredQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='Query'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='Query'></a>
<br /><table class='elementTitle' summary="Query"><tr><td class='leftElementTitle'>
&lt;Query&gt;</td><td class='rightElementTitle'>
Child of <a href='#FilteredQuery'>FilteredQuery</a>
@@ -442,7 +442,7 @@ Attribute of <a href='#RangeFilter'>RangeFilter</a>
@upperTerm</td><td class='rightAttributeTitle'>
Attribute of <a href='#RangeFilter'>RangeFilter</a>
</td></tr></table>
-<p>The upper-most term value for this field (must be >= lowerTerm)</p><p><span class='inTextTitle'>Required</span></p><a name='RangeFilter_includeLower'></a>
+<p>The upper-most term value for this field (must be &gt;= lowerTerm)</p><p><span class='inTextTitle'>Required</span></p><a name='RangeFilter_includeLower'></a>
<br /><table class='attributeTitle' summary="includeLower"><tr><td class='leftAttributeTitle'>
@includeLower</td><td class='rightAttributeTitle'>
Attribute of <a href='#RangeFilter'>RangeFilter</a>
@@ -484,7 +484,7 @@ Attribute of <a href='#NumericRangeQuery'>NumericRangeQuery</a>
@upperTerm</td><td class='rightAttributeTitle'>
Attribute of <a href='#NumericRangeQuery'>NumericRangeQuery</a>
</td></tr></table>
-<p>The upper-most term value for this field (must be >= lowerTerm and a valid native java numeric type)</p><p><span class='inTextTitle'>Required</span></p><a name='NumericRangeQuery_type'></a>
+<p>The upper-most term value for this field (must be &gt;= lowerTerm and a valid native java numeric type)</p><p><span class='inTextTitle'>Required</span></p><a name='NumericRangeQuery_type'></a>
<br /><table class='attributeTitle' summary="type"><tr><td class='leftAttributeTitle'>
@type</td><td class='rightAttributeTitle'>
Attribute of <a href='#NumericRangeQuery'>NumericRangeQuery</a>
@@ -543,7 +543,7 @@ Attribute of <a href='#NumericRangeFilter'>NumericRangeFilter</a>
@upperTerm</td><td class='rightAttributeTitle'>
Attribute of <a href='#NumericRangeFilter'>NumericRangeFilter</a>
</td></tr></table>
-<p>The upper-most term value for this field (must be >= lowerTerm and a valid native java numeric type)</p><p><span class='inTextTitle'>Required</span></p><a name='NumericRangeFilter_type'></a>
+<p>The upper-most term value for this field (must be &gt;= lowerTerm and a valid native java numeric type)</p><p><span class='inTextTitle'>Required</span></p><a name='NumericRangeFilter_type'></a>
<br /><table class='attributeTitle' summary="type"><tr><td class='leftAttributeTitle'>
@type</td><td class='rightAttributeTitle'>
Attribute of <a href='#NumericRangeFilter'>NumericRangeFilter</a>
@@ -752,7 +752,7 @@ Attribute of <a href='#SpanFirst'>SpanFirst</a>
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#SpanFirst'>SpanFirst</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='SpanNot'></a>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p><a name='SpanNot'></a>
<br /><table class='elementTitle' summary="SpanNot"><tr><td class='leftElementTitle'>
&lt;SpanNot&gt;</td><td class='rightElementTitle'>
Child of <a href='#Include'>Include</a>, <a href='#Clause'>Clause</a>, <a href='#Query'>Query</a>, <a href='#SpanNear'>SpanNear</a>, <a href='#SpanOr'>SpanOr</a>, <a href='#SpanFirst'>SpanFirst</a>, <a href='#Exclude'>Exclude</a>, <a href='#CachedFilter'>CachedFilter</a>
@@ -857,4 +857,4 @@ Child of <a href='#Clause'>Clause</a>, <a href='#Query'>Query</a>, <a href='#Cac
@boost</td><td class='rightAttributeTitle'>
Attribute of <a href='#ConstantScoreQuery'>ConstantScoreQuery</a>
</td></tr></table>
-<p>Optional boost for matches on this query. Values > 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p></body></html>
+<p>Optional boost for matches on this query. Values &gt; 1</p><p><span class='inTextTitle'>Default value</span>: 1.0</p></body></html>