See the tutorial:
The Really Big Index