WEB开发网
开发学院软件开发Java 利用SOLR搭建企业搜索平台 之八(solr 实现去掉重... 阅读

利用SOLR搭建企业搜索平台 之八(solr 实现去掉重复的搜索结果,打SOLR-236_collapsing.patch补丁)

 2009-09-10 00:00:00 来源:WEB开发网   
核心提示: ant patch,把下面的内容保存为 patch-build.xml 放到 D:\apache-solr-1.3.0 目录下: Xml代码 <?xmlversion="1.0"encoding="UTF-8"?><projectname

ant patch,把下面的内容保存为 patch-build.xml 放到 D:\apache-solr-1.3.0 目录下:

Xml代码

<?xml version="1.0" encoding="UTF-8"?>  
<project name="solr-patch" default="apply-patch" basedir=".">   
  
  <target name="apply-patch" description="Apply a patch file. Set -Dpatch.file">  
    <patch patchfile="${patch.file}" strip="0"/>  
  </target>  
</project>
 

ant 打补丁:

Html代码 D:\apache-solr-1.3.0>ant -Dpatch.file=SOLR-236_collapsing.patch -f patch-build.xml 
Buildfile: patch-build.xml 
 
apply-patch: 
[patch] patching file src/test/org/apache/solr/search/TestDocSet.java 
[patch] patching file src/java/org/apache/solr/search/CollapseFilter.java 
[patch] patching file src/java/org/apache/solr/search/DocSet.java 
[patch] patching file src/java/org/apache/solr/search/NegatedDocSet.java 
[patch] patching file src/java/org/apache/solr/search/SolrIndexSearcher.java 
[patch] patching file src/java/org/apache/solr/common/params/CollapseParams.java 
[patch] patching file src/java/org/apache/solr/handler/component/CollapseComponent.java 
 
BUILD SUCCESSFUL 
Total time: 0 seconds 

上一页  1 2 3 4 5  下一页

Tags:利用 SOLR 搭建

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接