开发者

What is document tag in data-config.xml of Solr

I am wirking with solr server. i want to fetch data from MySQL database to solr. the following is the db-data-config.xml:

<dataConfig>
    <dataSource type="JdbcDataSource" driver="org.gjt.mm.mysql.Driver" url="jdbc:mysql://192.168.1.9:3306/angara" user="dev_user" password="ampliflex" />
    <document>
         <entity name="tdiamonds1" query="select UID_PK, ProductUID, name, price,Weight from tdiamonds">

         </entity>
    </document>
</dataConfig>

i want to know what <document>开发者_如何学Go tag indicates here, can we give more then one tag here, if possible please refer me some good example.


<document> encapsulates one or more entity elements. You can also specify a name for the given document.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜