indexing in returning only few of the columns specified in query in data-import xml.
<entity
name="All_Manuals"
query="SELECT Query........"
dataSource="JdbcDataSource">
<field column="Column1" name="id" />
<field column="Column2" name="deptId" />
<field column="Column3" name="groupId" />
<field column="Column4" name="subGrpId" />
<field column="Column5" name="manualId" />
</entity>我们在所有列之上建立索引,但是当我们读取时,它只返回前两列。
发布于 2015-07-03 18:58:01
您需要在schema.xml中添加所有列,如下所示:
<field name="id" type="string" indexed="true" stored="true" />
<field name="deptId" type="string" indexed="true" stored="true" />
<field name="groupId" type="string" indexed="true" stored="true" />
..............................假设您不想对任何列进行索引,但仍然希望在结果中包含该云
<field name="xxxxx" type="string" indexed="false" stored="true" />https://stackoverflow.com/questions/31203566
复制相似问题