O'Reilly logo

Apache Solr Enterprise Search Server - Third Edition by Matt Mitchell, Kranti Parisa, Eric Pugh, David Smiley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Joining

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.

Note

These parsers are not equal to SQL joins. The main difference between SQL and Solr in regard to joins is that the Solr joins do not merge related documents together in the search results. Solr joins are analogous to an SQL ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required