我是索尔的初学者。我试图将嵌套的文档/ JSON存储到Solr文档中。
{ “source_ln”: “恩”, “source_text”:“我加入了健身房”, “target_ln”: “喜”, ” …
是的,Solr将能够做到这一点。感谢Block Join Query Parsers。
在尝试这样做之前,要注意的事情很少。
root
childDocuments
了解更多 Solr嵌套文档
例
[ { "id": "1", "title": "Solr adds block join support", "content_type": "parentDocument", "_childDocuments_": [ { "id": "2", "comments": "SolrCloud supports it too!" } ] }, { "id": "3", "title": "New Lucene and Solr release is out", "content_type": "parentDocument", "_childDocuments_": [ { "id": "4", "comments": "Lots of new features" } ] } ]