Resource index work in progress: main table is populated; TODO: fix term search.