gpt4 book ai didi

alfresco - 搜索内容编码

转载 作者:行者123 更新时间:2023-12-03 22:22:01 24 4
gpt4 key购买 nike

在 Alfresco 中,可以搜索内容为 mimetype 的文档,如下所示:

@cm\:content.mimetype:text/plain

search documenatition将此描述为

Content has some additional information about the mimetype and size which can also be used in queries. These are of the form @cm:content.mimetype.

问题

是否也可以搜索内容编码?这没有效果:

@cm\:content.encoding:UTF-8

最佳答案

我使用的是 Alfresco 4.2.d,在 Repository 搜索中我得到了例如的结果。像这样搜索时的 UTF-16BE 编码:

 @cm\:content.encoding:UTF-16BE

网址:http://localhost:8080/share/page/search?t=%40cm%5C%3Acontent.encoding%3AUTF-16BE&s=&a=true&r=true

或者当使用服务器端 JavaScript 搜索(网络脚本)时:

var query = "@cm\\:content.mimetype:text/plain AND @cm\\:content.encoding:UTF-16BE";
var nodes = search.luceneSearch(query, null, true, 1000);

关于alfresco - 搜索内容编码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18960505/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com