简体   繁体   English

Solr与Carrot2

[英]Solr with Carrot2

I'm trying to integrate Solr with Carrot2 clustering engine.I successfully managed to do clustering via Solr following this link : Result Clustering I'm getting the same output as mentioned in the techproducts example.I'm not able to visualize clustering through carrot when I try to give Solr as source there and process it. 我正在尝试将Solr与Carrot2集群引擎集成。我成功地通过此链接通过Solr进行了集群:结果集群我得到的输出与techproducts示例中提到的相同。我无法通过胡萝卜可视化集群当我尝试提供Solr作为源并对其进行处理时。 If I try so I'm getting the following error- 如果我尝试这样做,则会出现以下错误-

Processing error: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog. 处理错误:javax.xml.transform.TransformerException:javax.xml.transform.TransformerException:com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:序言中不允许内容。 javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Content is not allowed in prolog. javax.xml.transform.TransformerException:javax.xml.transform.TransformerException:com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:序言中不允许内容。

how to rectify this error?? 如何纠正此错误?

This sounds like something is not quite right with the XML file you are trying to use (not sure which one). 听起来您尝试使用的XML文件有些不正确(不确定哪个)。 Check that it looks correct, maybe run it through XML validator. 检查它看起来是否正确,也许可以通过XML验证器运行它。

One - hidden issue - could also be Byte Order Mark (BOM) . 一个隐藏的问题-也可能是字节顺序标记(BOM)

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

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