<!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">Yoji SHIDARA &lt;dara****@shida*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2012-08-22 21:03:12 +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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e">5ad7fa8392499f12579889080600ed5538139b7e</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">Be compliant to ACS return-fields behaviour</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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#diff-0">lib/server.js</a></li>
          <li><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#diff-1">tools/convert.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: lib/server.js (+3 -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, &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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L78">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L79">79</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L80">80</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L82">82</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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L83">83</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L84">84</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L85">85</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L119">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L120">120</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L121">121</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L122">122</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L123">123</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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L124">124</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L125">125</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0L126">126</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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R78">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R79">79</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R80">80</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R81">81</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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R82">82</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R83">83</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R84">84</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R85">85</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R86">86</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R120">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R121">121</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R122">122</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R123">123</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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R124">124</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R125">125</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R126">126</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L0R127">127</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">@@ -79,7 +79,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">app.get('/search', function(request, response, next) {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     q: request.query.query,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     start: parseInt((request.query.start || '0'), 10),</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     size: 20,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-    facet: 'path'</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    facet: 'path_facet',</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    'return-fields': 'title,desc,path'</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">   if (request.query.in) {</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -120,7 +121,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">app.get('/search', function(request, response, next) {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">       query: options.q,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       records: results.hits.hit,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       numFound: numFound,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      pathFacets: results.facets.path.constraints,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      pathFacets: results.facets.path_facet.constraints,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       from: start + 1,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       to: start + numReturned,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       numShowing: numReturned,</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"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: tools/convert.js (+1 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1L47">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1L48">48</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1L49">49</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1L50">50</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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1L51">51</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1L52">52</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1L53">53</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/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1R47">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1R48">48</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1R49">49</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1R50">50</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1R51">51</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1R52">52</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1R53">53</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/5ad7fa8392499f12579889080600ed5538139b7e#L1R54">54</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">@@ -48,6 +48,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">function parse(doc, context) {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     }).filter(function(title) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       return title;</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">+    item.path_facet = item.path;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     context.items.push(item);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     context.index++;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   }</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>