Adding lucene filtering functionality