急急急,在线等!solr4.10结合oracle增量导入数据问题!
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了急急急,在线等!solr4.10结合oracle增量导入数据问题!相关的知识,希望对你有一定的参考价值。
本人刚接触solr,不是很懂。做全量更新的时候能把数据导入进来并且添加索引,但是增量索引的时候总是出现以下情况,能获取到数据但是不能添加索引,请问各位大神什么原因啊
Last Update: 15:38:56
Requests: 6, Fetched: 4, Skipped: 0, Processed: 0
Raw Status-Output
"responseHeader":
"status": 0,
"QTime": 0
,
"initArgs": [
"defaults",
[
"config",
"data-config.xml"
]
],
"command": "status",
"status": "idle",
"importResponse": "",
"statusMessages":
"Total Requests made to DataSource": "6",
"Total Rows Fetched": "4",
"Total Documents Skipped": "0",
"Delta Dump started": "2016-05-17 15:38:51",
"Identifying Delta": "2016-05-17 15:38:51",
"Deltas Obtained": "2016-05-17 15:38:51",
"Building documents": "2016-05-17 15:38:51",
"Total Changed Documents": "4",
"Total Documents Processed": "0",
"Time taken": "0:0:0.48"
,
"WARNING": "This response format is experimental. It is likely to change in the future."
<dataConfig>
<dataSource type="JdbcDataSource"
driver="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@192.168.0.162:1521:sgdsdb"
user="sgccmall4test"
password="1qaz2wsx"/>
<document>
<entity name="news" pk="ID" transformer="ClobTransformer"
deltaQuery="select ID from electric_vehicle_news where to_char(modify_time,'yyyy-MM-dd hh:mm:ss')> '$dataimporter.last_index_time' AND is_del=0 and status=3"
deletedPkQuery="select ID from electric_vehicle_news where is_del=1"
deltaImportQuery="select ID,title,theme,brief_intro,keyword,thumbnail,content,to_char(publish_time,'yyyy-MM-dd hh:mm') publish_time from electric_vehicle_news where is_del=0 and status=3 and ID='$dih.delta.id'"
query="select ID,title,theme,brief_intro,keyword,thumbnail,content,to_char(publish_time,'yyyy-MM-dd hh:mm') publish_time from electric_vehicle_news where is_del=0 and status=3">
<field column="ID" name="id"/>
<field column="TITLE" name="title"/>
<field column="THEME" name="theme"/>
<field column="BRIEF_INTRO" name="briefIntro"/>
<field column="KEYWORD" name="keyword"/>
<field column="THUMBNAIL" name="thumbnail"/>
<field column="CONTENT" name="content" clob="true"/>
<field column="PUBLISH_TIME" name="publishTime"/>
</entity>
</document>
</dataConfig>
你看看我这个好时的代码,找找差别
<dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://192.168.1.99:3306/xscb_db"
user="root"
password="asdw"/>
<document name="cms">
<entity name="t_xklwdbc_degreepaper" pk="id"
query="select a.db_id as id,a.gjc as gjc1,a.* from t_xklwdbc_degreepaper a where a.isdelete=0"
deltaQuery="select a.db_id as id,a.gjc as gjc1,a.* from t_xklwdbc_degreepaper a where a.update_time > '$dataimporter.last_index_time'"
deletedPkQuery= "select a.db_id as id from t_xklwdbc_degreepaper a where a.isdelete=1"
deltaImportQuery="select a.db_id as id,a.gjc as gjc1,a.* from t_xklwdbc_degreepaper a where a.db_id='$dataimporter.delta.id'"
>
<field column="id" name="id" />
<field column="bt" name="bt" />
<field column="zz" name="zz" />
<field column="zzywm" name="zzywm" />
<field column="zzdw" name="zzdw" />
<field column="gjc" name="gjc" />
<field column="fk_xkfl" name="fk_xkfl" />
<field column="fk_xkzy" name="fk_xkzy" />
参考技术B 我的也是这个问题,请问你的处理好了吗?
以上是关于急急急,在线等!solr4.10结合oracle增量导入数据问题!的主要内容,如果未能解决你的问题,请参考以下文章