forked from fumiyas/hyperestraier-encore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
estresult.dtd
145 lines (112 loc) · 3.64 KB
/
estresult.dtd
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!-- The Document Type Definition for Output of the Command `estcmd' -->
<!-- root element -->
<!ELEMENT estresult (meta?,document*)>
<!-- meta: meta information -->
<!-- document: a document -->
<!ATTLIST estresult
xmlns CDATA #FIXED "http://fallabs.com/hyperestraier/xmlns/search"
version NMTOKEN #REQUIRED>
<!-- @xmlns: namespace of search result of Hyper Estraier -->
<!-- @version: version number of Hyper Estraier -->
<!-- element for meta information -->
<!ELEMENT meta (node?,hit+,time?,total,link*)>
<!-- node: information of the node server -->
<!-- hit: a hint of a word in the phrase -->
<!-- time: elapsed time for search -->
<!-- total: information of the index -->
<!-- link: information of a link -->
<!-- element for information of the node server -->
<!ELEMENT node EMPTY>
<!ATTLIST node
url CDATA #REQUIRED>
<!-- @url: the URL of the server -->
<!-- element for a hint of a word in the phrase -->
<!ELEMENT hit EMPTY>
<!ATTLIST hit
key CDATA #IMPLIED
number NMTOKEN #REQUIRED
auxiliary NMTOKEN #IMPLIED>
<!-- @key: the normalized string -->
<!-- @number: the number of corresponding documents -->
<!-- element for elapsed time for search -->
<!ELEMENT time EMPTY>
<!ATTLIST time
total NMTOKEN #REQUIRED
index NMTOKEN #IMPLIED>
<!-- @total: total elapsed time -->
<!-- @index: elapsed time for the local inverted index only -->
<!-- element for information of the index -->
<!ELEMENT total EMPTY>
<!ATTLIST total
docnum NMTOKEN #REQUIRED
wordnum NMTOKEN #REQUIRED>
<!-- @docnum: the number of documents -->
<!-- @wordnum: the number of unique words -->
<!-- element for information of a link -->
<!ELEMENT link EMPTY>
<!ATTLIST link
url CDATA #REQUIRED
label CDATA #REQUIRED
credit NMTOKEN #REQUIRED
docnum NMTOKEN #REQUIRED
wordnum NMTOKEN #REQUIRED
size NMTOKEN #REQUIRED
hit CDATA #REQUIRED
time CDATA #IMPLIED>
<!-- @url: URL -->
<!-- @label: label -->
<!-- @credit: credit -->
<!-- @docnum: number of documents -->
<!-- @wordnum: number of words -->
<!-- @size: size of the database -->
<!-- @hit: number of hits -->
<!-- @time: elapsed time -->
<!-- element for a document -->
<!ELEMENT document (attribute*,vector?,shadow*,snippet?)>
<!-- attribute: an attribute -->
<!-- vector: the keyword vector -->
<!-- shadow: an eclipsed document -->
<!-- snippet: the body text -->
<!ATTLIST document
id NMTOKEN #REQUIRED
uri CDATA #REQUIRED>
<!-- @id: the ID number -->
<!-- @uri: the URI -->
<!-- element for an attribute -->
<!ELEMENT attribute EMPTY>
<!ATTLIST attribute
name CDATA #REQUIRED
value CDATA #REQUIRED>
<!-- @name: the name -->
<!-- @value: the value -->
<!-- element for the keyword vector -->
<!ELEMENT vector (element)*>
<!-- element: an element -->
<!-- element for the keyword vector -->
<!ELEMENT element EMPTY>
<!ATTLIST element
key CDATA #REQUIRED
number NMTOKEN #REQUIRED>
<!-- @key: the normalized string -->
<!-- @number: the number of corresponding documents -->
<!-- element for an eclipsed document -->
<!ELEMENT shadow EMPTY>
<!ATTLIST shadow
uri CDATA #REQUIRED
similarity NMTOKEN #REQUIRED>
<!-- @uri: the URI -->
<!-- @similarity: similarity to the front document -->
<!-- element for the snippet -->
<!ELEMENT snippet (#PCDATA|key|delimiter)*>
<!-- #PCDATA: an arbitarary string -->
<!-- key: a keyword string -->
<!-- delimiter: a delimiter -->
<!-- element for a keyword string -->
<!ELEMENT key (#PCDATA)>
<!-- #PCDATA: an arbitarary string -->
<!ATTLIST key
normal CDATA #REQUIRED>
<!-- @normal: the normalized string -->
<!-- element for a delimiter -->
<!ELEMENT delimiter EMPTY>
<!-- END OF FILE -->