Simplify index protocol.
Initial search implementation for memory index.