How to controller method call from model function? Or How to programmatically reindexing using API?