O'Reilly logo

Apache Solr 3 Enterprise Search Server by 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

Schema design

A key thing to come to grips with is that the queries you need Solr to support completely drive your Solr schema design. Conversely, relational databases typically use standard third normal form decomposition of the data, largely because they have strong relational-join support. Since queries drive the Solr schema design, all the data needed to match a document, that is the criteria, must be in the document matched, not in a related one. To satisfy that requirement, data that would otherwise exist in one place is copied into related documents that need it to support a search. For example, an artist's name in MusicBrainz would not just exist on an artist document but also in a track document to support searching for tracks by artist. ...

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