[英]Strange CFSEARCH error in ColdFusion 11/SOLR
I am getting a strange exception thrown every time I call CFSEARCH
on my collection 每当我在集合上调用
CFSEARCH
,都会引发一个奇怪的异常
Code: 码:
<cfsearch
name="qCollectionSearch_docs"
collection="mydocuments"
criteria="#LCase(Trim(LOCAL.Criteria))#"
contextPassages="1"
contextHighlightBegin=""
contextHighlightEnd="" />
Exception: 例外:
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)
This code has worked without incident in the past, but suddenly started throwing this exception on every request. 这段代码过去一直有效,但是突然开始在每个请求上抛出此异常。
The collection is built with the following code: 该集合使用以下代码构建:
<cfindex
query="LOCAL.qDocuments"
collection="mydocuments"
action="refresh"
type="file"
key="DocumentFile"
custom1="SKU"
custom2="Status" />
...where LOCAL.qDocuments is a SQL query that retrieves the SKU
and Status
values from a database and DocumentFile
is a path to a PDF document (ie C:\\PDFs\\document1.pdf
). ...其中LOCAL.qDocuments是一个SQL查询,可从数据库中检索
SKU
和Status
值,而DocumentFile
是PDF文档的路径(即C:\\PDFs\\document1.pdf
)。
The server is a virtual server running: 该服务器是运行以下命令的虚拟服务器:
I have tried restarting the ColdFusion 11 Application Server
service and the ColdFusion 11 Add-on Services
service, but this did not help. 我尝试重新启动
ColdFusion 11 Application Server
服务和ColdFusion 11 Add-on Services
服务,但这没有帮助。
Pass the value of the key, rather than the word 'documentFile': 传递键的值,而不是单词“ documentFile”:
<cfindex
key="#documentFile#"
/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.