每次我在集合中调用CFSEARCH时,都会抛出一个奇怪的异常
代码:
<cfsearch
name="qCollectionSearch_docs"
collection="mydocuments"
criteria="#LCase(Trim(LOCAL.Criteria))#"
contextPassages="1"
contextHighlightBegin=""
contextHighlightEnd="" />例外:
Detail: Error executing query : Unexpected EOF; was expecting a close tag for element
Message: There was a problem while attempting to perform a search.
StackTrace: coldfusion.tagext.search.SearchTag$SearchProblemException: There was a problem while attempting to perform a search.
at coldfusion.tagext.search.SolrUtils.formatSearchResult(SolrUtils.java:2022)
at coldfusion.tagext.search.SolrUtils.getSearchResult(SolrUtils.java:2516)
at coldfusion.tagext.search.SearchTag.doSolrSearch(SearchTag.java:394)
at coldfusion.tagext.search.SearchTag.doSearch(SearchTag.java:243)
at coldfusion.tagext.search.SearchTag.doStartTag(SearchTag.java:185)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2991)此代码在过去没有发生事故,但突然开始对每个请求抛出此异常。
集合由以下代码生成:
<cfindex
query="LOCAL.qDocuments"
collection="mydocuments"
action="refresh"
type="file"
key="DocumentFile"
custom1="SKU"
custom2="Status" />...where LOCAL.qDocuments是一个SQL查询,它从数据库检索SKU和Status值,而DocumentFile是通向PDF文档的路径(即C:\PDFs\document1.pdf)。
服务器是一个虚拟服务器,运行:
我尝试过重新启动ColdFusion 11 Application Server服务和ColdFusion 11 Add-on Services服务,但这并没有帮助。
发布于 2016-11-20 09:19:42
传递键的值,而不是单词“documentFile”:
<cfindex
key="#documentFile#"
/>https://stackoverflow.com/questions/40680685
复制相似问题