benwtrent commented on PR #14009: URL: https://github.com/apache/lucene/pull/14009#issuecomment-2996328248
kNN queries are completed in the rewrite phase, if any rescoring needs to be done, it should be done during that full phase. I would expect the experience to be: `RescoreQueryWithVectorQueryThingy(KnnQuery)` and the rescore will occur during rewrite (or atleast provide a scorer that iterates the kNN query results calculating the higher fidelity scores). kNN should be "just another query" and should be combinable with any other query. I realize this is a bit tricky as kNN is unique in that it effectively "collects" its results up-front. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org