CREATE TABLE keywords (
keyword text
);
INSERT INTO keywords VALUES ('Mroonga');
INSERT INTO keywords VALUES ('Groonga');
SELECT mroonga_snippet_html('Mroonga is the Groonga based storage engine.',
keyword) as snippet
FROM keywords;
snippet
<div class="snippet"><span class="keyword">Mroonga</span> is the Groonga based storage engine.</div>
<div class="snippet">Mroonga is the <span class="keyword">Groonga</span> based storage engine.</div>
