solr配置文件 data-config.xml

 
  
 driver="com.mysql.jdbc.Driver"   
 url="jdbc:mysql://192.168.0.00:3306/xfs_search_test"   
 user="root"   
 password="root"/>   
 






pk="sku_id"


query="select *,date_add(last_shelf_time,interval 8 hour) as sku_shelf_time from sku where status=1"
deltaQuery="select sku_id from sku where last_modified_date > '${dataimporter.last_index_time}'" 
   deltaImportQuery="select *,date_add(last_shelf_time,interval 8 hour) as sku_shelf_time from sku where sku_id='${dih.delta.sku_id}' and status=1"
>
 
 
 
 






pk="ID"
query="select * from spu where spu_id='${sku.spu_id}'">







   pk="ID"
query="select * from spu_img where spu_id ='${spu.spu_id}' ORDER BY img_sort ">

 
 



pk="ID"
query="select * from category where category_id='${spu.category_id}'">



















pk="ID"
query="select * from shop_sku_price where sku_id='${sku.sku_id}'
">




 




 




  




你可能感兴趣的:(solr)