首页 \ 问答 \ 在Solr 4.7.2中应用补丁1093(Applying Patch 1093 in Solr 4.7.2)

在Solr 4.7.2中应用补丁1093(Applying Patch 1093 in Solr 4.7.2)

我试图在solr中实现Multiple Queries Single Request功能,并找到了此路径SOLR-1093。 我有两个选项来添加此功能。 首先是构建代码,获取war文件并将其部署到tomcat中并使用它或将补丁应用到solr主干。

第一个选项不起作用,出现以下错误:

common.compile-core:[javac]将133个源文件编译为\ lucene-solr-multi-request-handler \ lucene \ build \ test-framework \ classes \ java [javac] error:error reading \ lucene-solr-multi-请求处理程序\ lucene的\测试框架\ lib中\蚂蚁1.8.2.jar; 打开zip文件时出错[javac] 1错误

BUILD FAILED \ lucene-solr-multi-request-handler \ solr \ build.xml:343:执行此行时发生以下错误:\ lucene-solr-multi-request-handler \ lucene \ module-build.xml:97 :执行此行时发生以下错误:\ lucene-solr-multi-request-handler \ lucene \ common-build.xml:489:执行此行时发生以下错误:\ lucene-solr-multi-request-handler \ lucene \ common-build.xml:1621:编译失败; 详细信息请参阅编译器错误输出。

第二选择:我不知道如何应用补丁。 我看过很多页面,它们被要求引用这个wiki页面( https://wiki.apache.org/solr/HowToContribute#Working_With_Patches )。 但是这并没有帮助。 在那里它被作为solr树干给出。 我不确定,从哪里下载,以及如何应用此补丁?

任何人都可以请帮助提供解决方案的任何选项将是非常有益的。

提前致谢。


I am trying to implement Multiple Queries Single Request feature in solr and found this path SOLR-1093. I have two options to add this feature. First is to build the code, get a war file and deployed it in tomcat and use it Or to apply the patch to solr trunk.

First option didn't work, am getting the following error:

common.compile-core: [javac] Compiling 133 source files to \lucene-solr-multi-request-handler\lucene\build\test-framework\classes\java [javac] error: error reading \lucene-solr-multi-request-handler\lucene\test-framework\lib\ant-1.8.2.jar; error in opening zip file [javac] 1 error

BUILD FAILED \lucene-solr-multi-request-handler\solr\build.xml:343: The following error occurred while executing this line: \lucene-solr-multi-request-handler\lucene\module-build.xml:97: The following error occurred while executing this line: \lucene-solr-multi-request-handler\lucene\common-build.xml:489: The following error occurred while executing this line: \lucene-solr-multi-request-handler\lucene\common-build.xml:1621: Compile failed; see the compiler error output for details.

Second Option: i don't know how to apply patch. I have seen many pages, where it is asked to refer this wiki page (https://wiki.apache.org/solr/HowToContribute#Working_With_Patches). But that didn't help. There it is given as solr trunk. am not sure, from where to download that and how to apply this patch?

Can anyone please help in providing solution to either of the options would be very helpful.

Thanks in advance.


原文:https://stackoverflow.com/questions/41041566
更新时间:2023-10-25 19:10

最满意答案

您可以在周围使用项目,并使用rendered属性有条件地显示片段。

<ui:fragment rendered="#{loginController.authenticated}">
    <li><a href="#{request.contextPath}/logout">Logout</a></li>
</ui:fragment>
<ui:fragment rendered="#{!loginController.authenticated}">
    <li class="active"><a href="#{request.contextPath}/login">Login</a></li>
    <li><a href="#{request.contextPath}/signup">Sign Up</a></li>
</ui:fragment>

You can use around you li items and use the rendered attribute to display the fragment conditionally.

<ui:fragment rendered="#{loginController.authenticated}">
    <li><a href="#{request.contextPath}/logout">Logout</a></li>
</ui:fragment>
<ui:fragment rendered="#{!loginController.authenticated}">
    <li class="active"><a href="#{request.contextPath}/login">Login</a></li>
    <li><a href="#{request.contextPath}/signup">Sign Up</a></li>
</ui:fragment>

相关问答

更多
  • 我很困惑。 我发现JSF 2.0具有隐式的CSRF保护: JSF 2.0如何防止CSRF 这种隐式保护仅适用于POST请求(即带页面)。 另一方面,根据文章http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/JSF-CSRF-Demo/JSF2.2CsrfDemo.html,我们应该将以下元素添加到faces-config.xml包含JSF页面列表的faces-config.xml文件。
  • 我认为没有最好的一个,因为每个原型都带有一个不想要的东西。 因为每个人都不同,所以总是需要一些修改。 我会尝试appfuse原型: http : //appfuse.org/display/APF/AppFuse+QuickStart mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-light-jsf-archetype -DarchetypeVersion=2 ...
  • 您可以在周围使用项目,并使用rendered属性有条件地显示片段。
  • Logout
  • 来自评论: html不允许面部servlet解析。 请将您的文件更改为xhtml:这些文件是通过打开标准xml(您还放置xmlns声明)来创建的 此代码段直接取自我目前正在处理的Web应用程序。
  • 这不起作用,因为h:outputText不接受文档中所述的子元素: 如果此元素具有子元素,则默认情况下必须忽略它们。 实现可以提供允许此元素呈现其子元素的配置选项。 尝试使用以下代码可以解决您的问题: 请注意,您还可以执行以下操作:
    尝试使用高级模式下三个按钮附带的primefaces组件fileUpload : 选择 , 上传 , 取消 。 您可以通过更改选项标签 , uploadLabel , cancelLabel来编辑按钮上的文本。 关于样式,我建议改变按钮的css类中的样式,更改颜色或图标。 Try primefaces component fileUpload that comes with three buttons on advanced mode : choose, upload, cancel. You can ed ...
  • 如果clock.js依赖于jQuery.js ,则无法在jQuery.js之前加载jQuery.js 。 您应该在浏览器控制台中看到错误 切换加载顺序 如果clock.js是一个需要初始化的插件,你还需要在两个库依赖项之后添加该初始化代码 If ...
  • 从上面完成评论作为最后一期已经解决...... 对于工作流程1:我发现了这个并且它有效: http : //www.oracle.com/technetwork/articles/java/jsf22-1377252.html 但它似乎仅限于查询参数。 对于工作流程2:我正在使用prettyfaces并且我能够通过使用它来实现它的排序〜(第3.6节): http : //ocpsoft.org/docs/prettyfaces/3.3.3/en-US /html/Configuration.html#con ...
  • 默认情况下,

    相关文章

    更多
  • 顶 Solr 4.7.2的简单配置
  • Solr4.7.2启动时的Index locked for write for core问题分析
  • 利用SOLR搭建企业搜索平台 之八(solr 实现去掉重复的搜索结果,打SOLR-236_collapsing.patch补丁)
  • solr学习笔记一------solr的安装
  • Solr总结
  • solr
  • solr相关文档链接
  • solr各版本的下载地址
  • 配置solr
  • solr学习(1)
  • 最新问答

    更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。