prepared search and itemdetails for the backend rest api