The easiest way is to add all records to the index, and then query using a filtered query using a filter of the term ("status", "active") type. Since the filtered query simply clears all inappropriate results before calculating the scores, this should not greatly affect performance. A more sophisticated approach is to fork the repo and add a specific interceptor property.
source share