Actually, I think you may be looking at the problem backwards. Or maybe I'm looking at the problem backwards, perspective is always a pain to objectify.
You're wanting to filter x items from your AE network to your ore processing system, yes? With x being a possibly large number of items, most likely greater than 9.
So, I have a question for you: Why do the ores need to hit your ME Network in the first place?
Let's take, for example, using some sort of ore mining facility or just your drop-off point for manually mining ores. Typically, it's an EnderChest, assuming that mod is available, but it can be anything, but it is the place the ores are outputted to BEFORE they hit your AE network. With me?
Ores don't go into the ME Network. Ores are separately shuffled elsewhere. There's a couple of ways to do this. The easiest would be using EnderIO using an advanced filter so that all items from mod (thermal foundation) go to your ore processing facility instead of going to your ME Network. Then you can get as low tech as a hopper with a chest on it feeding into the system. If you have ores from other mods, they can be individually included elsewhere. I know that Refined Relocation can be used to filter ore* so that all items that are an ore are filtered.
The system I am currently using takes advantage of EnderIO to run ores to my ore processing plant, silk-touch ores to their respective plants, dirt/cobble/gravel/sand to their respective barrels, and everything else to the ME Network. So instead of having an Import Bus on your ender-chest, let EnderIO do some of the sorting for you.
tl;dr: filter your ores before they hit your ME Network.