fix indent in DIH sample

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1026738 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2010-10-24 04:37:57 +00:00
parent 2ff0b11aaf
commit a813e53adf
3 changed files with 26 additions and 26 deletions

View File

@ -1,7 +1,7 @@
<dataConfig> <dataConfig>
<dataSource driver="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:./example-DIH/hsqldb/ex" user="sa" /> <dataSource driver="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:./example-DIH/hsqldb/ex" user="sa" />
<document> <document>
<entity name="item" query="select * from item" <entity name="item" query="select * from item"
deltaQuery="select id from item where last_modified > '${dataimporter.last_index_time}'"> deltaQuery="select id from item where last_modified > '${dataimporter.last_index_time}'">
<field column="NAME" name="name" /> <field column="NAME" name="name" />
<field column="NAME" name="nameSort" /> <field column="NAME" name="nameSort" />

View File

@ -1,26 +1,26 @@
<dataConfig> <dataConfig>
<dataSource type="HttpDataSource" /> <dataSource type="HttpDataSource" />
<document> <document>
<entity name="slashdot" <entity name="slashdot"
pk="link" pk="link"
url="http://rss.slashdot.org/Slashdot/slashdot" url="http://rss.slashdot.org/Slashdot/slashdot"
processor="XPathEntityProcessor" processor="XPathEntityProcessor"
forEach="/RDF/channel | /RDF/item" forEach="/RDF/channel | /RDF/item"
transformer="DateFormatTransformer"> transformer="DateFormatTransformer">
<field column="source" xpath="/RDF/channel/title" commonField="true" /> <field column="source" xpath="/RDF/channel/title" commonField="true" />
<field column="source-link" xpath="/RDF/channel/link" commonField="true" /> <field column="source-link" xpath="/RDF/channel/link" commonField="true" />
<field column="subject" xpath="/RDF/channel/subject" commonField="true" /> <field column="subject" xpath="/RDF/channel/subject" commonField="true" />
<field column="title" xpath="/RDF/item/title" /> <field column="title" xpath="/RDF/item/title" />
<field column="link" xpath="/RDF/item/link" /> <field column="link" xpath="/RDF/item/link" />
<field column="description" xpath="/RDF/item/description" /> <field column="description" xpath="/RDF/item/description" />
<field column="creator" xpath="/RDF/item/creator" /> <field column="creator" xpath="/RDF/item/creator" />
<field column="item-subject" xpath="/RDF/item/subject" /> <field column="item-subject" xpath="/RDF/item/subject" />
<field column="date" xpath="/RDF/item/date" dateTimeFormat="yyyy-MM-dd'T'hh:mm:ss" /> <field column="date" xpath="/RDF/item/date" dateTimeFormat="yyyy-MM-dd'T'hh:mm:ss" />
<field column="slash-department" xpath="/RDF/item/department" /> <field column="slash-department" xpath="/RDF/item/department" />
<field column="slash-section" xpath="/RDF/item/section" /> <field column="slash-section" xpath="/RDF/item/section" />
<field column="slash-comments" xpath="/RDF/item/comments" /> <field column="slash-comments" xpath="/RDF/item/comments" />
</entity> </entity>
</document> </document>
</dataConfig> </dataConfig>

View File

@ -1,10 +1,10 @@
<dataConfig> <dataConfig>
<dataSource type="BinFileDataSource" /> <dataSource type="BinFileDataSource" />
<document> <document>
<entity name="tika-test" processor="TikaEntityProcessor" url="../contrib/extraction/src/test/resources/solr-word.pdf" format="text"> <entity name="tika-test" processor="TikaEntityProcessor" url="../contrib/extraction/src/test/resources/solr-word.pdf" format="text">
<field column="Author" name="author" meta="true"/> <field column="Author" name="author" meta="true"/>
<field column="title" name="title" meta="true"/> <field column="title" name="title" meta="true"/>
<field column="text" name="text"/> <field column="text" name="text"/>
</entity> </entity>
</document> </document>
</dataConfig> </dataConfig>