C2-Tutorial: distance operator section completed
Change-Id: I8078ad9ccc37696d126280ce6bbf9d4ad6dd7224
diff --git a/templates/doc/ql/cosmas-2.html.ep b/templates/doc/ql/cosmas-2.html.ep
index f0be87f..df40bbb 100644
--- a/templates/doc/ql/cosmas-2.html.ep
+++ b/templates/doc/ql/cosmas-2.html.ep
@@ -86,6 +86,9 @@
<p>Distance operators rely on the <%= embedded_link_to 'doc', 'default foundry', 'data', 'annotation' %> annotation for document structures.</p>
+ <p>In case a query contains numerous distance operators, they need to be nested in parentheses:</p>
+ %= doc_query cosmas2 => '(Tag /+w2 offenen) /+w1 Tür'
+
<h4>Word Distance Operator</h4>
<p>The word distance operator <code>w</code> defines how many words are allowed or are not allowed in-between two search operands.</p>
@@ -134,14 +137,15 @@
<p>The KWIC result of including paragraph distance queries will likely exceed the supported maximum length of matches in KorAP and will therefore be cut.</p>
</blockquote>
- <h4>Multiple Distance Operators</h4>
-
- %= under_construction
-
- <h4>Nesting of multiple Distance Operations</h4>
-
- <p>In case a query contains multiple distance operators, they need to be nested in parentheses.</p>
- <%= doc_query cosmas2 => '(Tag /+w2 offenen) /+w1 Tür' %>
+ <h4>Multi-Distance Operators</h4>
+
+ <p>Distance operators can be combined to further limit the result set. The distance conditions are separated by comma (without spaces).</p>
+ <p>Search for "ein Fest" in a sentence:</p>
+ %= doc_query cosmas2 => 'ein /+w1,s0 Fest'
+
+ <h4>Omitted Distance Operator</h4>
+ <p>If the distance operator is omitted between two operands, KorAP is searching for a <code>/+w1</code> distance:</p>
+ %= doc_query cosmas2 => 'runder Tisch'
</section>