<!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 &lt;kou****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2014-04-04 18:09:57 +0900 (Fri, 04 Apr 2014)</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/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9">d43b46b7e8894eb4156f0af1c2f4f21c863086c9</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, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Extract categories for drilldown</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/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#diff-0">lib/wikipedia-search/groonga-converter.rb</a></li>
          <li><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#diff-1">test/test-groonga-converter.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, &quot;Liberation Mono&quot;, 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/wikipedia-search/groonga-converter.rb (+30 -9)</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, &quot;Liberation Mono&quot;, 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/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L49">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L50">50</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L51">51</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L52">52</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L53">53</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L54">54</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L55">55</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L56">56</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L57">57</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L58">58</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L67">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L68">68</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L69">69</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L70">70</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L71">71</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L72">72</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L73">73</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L74">74</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L75">75</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L76">76</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L77">77</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L78">78</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L79">79</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L80">80</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L81">81</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L82">82</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L83">83</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L84">84</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L85">85</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L107">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L108">108</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L109">109</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L110">110</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L111">111</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L112">112</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0L113">113</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R49">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R50">50</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R51">51</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R52">52</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R53">53</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R54">54</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R55">55</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R56">56</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R65">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R66">66</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R67">67</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R68">68</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R69">69</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R70">70</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R71">71</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R72">72</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R73">73</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R74">74</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R75">75</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R76">76</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R77">77</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R78">78</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R79">79</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R80">80</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R81">81</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R82">82</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R83">83</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R84">84</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R106">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R107">107</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R108">108</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R109">109</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R110">110</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R111">111</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R112">112</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R113">113</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R114">114</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R115">115</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R116">116</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R117">117</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R118">118</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R119">119</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R120">120</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R121">121</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R122">122</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R123">123</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R124">124</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R125">125</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R126">126</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R127">127</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R128">128</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R129">129</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R130">130</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R131">131</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R132">132</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R133">133</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L0R134">134</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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">@@ -50,9 +50,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module WikipediaSearch</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">         push_stacks</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         case name</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         when &quot;page&quot;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-          @title = nil</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-          @id = nil</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-          @text = nil</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          @page = Page.new</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">       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">@@ -68,18 +66,19 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module WikipediaSearch</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">             @output.puts(&quot;,&quot;)</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">           page = {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-            &quot;_key&quot;  =&gt; @id,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-            &quot;title&quot; =&gt; @title,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-            &quot;text&quot;  =&gt; shorten_text(@text),</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            &quot;_key&quot;  =&gt; @page.id,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            &quot;title&quot; =&gt; @page.title,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            &quot;text&quot;  =&gt; shorten_text(@page.text),</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            &quot;categories&quot; =&gt; @page.extract_categories,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           @output.print(JSON.generate(page))</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           @n_records += 1</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         when &quot;title&quot;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-          @title = @text_stack.last</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          @page.title = @text_stack.last</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         when &quot;id&quot;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-          @id ||= Integer(@text_stack.last)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          @page.id ||= Integer(@text_stack.last)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         when &quot;text&quot;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-          @text = @text_stack.last</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          @page.text = @text_stack.last</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">         pop_stacks</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       end</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -108,6 +107,28 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module WikipediaSearch</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">           text</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">       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">+      class Page</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        attr_accessor :id, :title, :text</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        def initialize</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          @id = nil</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          @title = nil</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          @text = nil</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; 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 extract_categories</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          return [] if @text.nil?</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">+          categories = []</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          @text.scan(/\[\[(.+?)\]\]/) do |link,|</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            case link</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            when /\ACategory:(.+?)(?:\|.*)?\z/</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+              categories &lt;&lt; $1</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          categories</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        end</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">   end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</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, &quot;Liberation Mono&quot;, 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/test-groonga-converter.rb (+24 -3)</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, &quot;Liberation Mono&quot;, 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/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L37">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L38">38</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L39">39</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L40">40</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L41">41</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L42">42</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L43">43</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L44">44</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L66">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L67">67</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L68">68</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L69">69</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L70">70</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L71">71</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L72">72</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L73">73</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L87">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L88">88</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L89">89</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L90">90</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L91">91</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L92">92</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L93">93</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1L94">94</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R37">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R38">38</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R39">39</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R40">40</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R41">41</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R42">42</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R43">43</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R44">44</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R66">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R67">67</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R68">68</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R69">69</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R70">70</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R71">71</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R72">72</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R73">73</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R87">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R88">88</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R89">89</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R90">90</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R91">91</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R92">92</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R93">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/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R94">94</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R95">95</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R96">96</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R97">97</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R98">98</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R99">99</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R100">100</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R101">101</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R102">102</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R103">103</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R104">104</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R105">105</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R106">106</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R107">107</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R108">108</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R109">109</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R110">110</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R111">111</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R112">112</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R113">113</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R114">114</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/d43b46b7e8894eb4156f0af1c2f4f21c863086c9#L1R115">115</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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">@@ -38,7 +38,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">load --table Pages</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     assert_equal(&lt;&lt;-GROONGA, convert(xml))</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> load --table Pages</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> [</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-{&quot;_key&quot;:1,&quot;title&quot;:&quot;Title&quot;,&quot;text&quot;:&quot;Text1 &amp; Text2&quot;}</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+{&quot;_key&quot;:1,&quot;title&quot;:&quot;Title&quot;,&quot;text&quot;:&quot;Text1 &amp; Text2&quot;,&quot;categories&quot;:[]}</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ]</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     GROONGA</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   end</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -67,7 +67,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">load --table Pages</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     assert_equal(&lt;&lt;-GROONGA, convert(xml, :max_n_records =&gt; 1))</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> load --table Pages</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> [</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-{&quot;_key&quot;:1,&quot;title&quot;:&quot;Title1&quot;,&quot;text&quot;:&quot;Text1&quot;}</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+{&quot;_key&quot;:1,&quot;title&quot;:&quot;Title1&quot;,&quot;text&quot;:&quot;Text1&quot;,&quot;categories&quot;:[]}</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ]</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     GROONGA</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   end</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -88,7 +88,28 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">load --table Pages</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     assert_equal(&lt;&lt;-GROONGA, convert(xml, :max_n_characters =&gt; 2))</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> load --table Pages</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> [</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-{&quot;_key&quot;:1,&quot;title&quot;:&quot;Title&quot;,&quot;text&quot;:&quot;Te&quot;}</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+{&quot;_key&quot;:1,&quot;title&quot;:&quot;Title&quot;,&quot;text&quot;:&quot;Te&quot;,&quot;categories&quot;:[]}</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">+    GROONGA</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; 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_categories</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    xml = &lt;&lt;-XML</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+&lt;mediawiki xmlns=&quot;http://www.mediawiki.org/xml/export-0.8/&quot;&gt;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  &lt;page&gt;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    &lt;title&gt;Title&lt;/title&gt;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    &lt;id&gt;1&lt;/id&gt;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    &lt;revision&gt;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      &lt;id&gt;1001&lt;/id&gt;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      &lt;text&gt;[[Category:Groonga]]&lt;/text&gt;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    &lt;/revision&gt;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  &lt;/page&gt;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+&lt;/mediawiki&gt;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    XML</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    assert_equal(&lt;&lt;-GROONGA, convert(xml))</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+load --table Pages</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">+{&quot;_key&quot;:1,&quot;title&quot;:&quot;Title&quot;,&quot;text&quot;:&quot;[[Category:Groonga]]&quot;,&quot;categories&quot;:[&quot;Groonga&quot;]}</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ]</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     GROONGA</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   end</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>