<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">Kouhei Sutou <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2013-06-21 19:22:36 +0900 (Fri, 21 Jun 2013)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70">81c9c2cff6e10c53d2302f3db764e16b9c17ce70</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Support snippet_html()!
GitHub: fixes #7</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#diff-0">lib/droonga/plugin/handler_search.rb</a></li>
<li><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#diff-1">test/plugin/test_handler_search.rb</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/droonga/plugin/handler_search.rb (+5 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L90">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L91">91</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L92">92</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L93">93</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L94">94</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L95">95</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L96">96</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L200">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L201">201</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L202">202</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L203">203</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L204">204</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L205">205</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L206">206</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L310">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L311">311</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L312">312</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L313">313</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L314">314</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L315">315</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0L316">316</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R90">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R91">91</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R92">92</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R93">93</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R94">94</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R95">95</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R96">96</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R97">97</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R201">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R202">202</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R203">203</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R204">204</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R205">205</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R206">206</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R207">207</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R208">208</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R312">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R313">313</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R314">314</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R315">315</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R316">316</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R317">317</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R318">318</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R319">319</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R320">320</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L0R321">321</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -91,6 +91,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @context = context</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @query = query</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @result = nil</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @condition = nil</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @start_time = nil</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -201,6 +202,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> expression.define_variable(:domain => source)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> parseCondition(source, expression, @query["condition"])</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @result = source.select(expression)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @condition = expression</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if @query["groupBy"]</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if @query["groupBy"].is_a? String</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -311,6 +313,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> expression = Groonga::Expression.new(context: @context)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> variable = expression.define_variable(domain: @result)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> expression.parse(source, syntax: :script)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ condition = expression.define_variable(name: "$condition",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ reference: true)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ condition.value = @condition</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> source = nil</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: test/plugin/test_handler_search.rb (+41 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1L386">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1L387">387</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1L388">388</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1L389">389</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1L390">390</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1L391">391</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1L392">392</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R386">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R387">387</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R388">388</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R389">389</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R390">390</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R391">391</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R392">392</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R393">393</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R394">394</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R395">395</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R396">396</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R397">397</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R398">398</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R399">399</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R400">400</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R401">401</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R402">402</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R403">403</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R404">404</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R405">405</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R406">406</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R407">407</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R408">408</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R409">409</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R410">410</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R411">411</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R412">412</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R413">413</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R414">414</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R415">415</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R416">416</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R417">417</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R418">418</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R419">419</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R420">420</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R421">421</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R422">422</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R423">423</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R424">424</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R425">425</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R426">426</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R427">427</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R428">428</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R429">429</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R430">430</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R431">431</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R432">432</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/81c9c2cff6e10c53d2302f3db764e16b9c17ce70#L1R433">433</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -387,6 +387,47 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">class SearchHandlerTest < Test::Unit::TestCase</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> assert_search(expected, request)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ def test_snippet_html</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ expected = {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "sections-result" => {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "records" => [</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "title" => "Groonga overview",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "snippet" => [</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "<span class=\"keyword\">Groonga</span> overview",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ ],</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ },</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ ],</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ },</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ }</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ request = {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "queries" => {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "sections-result" => {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "source" => "Sections",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "condition" => {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "query" => "Groonga",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "matchTo" => ["title"],</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ },</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "output" => {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "elements" => [</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "records",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ ],</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "format" => "complex",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "limit" => 1,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "attributes" => [</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "title",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "label" => "snippet",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "source" => "snippet_html(title)",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ },</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ ],</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ },</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ },</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ },</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ }</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ assert_search(expected, request)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> class FormatTest < self</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>