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