Skip to content

Commit 8d38409

Browse files
committed
polish
1 parent 9bb1234 commit 8d38409

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

public/API.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,17 @@ <h3 id="phrase-search">Phrase Search</h3>
645645
<li><strong>IIIF 3.0 fields:</strong> <code class="language-plaintext highlighter-rouge">body.value</code>, <code class="language-plaintext highlighter-rouge">bodyValue</code>, and nested structures in <code class="language-plaintext highlighter-rouge">items</code> and <code class="language-plaintext highlighter-rouge">annotations</code></li>
646646
<li><strong>IIIF 2.1 fields:</strong> <code class="language-plaintext highlighter-rouge">resource.chars</code>, <code class="language-plaintext highlighter-rouge">resource.cnt:chars</code>, and nested structures in AnnotationLists, Canvas <code class="language-plaintext highlighter-rouge">otherContent</code>, and Manifest <code class="language-plaintext highlighter-rouge">sequences</code></li>
647647
</ul>
648+
<p>
649+
Search behavior:
650+
</p>
651+
<ul>
652+
<li>Searches are case-insensitive</li>
653+
<li>Uses a "slop" value (default: 2) that allows up to 2 intervening words between search terms</li>
654+
<li>Words don't need to be directly adjacent, providing flexibility while maintaining phrase coherence</li>
655+
<li>More precise than standard text search for multi-word queries</li>
656+
<li>Results are sorted by relevance score (highest first)</li>
657+
<li>A <code class="language-plaintext highlighter-rouge">__rerum.score</code> property is added to each result indicating match quality</li>
658+
</ul>
648659
<p>
649660
Phrase matching examples with slop: 2:
650661
</p>

0 commit comments

Comments
 (0)