Make the search handler conditionally request the index be slurped into memory.

Change-Id: I7fadeba41c3b1bbcfbb0fd3470ff30cdf04b1b90