resolved test errors, implemented lucene search