jmazanec15 commented on PR #14009:
URL: https://github.com/apache/lucene/pull/14009#issuecomment-3000947753

   > For hybrid search in OpenSearch/Elastic Search, I'm wondering if 
@jmazanec15 and @benwtrent have any input. I'm having a feeling that it's quite 
common to combine lexical + KNN matching into a single BooleanQuery.
   
   Not sure Im following the discussion completely. It is common to combine 
lexical and k-NN in a boolean query, but I think there is a lot of variety in 
what/how users are implementing hybrid search, so flexibility is great to have. 
Like @benwtrent mentioned, result computation for k-NN is done upfront, but 
queries can also be used to re-score after the initial phase via the 
[QueryRescorer](https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/search/QueryRescorer.java)
 (as @mikemccand mentioned awhile ago), so I dont think a separate rescorer is 
necessary. 
   
   I also like the point around lazy iteration: "or atleast provide a scorer 
that iterates the kNN query results calculating the higher fidelity scores". 
For expensive re-scoring (I think multi-vector will be), this might be nice to 
have too for hybrid/boolean queries - I think this approach is take in 
[FloatVectorSimilarityQuery](https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/search/FloatVectorSimilarityQuery.java#L107).
 But, this can probably be taken for future consideration.
   


-- 
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

Reply via email to