I have created a PostFilter. PostFilter creates a DelegatingCollector, which provides a Lucene IndexSearcher.
However, I need to query for an object that may or may not be located on the shard that I am filtering on. Normally, I would do something like: searcher.search(new TermQuery(new Term("field", "value").scoreDocs But this does not work across shards. So, if the document I am looking for is on a different shard, I get no results. Any idea how I would best do my search across all shards from within my plugin?