<!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">YUKI Hiroshi &lt;shimo****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2014-04-28 14:58:05 +0900 (Mon, 28 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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4">365e101364e662bad22651b9d25d048e1c5bf3d4</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">Add description about another endpoint</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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#diff-0">tutorial/groonga/index.md</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: tutorial/groonga/index.md (+6 -1)</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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L146">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L147">147</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L148">148</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L149">149</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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L150">150</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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L151">151</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L152">152</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L153">153</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L154">154</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L155">155</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L156">156</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L157">157</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0L158">158</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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R146">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R147">147</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R148">148</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R149">149</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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R150">150</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R151">151</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R152">152</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R153">153</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R154">154</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R155">155</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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R156">156</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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R157">157</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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R158">158</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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R159">159</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/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R160">160</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R161">161</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R162">162</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga.org/commit/365e101364e662bad22651b9d25d048e1c5bf3d4#L0R163">163</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">@@ -147,12 +147,17 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">Note that you have to specify the host, one of Droonga nodes with active droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> In other words, you can use any favorite node in the cluster as an endpoint.</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> All requests will be distributed to suitable nodes in the cluster.</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">-OK, now the table has been created.</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+OK, now the table has been created successfully.</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> Let's see it by the `table_list` command:</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">     # curl &quot;http://192.168.0.10:3000/d/table_list&quot;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     [[0,1398662423.509928,0.003869295120239258],[[[&quot;id&quot;,&quot;UInt32&quot;],[&quot;name&quot;,&quot;ShortText&quot;],[&quot;path&quot;,&quot;ShortText&quot;],[&quot;flags&quot;,&quot;ShortText&quot;],[&quot;domain&quot;,&quot;ShortText&quot;],[&quot;range&quot;,&quot;ShortText&quot;],[&quot;default_tokenizer&quot;,&quot;ShortText&quot;],[&quot;normalizer&quot;,&quot;ShortText&quot;]],[256,&quot;Store&quot;,&quot;/home/username/groonga/droonga-engine/000/db.0000100&quot;,&quot;TABLE_HASH_KEY|PERSISTENT&quot;,&quot;ShortText&quot;,null,null,null]]]</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+Because it is a cluster, another endpoint returns same result.</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">+    # curl &quot;http://192.168.0.11:3000/d/table_list&quot;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    [[0,1398662423.509928,0.003869295120239258],[[[&quot;id&quot;,&quot;UInt32&quot;],[&quot;name&quot;,&quot;ShortText&quot;],[&quot;path&quot;,&quot;ShortText&quot;],[&quot;flags&quot;,&quot;ShortText&quot;],[&quot;domain&quot;,&quot;ShortText&quot;],[&quot;range&quot;,&quot;ShortText&quot;],[&quot;default_tokenizer&quot;,&quot;ShortText&quot;],[&quot;normalizer&quot;,&quot;ShortText&quot;]],[256,&quot;Store&quot;,&quot;/home/username/groonga/droonga-engine/000/db.0000100&quot;,&quot;TABLE_HASH_KEY|PERSISTENT&quot;,&quot;ShortText&quot;,null,null,null]]]</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ### Create a column</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> Next, create a new column to the table by the `column_create` command, like:</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>