有什么不对这个查询的Solr [英] What is wrong with this solr query
问题描述
我要查找所有类似的Solr中的特定文件的文件。我已经安装了Solr和提出了一些疑问。我试图使查询给出了一个错误,我不能让出或研究在互联网上。你能给我一些这方面的光?我使用的客户端solrnet但如果solrnet不适合于这种类型的查询我会很乐意用纯Solr和读取XML。
I want to find all the documents that is similar to a specific document within solr. I have installed solr and made some queries. The query I am trying to make gives an error which I cannot make out or research on the internet. Can you give me some light on this? I am using solrnet client but if solrnet is not appropriate for this type of query I will gladly use pure solr and read the XML.
下面是我使用的查询:
的 HTTP://192.168。 1.10:8080 / Solr的/ MLT q = ID:12安培; mlt.fl =内容和放大器; mlt.mindf = 1&安培; mlt.mintf = 1
下面是我的XML模式此处
here is my schema xml here
<fields>
<field name="id" type="string" indexed="true" stored="true" />
<field name="title" type="string" indexed="true" stored="false"/>
<field name="content" type="text_general" indexed="true" stored="false"/>
</fields>
下面是我收到的错误:
Here is the error I am receiving:
推荐答案
看来你的避风港'T注册solrconfig.xml中的MLT处理程序。一个简单的注册看起来像这样:
It seems you haven't registered the MLT handler in solrconfig.xml. A simple registration looks like this:
<requestHandler name="/mlt" class="org.apache.solr.handler.MoreLikeThisHandler"/>
这篇关于有什么不对这个查询的Solr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!