我正在编写一个REST API扩展,在这里我需要知道词典值到文档的映射。
给定一个词典(和后备范围索引),如何获取文档URI到词典(索引)值的映射?
在XQuery中,对于元素的值,请使用
cts:value-tuples(cts-uri-reference(), cts:element-reference("foo"))
对于字段的值,请使用:
cts:value-tuples(cts-uri-reference(), cts:field-reference("foo"))
也可以看看
cts:collection-reference,
cts:element-attribute-reference,
cts:path-reference,
cts:geospatial-attribute-pair-reference
cts:geospatial-element-child-reference
cts:geospatial-element-pair-reference
cts:geospatial-element-reference
cts:geospatial-path-reference
通过为cts:value-tuples()提供更多参数,您还可以获得关于co(或n向)发生元组的映射。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句