LPS-49394 Uses the index to get the results only when we are searching