<!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 <shimo****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2012-08-22 17:11:11 +0900 (Wed, 22 Aug 2012)</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/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c">cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Log</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">Configure fields before test</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/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#diff-0">test/api-search.test.js</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"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: test/api-search.test.js (+5 -2)</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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L339">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L340">340</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L341">341</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L342">342</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/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L343">343</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L344">344</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L345">345</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L406">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L407">407</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L408">408</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L409">409</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L410">410</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L411">411</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L412">412</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L413">413</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0L414">414</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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R339">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R340">340</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R341">341</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R342">342</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/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R343">343</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R344">344</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R345">345</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R346">346</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R407">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R408">408</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R409">409</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R410">410</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-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R411">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/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R412">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/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R413">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/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R414">414</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R415">415</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R416">416</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/cb47d1e5aaa3223b571cf8e8af73279b1f07bd7c#L0R417">417</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"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -340,6 +340,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">suite('Search API', function() {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> suite('with fixture and synonyms loaded', function() {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> setup(function() {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> utils.loadDumpFile(context, __dirname + '/fixture/companies/ddl.grn');</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ utils.loadDumpFile(context, __dirname + '/fixture/companies/configurations.grn');</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> utils.loadDumpFile(context, __dirname + '/fixture/companies/data.grn');</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> utils.loadDumpFile(context, __dirname + '/fixture/companies/synonyms.grn');</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">@@ -407,8 +408,10 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">suite('Search API', function() {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> setup(function() {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> domain = new Domain('people', context)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> .setId('00000000000000000000000000').createSync();</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- domain.getIndexField('realname').setType('text').createSync();</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- domain.getIndexField('nickname').setType('text').createSync();</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ domain.getIndexField('realname').setType('text')</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ .setSearchEnabled(true).setResultEnabled(true).createSync();</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ domain.getIndexField('nickname').setType('text')</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ .setSearchEnabled(true).setResultEnabled(true).createSync();</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> domain.loadSync([</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> { id: 'id1', realname: 'Jack Sparrow',</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> nickname: 'Captain' },</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>