Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Search 将solr与NLP集成_Search_Solr_Lucene_Nlp - Fatal编程技术网

Search 将solr与NLP集成

Search 将solr与NLP集成,search,solr,lucene,nlp,Search,Solr,Lucene,Nlp,我正在开发Solr4.8.1版本。我想将solr与NLP集成,以提高搜索相关性。我不能 找出一个好的教程,解释它的配置、输出及其对Solr的好处 它尝试了以下配置: <fieldType name="text_opennlp" class="solr.TextField"> <analyzer> <tokenizer class="solr.OpenNLPTokenizerFactory" sentenceModel="opennlp/en-

我正在开发Solr4.8.1版本。我想将solr与NLP集成,以提高搜索相关性。我不能 找出一个好的教程,解释它的配置、输出及其对Solr的好处

它尝试了以下配置:

<fieldType name="text_opennlp" class="solr.TextField">
  <analyzer>
    <tokenizer class="solr.OpenNLPTokenizerFactory"
      sentenceModel="opennlp/en-sent.bin"
      tokenizerModel="opennlp/en-token.bin"
    />
  </analyzer>
</fieldType>
您是否运行了中提到的修补程序

它使你能够只保留名词和动词


提示:检查有效负载中的值的分析,因为它们与树库示例不同。

我已经看到了链接,但找不到jar文件。我不知道如何添加补丁文件。请帮助。我正在执行这些步骤,但仍然失败:->在/data/->cd/data/solr-4.8.1/;->已从下载所有四个文件;->patch-p0-i LUCENE-2899.patch出现以下错误:在输入行5找不到要修补的文件可能您使用了错误的-p或-strip选项?仅使用最新的修补程序。我已经共享了我正在使用的链接和步骤。是否有我遗漏的任何步骤或我应该使用的任何其他链接?。请提出建议。您可以检查配线5,看看它试图做什么。然后检查操作是否有效或是否需要更改某些内容。
Caused by: org.apache.solr.common.SolrException: Plugin init failure for [schema.xml]   fieldType "text_opennlp": Plugin init failure for [schema.xml] analyzer/tokenizer: Error loading class 'solr.OpenNLPTokenizerFactory