Change the internal representation which is needing conceptual "filtering" from not using the deprecated org.apache.lucene.search.Filter API from Lucene.