retrieval plugin

phase 1 of search plugin functionality...