Skip to content

Commit

Permalink
fix: register binary attribute in xconf schema
Browse files Browse the repository at this point in the history
  • Loading branch information
joewiz committed Aug 30, 2024
1 parent 51e1663 commit 5ed34ea
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions schema/collection.xconf.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
<xs:attributeGroup ref="cc:typeOpt"/>
<xs:attributeGroup ref="cc:analyzerOpt"/>
<xs:attributeGroup ref="cc:storeOpt"/>
<xs:attributeGroup ref="cc:binaryOpt"/>
</xs:complexType>

<xs:complexType name="matchAttrBoostType">
Expand Down Expand Up @@ -288,6 +289,34 @@
<xs:attributeGroup name="attributeReq">
<xs:attribute name="attribute" type="xs:NCName" use="required"/>
</xs:attributeGroup>
<xs:attributeGroup name="binaryOpt">
<xs:attribute name="binary" use="optional">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="yes">
<xs:annotation>
<xs:documentation>Index as a binary field</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="true">
<xs:annotation>
<xs:documentation>Index as a binary field</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="no">
<xs:annotation>
<xs:documentation>Do not index as a binary field</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="false">
<xs:annotation>
<xs:documentation>Do not index as a binary field</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<xs:attributeGroup name="boostOpt">
<xs:attribute name="boost" type="xs:double" use="optional" form="unqualified"/>
</xs:attributeGroup>
Expand Down

0 comments on commit 5ed34ea

Please sign in to comment.