FlannBasedMatcher - what distance metric

Thanks! What if I wanted, say, L1. Or cosine?