简体   繁体   English

Lucene在露天游览

[英]Lucene Search in Alfresco

I have a folder named as "12345" inside the document library of my site in Alfresco. 我在Alfresco网站的文档库中有一个名为“ 12345”的文件夹。 Using Lucene search I want to to fetch all of my contents that reside in this folder.: 使用Lucene搜索,我想获取此文件夹中的所有内容。

I have tried: 我努力了:

search.luceneSearch("PATH:\"/app:company_home/st:sites/cm:"+siteName+"/cm:documentLibrary/cm:12345/*\"");

search.luceneSearch("PATH:\"/app:company_home/st:sites/cm:"+siteName+"/cm:documentLibrary/*\" AND @cm\\:name:\""+entityID+"\"");

+PATH:"/app:company_home/app:user_homes//* " AND +@cm\:name:"12345"

But using the above path does not go to the Specific Folder. 但是,使用上述路径不会转到“特定文件夹”。 How do I access the Folder inside a site? 如何访问网站内的文件夹?

Try this. 尝试这个。 Any folder start with integer is Prefixed with the string " x003" then after the First Integer you have to Concatenate " " 任何以整数开头的文件夹都以字符串“ x003”为前缀, 然后在“第一个整数”之后必须连接“

So If folder name is "12345" it would be treated as _x0031_2345. 因此,如果文件夹名称为“ 12345”,它将被视为_x0031_2345。 And the Path will be "/app:company_home/st:sites/cm:sitename/cm:documentLibrary/cm:_x0031_2345" I hope it helped. 路径将是“ / app:company_home / st:sites / cm:sitename / cm:documentLibrary / cm:_x0031_2345”,希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM