sgup432 commented on issue #15816:
URL: https://github.com/apache/lucene/issues/15816#issuecomment-4071309279

   One way to go about the second approach I mentioned would be to check if 
`traversalSimilarity = Float.NEGATIVE_INFINITY`, then go to brute force 
approach in `AbstractVectorSimilarityQuery.scorerSupplier()` instead of doing 
`approximateSearch`.
   
   Something like:
   ```
   if(if (traversalSimilarity == Float.NEGATIVE_INFINITY) {
     // brute-force search
   } else {
    // approximate search
   }
   
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to