Sending indexes and types on search to server