-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Register binary attribute in collection.xconf.xsd #5432
Comments
I'd be happy to submit a PR adding I just need to know the allowed values. The example code on the Lucene documentation page shows (The other attributes in this schema that take If that's a correct interpretation of the code, I'd add a <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> Is this a correct interpretation of what the code supports / implies? |
As I read the code, you are correct. @adamretter |
@dizzzz Thanks! |
Describe the bug
PR #4541 added support for indexing fields as binary values, controlled by a new
@binary
attribute on the<field>
element. The PR neglected to register this new attribute in collection.xconf.xsd.As a result, eXide, for example, flags uses of this attribute. See #5431 (comment).
Expected behavior
The xconf schema should define the attribute and its allowed values.
To Reproduce
Validate this document from the linked issue against collection.xconf.xsd:
Via the linked issue:
Screenshots
n/a
Context (please always complete the following information)
Additional context
conf.xml
? n/aThe text was updated successfully, but these errors were encountered: