Solrj Block Join Bean support

本秂侑毒 提交于 2019-12-11 05:48:14

问题


I would like to use a Solrj Bean to save/query nested documents from Solr. Is this possible? I see that since version 4.5 it is possible to use addChildDocument(SolrInputDocument child) but looking at the source code for org.apache.solr.client.solrj.beans.DocumentObjectBinder I see that nested documents are not taken into consideration. A new annotation additional to the @Field annotation would also be required I guess. Does anyone have any experience with this?


回答1:


If you want to insert nested document as a bean to solr using @Field(child=true) annotation then see below URL: SOLRJ-6.0.0: Insertion of a bean object which associate list of bean object is giving null pointer exception



来源:https://stackoverflow.com/questions/23913752/solrj-block-join-bean-support

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