Alibaba Group Holding Ltd. is investing in Israeli startup Twiggle to tap its search technology and solidify its lead in Chinese e-commerce, according to people familiar with the matter.