0

これは私のdata-config.xmlです

<dataConfig>
<dataSource name="a" type="URLDataSource"  encoding="UTF-8" connectionTimeout="5000" readTimeout="10000"/>
<document name="products">
                     <entity name="images" dataSource="a"       
                    url="file:///abc/1299.xml"
                    processor="XPathEntityProcessor"
                    forEach="/imagesList/image"
                    >
                            <field column="id"  xpath="/imageList/image/productId" />
                            <field column="image_array"  xpath="/imageList/image/imageUrlString" />
                    </entity>


</document>
</dataConfig>

これは schema.xml です

<field name="id" type="string" indexed="true" stored="true" required="true" />
<field name="image_array" type="text" indexed="true" stored="true" multivalued="true"/>

しかし、デルタインポートしようとすると、ドキュメントが追加されません。どんな助けでも大歓迎です。

4

1 に答える 1

2

まず最初に、あなたの XPath とimageListXML はimagesList...

于 2012-05-24T16:20:18.350 に答える