you would need a field on the Sales Order called "Related IF" (list/record > Transaction. Filter: Type = Item Fulfillment), and a script on the Item Fulfilment when saved to set the Created From's "Related IF" to the current Item Fulfilment. This would then be available on your search as "createdfrom.custbody_relatedif" (or similar!)