提问人:B Polit 提问时间:11/10/2023 更新时间:11/10/2023 访问量:48
范围索引未应用于 eXist-DB 中的字段(未显示在 Monex 中)
Range Index not applied to field in eXist-DB (not shown in Monex)
问:
我不确定,这是一个错误,还是我做错了什么(或者我是否有错误的假设)。
我有一个包含一个文档的集合:
<test bar="baz">foo</test>
还有一个:collection.xconf
<collection xmlns="http://exist-db.org/collection-config/1.0">
<index xmlns:xs="http://www.w3.org/2001/XMLSchema">
<range>
<create qname="test">
<field name="bar-attr" match="@bar" type="xs:string"/>
</create>
</range>
</index>
</collection>
现在我假设,当在 Monex 中查看时,索引 for(在集合的索引中)列出了 (此处) 的值。如果我将配置切换为:bar-attr
@bar
baz
<collection xmlns="http://exist-db.org/collection-config/1.0">
<index xmlns:xs="http://www.w3.org/2001/XMLSchema">
<range>
<create qname="@bar"/>
</range>
</index>
</collection>
baz
正如预期的那样,是索引的一部分。
现在我的问题:
- 字段值是否未在 monex 的索引视图中列出?
- 还是我对这些领域的理解完全错误?
注意:我在基于 Apple Silicon 的 Mac 上的 Docker-Container 中使用 eXist-db 6.2.0。但是这个问题似乎也存在于其他平台上的 Docker 外部运行的实例中(我可以在 Linux VM 中重现它)。
答: 暂无答案
评论
range:index-keys-for-field