Solr documents with child elements?
问题 Is it somehow possible to create a solr document that contains sub-elements? For example, how would I represent something like this: <person first="Bob" last="Smith"> <children> <child first="Little" last="Smith" /> <child first="Junior" last="Smith" /> </children> </person> What is the usual way to solve this problem? 回答1: You can model this in different ways, depending on your searching/faceting needs. Usually you'll use multivalued or dynamic fields. In the next examples I'll omit the