moved from http://code.google.com/p/com-search-lucene/