function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TracMikeLTracMikeL 

Searching Object, results not as expected

Hey Guys,

 

I am using this code

 

 

List<List<SObject>> searchList = [find :searchStr in all 
	 		fields returning product2 (id, name, family, productcode, Size__c, Loanable__c)];
	 	products = ((list<product2>)searchList[0]);

 

Should it not search against all the fields I specify? It does not seem to be searching on the Family field.

 

TracMikeLTracMikeL

No ideas?