<!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-21 14:03:15 +0900 (Tue, 21 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/16f662a3a22ef6aaae747bf70702d6a051342f01">16f662a3a22ef6aaae747bf70702d6a051342f01</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">Keep index and type in item object</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/16f662a3a22ef6aaae747bf70702d6a051342f01#diff-0">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: tools/convert.js (+10 -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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L30">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L31">31</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L32">32</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L33">33</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L34">34</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L35">35</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L36">36</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L38">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L39">39</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L40">40</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L41">41</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L42">42</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L43">43</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L44">44</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L45">45</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L46">46</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L47">47</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L48">48</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L49">49</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L50">50</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L51">51</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L52">52</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L53">53</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L54">54</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L55">55</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L56">56</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L57">57</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L62">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L63">63</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L64">64</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L65">65</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L66">66</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L67">67</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L68">68</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L69">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/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L70">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/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L71">71</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L72">72</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0L73">73</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R30">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R31">31</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R32">32</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R33">33</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R34">34</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R35">35</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R36">36</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R37">37</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R38">38</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R40">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R41">41</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R42">42</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R43">43</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R44">44</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R45">45</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R46">46</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R47">47</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R48">48</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R49">49</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R50">50</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R51">51</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R52">52</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R53">53</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R54">54</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R55">55</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R56">56</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R57">57</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R58">58</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R59">59</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R60">60</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R61">61</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R62">62</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R63">63</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R64">64</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R69">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R70">70</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R71">71</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R72">72</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-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R73">73</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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R74">74</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R75">75</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#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/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R77">77</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R78">78</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/16f662a3a22ef6aaae747bf70702d6a051342f01#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/16f662a3a22ef6aaae747bf70702d6a051342f01#L0R80">80</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">@@ -31,6 +31,8 @@ <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">   context = context || {};</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   context.items = context.items || [];</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   context.path = context.path || [];</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  context.type = context.type || null;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  context.index = context.index || 0;</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 (title) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     context.title = title;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -39,19 +41,24 @@ <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">   if (doc.desc) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     item.desc = doc.desc;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     item.title = context.title;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    item.type = context.type;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    item.index = context.index;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     item.path = context.path.map(function(item) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       return item.title;</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-not-changed" style="display: block; white-space: pre">     context.items.push(item);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    context.index++;</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">   context.path.push(item);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   for (var type in doc) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     if (doc[type] instanceof Array) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       doc[type].forEach(function(subdoc) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        context.type = type;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         parse(subdoc, context);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        context.type = null;</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">   }</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -63,11 +70,11 @@ <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"> function toSdf(records) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   var version = (new Date()).getTime();</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">-  return records.map(function(record, index) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-    console.log(index, record.path, record.title);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  return records.map(function(record) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    console.log(record.index, record.type, record.path, record.title);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     return {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       type: 'add',</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      id: 'doc_' + index,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      id: 'doc_' + record.index,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       version: version,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       lang: 'en',</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       fields: record</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>