繁体   English   中英

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

[英]Strange CFSEARCH error in ColdFusion 11/SOLR

每当我在集合上调用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" />

...其中LOCAL.qDocuments是一个SQL查询,可从数据库中检索SKUStatus值,而DocumentFile是PDF文档的路径(即C:\\PDFs\\document1.pdf )。

该服务器是运行以下命令的虚拟服务器:

  • 操作系统:Windows Server 2012具有所有最新更新
  • IIS:8.5
  • ColdFusion:11包含所有最新更新
  • Java:JRE 8 v111

我尝试重新启动ColdFusion 11 Application Server服务和ColdFusion 11 Add-on Services服务,但这没有帮助。

传递键的值,而不是单词“ documentFile”:

<cfindex
key="#documentFile#"
/>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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