Added search indexing.

Needs massive cleanup and whatnot.