无法从Solr集合中删除文件中的密钥。无法删除Solr密钥
更新Solr的收集与此:
<cfoutput query="fileQuery">
<cfset theFile = defaultpath & "#fileID#.pdf" />
<cfif fileExists(theFile)>
<cfindex
action="update"
collection="file_vault_solr"
type="file"
key="#theFile#"
title="#documentName#"
body="fileNumber,documentName"
custom1="/filevault/#filealias#"
custom2="#fileNumber#"
custom3="#documentName#"
>
</cfif>
</cfoutput>
但是,试图删除目录中的钥匙时,它根本不起作用。以下是用于(尝试)删除密钥的代码:
<cfoutput query="deletedFile">
<cfset theFile = defaultpath & "#fileID#.pdf" />
<!--- Remove the deleted file from the collection. --->
<cfindex
collection="file_vault_solr"
type="file"
action="Delete"
key="#theFile#"
>
</cfoutput>
但是,密钥不会被删除。唯一有效的工作是清除整个目录并重新索引所有文件。
任何见解?
你有没有发现过?我目前有同样的问题。 – Tomalak
@Tomalak:不,从未找到解决方案。现在我不再在那里工作了,所以如果我愿意,我不能回去确认。 – ale
无赖。这个问题让我很紧张。 Adobe似乎没有人再测试这些东西。 – Tomalak