我想要從表中導入數據並使用索引對其進行索引。 我正在使用solr-tomcat管理面板。Solr查詢只返回Id的
但是,每當我查詢它返回給我只有身份證和值。 我也嘗試添加FIELDS FL,但這也沒有幫助。
這裏是我的數據-config.xml文件:
<dataConfig>
<dataSource type="JdbcDataSource"
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://127.0.0.1:3306/{DB_NAME}"
user="{DB_USER}"
password="{DB_PASSS}"
/>
<document>
<entity name="id" query="select s3_location,file_name from video">
<field column="s3_location" name="s3_location"/>
<field column="file_name" name="file_name"/>
</entity>
</document>
</dataConfig>
有沒有什麼辦法讓上述s3_location而file_name領域也。
謝謝,我在我的schema.xml中缺少'stored = true'。 –