1

I ingested large binary into MarkLogic using the content ingestion framework, leaving the binary files on the file system, and I used the transformation to extract metadata from the images into properties. When I search on this content using the search API it does not return facets. I believe that this happens because the fragment returned contains the pointer to the image on the file system and not the properties document. Is there any way around this? I'd like to created faceted navigation base upon the properties.

4

2 回答 2

2

如果您查看 5.0 的搜索开发人员指南,第 2.2.6 节讨论了 5.0 中新增的片段范围选项,我认为这将处理您的情况。那里有一个示例,展示了如何使用本地片段范围在 last-modified 属性上创建一个方面,听起来这种模式可能就是您正在寻找的。

于 2012-02-21T01:07:44.020 回答
0

如果搜索 API 不处理此用例,您可以随时调用cts:element-valuescts:frequency自己。您仍然可以使用search:parseandsearch:resolve来提供查询解析和基本搜索结果。

http://docs.marklogic.com/5.0doc/docapp.xqy#search.xqy?start=1&cat=all&query=cts%3Aelement-values&button=search

于 2012-02-19T22:34:57.220 回答