本文介绍了如何使用 Lucene Query 找到 alfresco 空文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Lucene 查询 检索子节点列表为空的特定节点中的文件夹列表.

I want to retrieve the list of folders in a specific node whose list of childrens is empty using Lucene query.

我创建了这个查询:

+PATH:"/app:company_home/cm:contexts/cm:ctx_exploitation/cm:runs/cm:Run_322645//."+Children is empty.

但效果不佳.

执行此操作的正确 Lucene 语法是什么

What is the right Lucene syntax to do this

推荐答案

无法使用 Lucene 查询查找空文件夹.但是,在 alfresco 中有一些 java 服务和 javascript API像 Java 中的FileFolderService"和 javascript 中的childByNamePath",使用它们,您可以编写逻辑并找到空文件夹.

There is no way to find empty folders using a Lucene query.However, there are some java services and javascript APIs in alfrescolike 'FileFolderService' in Java and 'childByNamePath' in javascript,using them you can write your logic and find empty folders.

这篇关于如何使用 Lucene Query 找到 alfresco 空文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 21:25
查看更多