Fixed: filterResults would use wrong parameter to fetch items.
Refactor deprecated method call on Lucene.Document; use correct HashSet<Long> instead of HashSet<Integer> for result set.
Cleanup code: reduce number of IDE warnings for real / potential problems.

Replace deprecated method calls in easy cases, fix minor assignment issues, add some javadoc etc.