How to index and search two different tables which are in same datasource using single solr instance Or Solr Template fields not working properly

女生的网名这么多〃 提交于 2019-11-29 10:07:14

All of the fields in your schema have

required="true".

You're telling Solr that the results from each entity need to have ALL of the eid, ename, pid, pname, entity, and singlekey fields.

Employee doesn't have a pid or pname field, so pid and pname shouldn't be required. In the same sense, Product doesn't have a eid or ename field, so eid and ename shouldn't be required.

Removing

required="true".

from pid, pname, eid, and ename will allow you to index.

Have you tried indexing your entities individually from admin screen

http://<hostname>:<portnum>/solr
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!