I want to put SOSL QUERY on Pricebookentry object but its not working, its throwing 'Pricebookentry is not searchable'. Can someone help?
Code----
string searchStr = 'value';
String searchQuery = 'FIND \' *' + searchStr + '* \' IN ALL FIELDS RETURNING Pricebookentry(Id, Name)';
system.debug('searchQuery '+searchQuery);
List<List <sObject>> searchList = search.query(searchQuery);
system.debug('searchList '+searchList);