In most real world applications, models share relationships of some kind, either directly through their attributes or through an association "table". Traditional database engines make use of foreign keys to describe relationships, and SQL joins are used to merge the record sets together.
Solr has limited support for joining via its join query parsers (join and block-join). These query parsers use the local-params syntax to describe relationships between documents—local-params was described earlier in this chapter.