-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch-config.xml
More file actions
85 lines (85 loc) · 6.12 KB
/
search-config.xml
File metadata and controls
85 lines (85 loc) · 6.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="UTF-8"?>
<search-config>
<label>Testimonia: Advanced Search</label>
<desc>
<p>This advanced function searches the TEI XML records for all testimonia. </p>
<p> You may wish to expand your search by using wildcard characters to increase results. See
<a href="#" data-toggle="collapse" data-target="#searchTips">search tips</a> for
more details. </p>
<div id="searchTips" class="panel panel-default collapse"> { let $search-config :=
if($collection != '') then concat($config:app-root, '/',
string(config:collection-vars($collection)/@app-root),'/','search-config.xml') else
concat($config:app-root, '/','search-config.xml') return
if(doc-available($search-config)) then doc($search-config)//*:search-tips else () }
</div>
</desc>
<!-- Uses Lucene full text search make sure any elements used in the search-config.xml
are added to the collection.xconf file in your data repository. -->
<input type="text" label="Keyword " name="keyword" element="." title="Use this box to search for keywords anywhere in the testimonia." placeholder="Search by keywords anywhere..." keyboard="yes"/>
<input type="text" label="Title" name="title" element="tei:titleStmt/tei:title" title="Use this box to search only within titles." placeholder="Search by keywords in titles..." keyboard="yes"/>
<input type="text" label="Author" name="author" element="tei:titleStmt/tei:author" title="Use this box to search only within author names." placeholder="Search by author name..." keyboard="yes"/>
<input type="text" label="Place Name" name="placeName" element="tei:place/tei:placeName" title="Use this box to search only within place names." placeholder="Search by keywords in place names..." keyboard="yes"/>
<!-- Removing person names since there are none in the data yet <input type="text" label="Person Name" name="persName" element="tei:person/tei:persName" search-tip="Search People" keyboard="yes"/> -->
<search-tips>
<h4>Wildcard Characters:</h4>
<p>Given the prevalence of variant spellings in names, using Wildcard Characters may
help.</p>
<p>
<strong>"?"</strong> can be inserted as a variant for any single character.</p>
<div class="indent">
<p>Thus a search for: <div class="btn-group code-grp" role="group" style="width:100%;">
<span class="btn code">Procopi?s</span>
<a href="./search.html?q=Procopi?s" type="button" class="btn btn-primary">
<span class="glyphicon glyphicon-search"/> </a>
</div> returns results which contain either "Procopius" or "Procopios".</p>
</div>
<p>
<strong>"*"</strong> can be inserted as a variant for multiple characters or a truncated
word.</p>
<div class="indent">
<p>Thus a search for: <div class="btn-group code-grp" role="group" style="width:100%;">
<span class="btn code">Καισαρ*</span>
<a href="./search.html?q=Καισαρ*" type="button" class="btn btn-primary">
<span class="glyphicon glyphicon-search"/> </a>
</div> returns results for "Καισαρείᾳ" and "Καισαρέων" and more.</p>
</div>
<p class="bg-info" style="padding:.5em;">
<small>Note: Because the sources we quote use a variety of transliteration formats,
Caesarea-Maritima.org ignores diacritics and punctuation in searching; for example,
use of "ʿ" is not required to find results with this diacritical mark.</small>
</p>
<h4>Fuzzy Search Character</h4>
<p>Appending the character <strong>"~"</strong> after a word returns results for words that
are close but not exact matches. This type of search can be useful for ingoring differences in accent marks or vocalization.</p>
<div class="indent">
<p>Thus a search for <div class="btn-group code-grp" role="group" style="width:100%;">
<span class="btn code">πόλεως~</span>
<a href="./search.html?q=πόλεως~" type="button" class="btn btn-primary">
<span class="glyphicon glyphicon-search"/> </a>
</div> returns results which contain "πόλεως" but also " πόλεων", "πόλεις", and other words
that are "fuzzy" matches for "πόλεως".</p>
</div>
<h4>Exact Phrase Searches</h4>
<p>To find an exact phrase, it should be enclosed in double quotes.</p>
<div class="indent">
<p>Thus <div class="btn-group code-grp" role="group" style="width:100%;">
<span class="btn code">"Constantius II"</span>
<a href="./search.html?keyword="Constantius II"" type="button" class="btn btn-primary">
<span class="glyphicon glyphicon-search"/> </a>
</div> returns only results with that exact phrase, while several results are found
for the words "Constantius" without "II".</p>
</div>
<h4>Proximity Characters</h4>
<p>To find two or more words which occur within a specified range of each other, one can append the character "~"
followed by a number to an "Exact Phrase" search. This allows one to search for two or more words that occur within a
specified distance of each other as defined by number of words.</p>
<p>Thus
<div class="btn-group code-grp" role="group" style="width:100%;">
<span class="btn code">"tower+strato"~2</span>
<a href="/search.html?keyword="tower%2Bstrato"~2" type="button" class="btn btn-primary">
<span class="glyphicon glyphicon-search"/>
</a>
</div>
finds results in which the words "tower" and "strato" occur within two words of each other such as in the phrase "Tower of Strato".</p>
</search-tips>
</search-config>