Right, it's the whole search pipeline problem defined. Check this out: https://github.com/deepbluedynamics/lume