I imagine this wouldn't be too difficult to program. An algorithm, or at least a piece of it, already exists in a way. Item search detects items in your retainer inventory already.

However, item search only searches for one item at a time. Having the crafting log search for multiple items at a time through your retainer inventory might cause server-side issues, and I imagine that's the only reason why this hasn't been implemented yet.