splitting multivalued field while importing data into solr

▼魔方 西西 提交于 2019-12-06 09:14:11
Basdigo

Here is the solution:

<dataConfig>
<dataSource type="JdbcDataSource" name="********" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/lokal"     user="****" password="******" />
<document>
    <entity name="Search" transformer="RegexTransformer" query="select b_id, b_navn, b_cats, b_info, b_keyword, b_critical,     b_geo, b_adress from searchbiz">
        <field column="b_id" name="b_id" />
        <field column="b_info" name="b_info" />
        <field column="b_cats" splitBy="," sourceColName="b_cats"/>
    </entity>
</document>

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!