<!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">2012-08-23 14:32:30 +0900 (Thu, 23 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/354073ba968e77b4feaab322246f6aa90f2d25a0">354073ba968e77b4feaab322246f6aa90f2d25a0</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, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em">Add a test for bq expression about literal field</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/354073ba968e77b4feaab322246f6aa90f2d25a0#diff-0">test/bq-translator.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, &quot;Liberation Mono&quot;, 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/bq-translator.test.js (+6 -5)</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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L156">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L157">157</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L158">158</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L159">159</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L160">160</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L161">161</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L162">162</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L168">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L169">169</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L170">170</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L171">171</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L172">172</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L173">173</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L174">174</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L175">175</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L176">176</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/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L177">177</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/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L178">178</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/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L179">179</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/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L180">180</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/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L181">181</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/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L182">182</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L183">183</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0L184">184</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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R156">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R157">157</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R158">158</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#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/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R160">160</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/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R161">161</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R162">162</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R163">163</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R164">164</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R170">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R171">171</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R172">172</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R173">173</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/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R174">174</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/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R175">175</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/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R176">176</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R177">177</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R178">178</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R179">179</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R180">180</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R181">181</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-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R182">182</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R183">183</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R184">184</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/354073ba968e77b4feaab322246f6aa90f2d25a0#L0R185">185</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"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -157,6 +157,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">suite('BoolanQueryTranslator', function() {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     temporaryDatabase = utils.createTemporaryDatabase();</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     context = temporaryDatabase.get();</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     domain = new Domain('test', context).createSync();</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    domain.getIndexField('literalfield').setType('literal')</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      .setFacetEnabled(true).setSearchEnabled(true).createSync();</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   });</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">   teardown(function() {</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -169,16 +171,15 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">suite('BoolanQueryTranslator', function() {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   testQuery(&quot;expression&quot;,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             &quot;type:'ModelName'&quot;,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             'type @ &quot;ModelName&quot;');</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  testQuery(&quot;expression for literal column&quot;,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            &quot;literalfield:'ModelName'&quot;,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            'literalfield == &quot;ModelName&quot;');</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   testQuery(&quot;multiple words expression&quot;,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             &quot;type:'Model Name'&quot;,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             'type @ &quot;Model&quot; &amp;&amp; type @ &quot;Name&quot;');</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   testQuery(&quot;multiple words expression for literal column&quot;,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             &quot;literalfield:'Model Name'&quot;,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-            'literalfield == &quot;Model Name&quot;',</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-            function() {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-              domain.getIndexField('literalfield').setType('literal')</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-               .setFacetEnabled(true).setSearchEnabled(true).createSync();</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-            });</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+            'literalfield == &quot;Model Name&quot;');</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   testQuery(&quot;group: raw expressions&quot;,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             &quot;(and field1:'keyword1' field2:'keyword2' type:'ModelName')&quot;,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">             '(field1 @ &quot;keyword1&quot; &amp;&amp; field2 @ &quot;keyword2&quot; &amp;&amp; type @ &quot;ModelName&quot;)');</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>