Queries the search index and and sends nearest sites to client. Created BaseModel class.