One way to implement search in Middleman blogs. See the live example. For more details, check out my tutorial.