<dataConfig>
<dataSource type="JdbcDataSource"
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://127.0.0.1/hb"
user="root" password="jetech123"/>
<entity name="lmap" query="CALL get_locations(${location.region_id})">
</entity>
<entity name="l1" query="SELECT IF((SELECT EXISTS(SELECT loc_name FROM lmap WHERE lvl = 1) AS loc_exist) = '0', NULL, (SELECT loc_name FROM lmap WHERE lvl = 1) ) l1">
<field column="l1" name="l1"/>
<entity name="l1_url" query="SELECT (SELECT CONCAT('/', LOWER(REPLACE(loc_name,' ','-'))) AS l1_url FROM lmap WHERE lvl = 1) l1_url">
<field name="l1_url" column="l1_url"/>
</entity>
</entity>
在 mysql 5.1 中它工作正常并且 solr 也正确索引,但是当我将我的数据库升级到 Mysql 5.5 时,由于上述实体,solr 没有索引。谁能告诉我上述实体有什么问题?