数据配置.xml
<dataConfig>
<dataSource encoding="UTF-8" type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/somevisits" user="root" password=""/>
<document name="somevisits">
<entity name="login" query="select * from login">
<field column="sv_id" name="sv_id" />
<field column="sv_username" name="sv_username" />
</entity>
</document>
</dataConfig>
架构.xml
<?xml version="1.0" encoding="UTF-8" ?>
<schema name="example" version="1.5">
<fields>
<field name="sv_id" type="string" indexed="true" stored="true" required="true" multiValued="false" />
<field name="sv_username" type="string" indexed="true" stored="true" required="true"/>
<field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/>
<field name="text" type="string" indexed="true" stored="false" multiValued="true"/>
</fields>
<uniqueKey>sv_id</uniqueKey>
<types>
<fieldType name="string" class="solr.StrField" sortMissingLast="true" />
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
</types>
</schema>
Solr 使用完整的 http://[localSolr]:8983/solr/#/collection1/dataimport?command=full-import 成功导入 mysql 数据库
我的问题是,现在如何访问那个 mysql 导入的数据库?