简体   繁体   English

ColdFusion 11 / SOLR中出现奇怪的CFSEARCH错误

[英]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查询,可从数据库中检索SKUStatus值,而DocumentFile是PDF文档的路径(即C:\\PDFs\\document1.pdf )。

The server is a virtual server running: 该服务器是运行以下命令的虚拟服务器:

  • OS: Windows Server 2012 with all of the latest updates 操作系统:Windows Server 2012具有所有最新更新
  • IIS: 8.5 IIS:8.5
  • ColdFusion: 11 with all of the latest updates ColdFusion:11包含所有最新更新
  • Java: JRE 8 v111 Java:JRE 8 v111

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.

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