mikemccand commented on issue #15540: URL: https://github.com/apache/lucene/issues/15540#issuecomment-3820449683
> I don't think we should prevent 0 vectors for similarities that support them. For example, dot-product and euclidean would work fine with 0 vectors right? Yeah +1. It's kinda the vector equivalent of the empty string term, which is indeed a valid term that you can index in Lucene if your tokenizer produces it. > Its only cosine that has the issue? I think so? We should add dedicated unit test asserting the rights of these 0-vectors, randomVectors test methods should occasionally throw in some of these bad boys, etc. -- 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]
