我已经在 Web 应用程序上安装了 Carrot2。我发送带有不同选项的搜索,例如:预期结果的数量、深度级别。我启动 dcs(端口 8080)并执行我的搜索(目前我在 localhost 上使用 wamp)。我用 baseurl 初始化了一个新的 Carro2Processor:http://localhost:8080/dcs/rest
$source = 'etools';
$query = 'myquery';
$algorithm = 'lingo3g';
$processor = new Carrot2Processor();
$job = new Carrot2Job();
$job->setSource($source);
$job->setQuery($query);
$job->setAlgorithm($algorithm);
我用 setAttributs() 发送我的属性:预期结果的数量和深度级别
try {
$result = $processor->cluster($job);
}
这是我在浏览器上的错误:
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) 中没有任何错误日志)