Solr 5.5.0响应不正确(Solr 5.5.0 response is not proper)
solr mysql响应不正确使用solr 5.5.0这是我的代码
<dataconfig> <datasource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/dbname" user="user" password="password"/> <document name="user"> <entity name="user" query="select * from user"> <field column="id" name="id"/> <field column="name" name="name"/> </entity> </document> </dataconfig>
schema.xml模式文件 ,我正在检索索引的id和名称
<field column="name" name="name" indexed="true" stored="true"/> <field column="id" indexed="true" stored="true" name="id"/>
我的输出
"responseHeader": { "status": 0, "QTime": 5, "params": { "q": "*:*", "indent": "true", "wt": "json", "_": "1456634392166" } }, "response": { "numFound": 38, "start": 0, "docs": [ { "id": "1", "_version_": 1527391572777238500 }
numFound
和id
是正确的name
未来。solr mysql response is not proper am using solr 5.5.0 this is my codes
<dataconfig> <datasource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/dbname" user="user" password="password"/> <document name="user"> <entity name="user" query="select * from user"> <field column="id" name="id"/> <field column="name" name="name"/> </entity> </document> </dataconfig>
schema.xml schema file ,I am retrieving id and name indexed
<field column="name" name="name" indexed="true" stored="true"/> <field column="id" indexed="true" stored="true" name="id"/>
MY output
"responseHeader": { "status": 0, "QTime": 5, "params": { "q": "*:*", "indent": "true", "wt": "json", "_": "1456634392166" } }, "response": { "numFound": 38, "start": 0, "docs": [ { "id": "1", "_version_": 1527391572777238500 }
numFound
andid
is correctname
is not coming.
原文:https://stackoverflow.com/questions/35679927
更新时间:2022-06-29 20:06
最满意答案
您可以在liferay-portlet.xml中设置
<css-class-wrapper>My_Portlet</css-class-wrapper>
有关详情,请参阅: http : //www.liferay.com/community/wiki/-/wiki/Main/Liferay+UI+Guidelines
You can set the
<css-class-wrapper>My_Portlet</css-class-wrapper>
in liferay-portlet.xmlfor details see: http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+UI+Guidelines
相关问答
更多-
Liferay:是否可以通过portlet定义初始化依赖性?(Liferay: Is it possible to define initialization dependency by portlets?)[2022-03-20]
如果我理解正确,您需要在同一页面上的Portlet-B之前呈现Portlet-A。 然后你可以在liferay-portlet.xml定义它:50 render-weight越多,portlet渲染的速度就越快,换句话说,如果render-weight为Portlet- B小于Portlet-A然后它将在Portlet-A之后呈现。 关于DTD中 render-weight更多解释 希望这可以帮助。 If I understand correc ... -
此问题由Liferay补丁lpe5096-ee5209-portal-kernel-jdk6.jar 。 我有效使用的是2011年12月adb6e0590bfc4850c127a792515941d6de5d385e日由Liferay提供的,并且具有SHA-1校验和adb6e0590bfc4850c127a792515941d6de5d385e 。 This issue is resolved by Liferay patch lpe5096-ee5209-portal-kernel-jdk6.jar. T ...
-
Drupal主题只是一堆文件,用它来创建它的编辑器/环境并不重要。 网上有很多教程解释如何制作主题。 http://www.onextrapixel.com/2013/12/27/how-to-create-a-drupal-7-theme-from-scratch/ 谷歌还有更多,你会发现它们。 Drupal theme is just bunch of files and it's not important what editor/environment you use to create it. T ...
-
在您的事件处理程序中,您可以轻松设置 response.setRenderParameter("showSomething", "true"); 然后,在渲染中 if(response.getParameter("showSomething").equals("true")) { // actually show something } else { // just render nothing } (伪代码:添加空检查并使其更加优雅) 您将要隐藏未显示的portlet的portlet边 ...
-
我想你可能有以下选择: 远程Portlet 2.0(WSRP)的Web服务 引用WSRP规范: 远程Portlet Web服务规范定义了一个Web服务接口,用于访问交互式面向表示的Web服务并与之交互。 基本上你需要一个运行的Liferay实例,将你的portlet作为面向表示的Web服务公开给Drupal,它将使用它们并发送回客户端。 好消息是Drupal似乎支持它。 您需要启用Drupal作为WSRP的使用者 ,请参阅Drupal页面和Liferay作为生产者 ,请参阅此处 。 使用IFrame 与第一 ...
-
默认情况下,所有Asset Publisher实例都在包装div元素中使用此类,如平台liferay-portlet.xml所指定的那样:
101 ...portlet-asset-publisher ... -
Liferay - 在2个不同的portlet之间共享Utils类(Liferay - Share Utils class between 2 different portlets)[2022-11-11]
如果您正在使用Liferay SDK,则可以使用clients (最近更改为shared )目录来放置您的公共代码。 一个很好的例子是deploy-listener-shared如何与deploy-listener-hook一起使用。 从它看起来,您需要做的所有配置是修改将使用client \ shared类的build.xml文件。 如果你看一下deploy-listener-hook的构建文件 ,你可以看到你需要添加的所有内容。 对于新的SDK:Weblogic尚未与JSR 286兼容, 因此,在互操作性方面 ,Jetspeed或Liferay或JBoss Portal是更好的选择。 这三个都是开源的。 Weblogic is not yet JSR 286 compatible, So in terms of interoperability, Jetspeed or Liferay or JBoss Portal are better choices to start off with. All three are open source.如何在主题(Liferay)中默认使portlet无边界?(How to make portlets borderless by default in theme (Liferay)?)[2024-03-21]
liferay-look-and-feel.xml可以包含一些设置,你正在寻找这个:请注意,使用这些设置,它甚至可以在运行时配置,默认为false。 liferay-look-and-feel.xml can contain some settings, you're looking for this ... 您可以在liferay-portlet.xml中设置My_Portlet 有关详情,请参阅: http : //www.liferay.com/community/wiki/-/wiki/Main/Liferay+UI+Guidelines You can set theMy_Portlet in liferay-portlet.xml for det ...相关文章
更多- Solr范围查询,结果不正确问题
- Solr总结
- usic AS下如何正确设置solr
- getOutputStream() has already been called for this response 问题
- response.getWriter.write()方法和response.getWriter.println()方法区别
- solr dataimport
- solr学习(1)
- Solr PHP support
- Solr In Action
- Solr调研总结
最新问答
更多- 获取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的基本操作命令。。。