update search to native java for faster searching