-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.xsd
107 lines (107 loc) · 5.1 KB
/
schema.xsd
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
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="redis-search" type="RediSearchType"/>
<xs:complexType name="stopsWordsType">
<xs:sequence>
<xs:element type="xs:string" name="word" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="idType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" use="required">
<xs:simpleType xml:base="xs:string">
<xs:restriction>
<xs:enumeration value="getter" />
<xs:enumeration value="property" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="abstractFieldType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:boolean" name="noindex" use="optional"/>
<xs:attribute type="xs:string" name="property" use="optional"/>
<xs:attribute type="xs:string" name="getter" use="optional"/>
<xs:attribute type="xs:boolean" name="sortable" use="optional"/>
<xs:attribute type="xs:boolean" name="unnormalized" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="textFieldType">
<xs:simpleContent>
<xs:extension base="abstractFieldType">
<xs:attribute type="xs:string" name="nostem" use="optional"/>
<xs:attribute type="xs:float" name="weight" use="optional"/>
<xs:attribute type="xs:string" name="phonetic" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="numericFieldType">
<xs:simpleContent>
<xs:extension base="abstractFieldType"/>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="tagFieldType">
<xs:simpleContent>
<xs:extension base="abstractFieldType">
<xs:attribute type="xs:string" name="separator" use="optional" />
<xs:attribute type="xs:boolean" name="casesensitive" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="geoFieldType">
<xs:simpleContent>
<xs:extension base="abstractFieldType"/>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="fieldsType">
<xs:sequence>
<xs:element type="textFieldType" name="text-field" maxOccurs="unbounded" minOccurs="0"/>
<xs:element type="numericFieldType" name="numeric-field" maxOccurs="unbounded" minOccurs="0"/>
<xs:element type="tagFieldType" name="tag-field" maxOccurs="unbounded" minOccurs="0"/>
<xs:element type="geoFieldType" name="geo-field" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="suggestionType">
<xs:attribute type="xs:string" name="name" use="required"/>
<xs:attribute type="xs:float" name="score" use="optional"/>
<xs:attribute type="xs:string" name="payload" use="optional"/>
<xs:attribute type="xs:string" name="group" use="optional"/>
<xs:attribute type="xs:boolean" name="increment" use="optional"/>
</xs:complexType>
<xs:complexType name="suggestionsType">
<xs:sequence>
<xs:element type="suggestionType" name="property" maxOccurs="unbounded" minOccurs="0"/>
<xs:element type="suggestionType" name="getter" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="classType">
<xs:sequence>
<xs:element type="stopsWordsType" name="stops-words" maxOccurs="1" minOccurs="0">
<xs:unique name="UniqueStopWord">
<xs:selector xpath="*"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
<xs:element type="fieldsType" name="fields" maxOccurs="1" minOccurs="0">
<xs:unique name="UniqueFieldName">
<xs:selector xpath="*"/>
<xs:field xpath="."/>
</xs:unique>
</xs:element>
<xs:element type="suggestionsType" name="suggestions" maxOccurs="1" minOccurs="0"/>
<xs:element type="idType" name="id" maxOccurs="1" minOccurs="0"/>
</xs:sequence>
<xs:attribute type="xs:string" name="name" use="required"/>
<xs:attribute type="xs:string" name="indexname" use="optional"/>
<xs:attribute type="xs:string" name="documentprefix" use="optional"/>
</xs:complexType>
<xs:complexType name="RediSearchType">
<xs:sequence>
<xs:element type="classType" name="class" maxOccurs="unbounded" minOccurs="1" />
</xs:sequence>
</xs:complexType>
</xs:schema>