<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也正确索引,但是当我将我的db升级到Mysql 5.5时,solr因为上面的实体而没有索引。谁能告诉我上述实体有什么问题?