Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <dataConfig>
- <dataSource autoCommit="true" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/delta_import_handler" user="root" password="Gemini*123" />
- <document name="Products">
- <entity name="item" pk="ID" query="SELECT * FROM item " deltaImportQuery="select * from item where ID='${dih.delta.ID}'"
- deltaQuery="select id from item where last_modified > '${dataimporter.last_index_time}'">
- <field name="ID" column="id"/>
- <field name="name" column="name"/>
- <field name="manu" column="manu"/>
- <field name="weight" column="weight"/>
- <field name="price" column="price"/>
- <field name="popularity" column="popularity"/>
- <field name="includes" column="includes"/>
- <field name="last_modified" column="last_modified" />
- <requestHandler name="/dataimport"class="org.apache.solr.handler.dataimport.DataImportHandler">
- <lst name="defaults">
- <str name="config">data-config.xml</str>
- </lst>
- </requestHandler>
- <field name="id" type="text_general" indexed="true" stored="true"/>
- <field name="name1" type="string" indexed="true" stored="true"/>
- <field name="manu" type="string" indexed="true" stored="true"/>
- <field name="weight" type="string" indexed="true" stored="true"/>
- <field name="price" type="string" indexed="true" stored="true"/>
- <field name="popularity" type="string" indexed="true" stored="true"/>
- <field name="includes" type="string" indexed="true" stored="true"/>
- <field name="last_modified" type="timestamp" indexed="true" stored="true"/>
Add Comment
Please, Sign In to add comment