Update indexfunctions.php

Added in search feature