also added validity checks to results generated by whoosh kws_index