Skip to content

Instantly share code, notes, and snippets.

@hossman
Created May 8, 2017 17:05
Show Gist options
  • Select an option

  • Save hossman/ac095c4d11419420568342b107e3f1b6 to your computer and use it in GitHub Desktop.

Select an option

Save hossman/ac095c4d11419420568342b107e3f1b6 to your computer and use it in GitHub Desktop.
ADOC...
|retrieve contents | |truefootnoteref:[8,Stored content will be used by default, but docValues can alternatively be used. See <<docvalues.adoc#docvalues,DocValues>>] | | | | |truefootnoteref:[8]
HTML....
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">retrieve contents</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">true<sup class="footnote" id="_footnote_8">[<a id="_footnoteref_1" class="footnote" href="#_footnote_1" title="View footnote.">1</a>]</sup></p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">true<sup class="footnoteref">[<a class="footnote" href="#_footnote_1" title="View footnote.">1</a>]</sup></p></td>
</tr>
...
<div class="footnote" id="_footnote_1">
<a href="#_footnoteref_1">1</a>. Stored content will be used by default, but docValues can alternatively be used. See <a href="docvalues.html#docvalues">DocValues</a>
</div>
id="_footnote_1" is autogenerated, but the links to it both get id="_footnote_8" because that syntax w/explict id is the only way to refer to the same footnote more then once in the original source with the 'footnoteref' -- and at the place where you do that 'footnoteref' is where it assigns duplicate ids.
but later on in the page, it also sequentially assigns the 'footnote' ids so that there is even more `id="_footnote_8"` HTML tags...
<div class="footnote" id="_footnote_8">
<a href="#_footnoteref_8">8</a>. Term vectors are not mandatory here. If not true, then a stored field is analyzed. So term vectors are recommended, but only required if <code>stored=false</code>.
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment