only one public method in api
path bug
rebuild if index is empty
minor code cleanup
added testcase for search without date over several dates