Indexing is a process comes after crawling.Generally, spiders reads webpages and then store and arrange their webpages/data in databases.
All top level search engines like Google, Yahoo,
http://www.oko69.com , Baidu, yandex etc. works on their receptive ALGO for indexing process. thanks