: > > . For any query it passes through the search handler and solr finally : > > directs it to lucene Index Searcher. As results are matched and collected : > > as TopDocs in lucene i want to inspect the top K Docs , reorder them by : > > some logic and pass the final TopDocs to solr which solr may send as a : > > response .
can you elaborate on what exactly your "some logic" involves? instead of writing a custom collector, using a function query may be the best solution. https://people.apache.org/~hossman/#xyproblem XY Problem Your question appears to be an "XY Problem" ... that is: you are dealing with "X", you are assuming "Y" will help you, and you are asking about "Y" without giving more details about the "X" so that we can understand the full issue. Perhaps the best solution doesn't involve "Y" at all? See Also: http://www.perlmonks.org/index.pl?node_id=542341 -Hoss