首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Carrot2 dcs误差500

Carrot2 dcs误差500
EN

Stack Overflow用户
提问于 2017-11-27 16:14:28
回答 1查看 132关注 0票数 1

我已经在一个web应用程序上安装了Carrot2。我发送一个搜索与不同的选项,如:数量的预期结果,深度水平。我启动dcs (端口8080)并执行我的搜索(目前我正在本地主机上使用wamp )。我在一个新的Carro2Processor中加入了baseurl:http://localhost:8080/dcs/rest

代码语言:javascript
复制
$source = 'etools';
$query = 'myquery';
$algorithm = 'lingo3g';
$processor = new Carrot2Processor();
$job = new Carrot2Job();
$job->setSource($source);
$job->setQuery($query);
$job->setAlgorithm($algorithm);

我用setAttributs()发送我的属性:预期结果数量和深度级别

代码语言:javascript
复制
try {
    $result = $processor->cluster($job);
}

这是我浏览器上的错误:

代码语言:javascript
复制
C:\wamp64\www\lingo3g-php-search\model\Carrot2.php:239:string '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /dcs/rest. Reason:
<pre>    Server Error</pre></p><h3>Caused by:</h3><pre>java.lang.IllegalArgumentException: Unknown component id: etools
    at org.carrot2.core.Controller.resolveComponent(Controller.java:476)
    at org.carrot2.core.Controller.process(Controller.java:316)
    at org.carrot2.core.Controller.process(Controller.jav'... (length=4057)
An error occurred during processing: HTTP error occurred, error code: 500

有人遇到过这个问题吗?谢谢(我忘了:我的apache或php(Wamp)中没有任何错误日志)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-11-29 12:22:17

最近发布的版本似乎将etools文档源重命名为web,而没有更新代码示例。如果将$source = 'etools'更改为$source = 'web',则会看到一些结果。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47515306

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档