The way a search engine works is it builds internally a so-called "index" referencing the Internet content. So, the name "Яндекс" is based on the word "индекс" and as such it's stressed the same way.