Custom report
Page control
The
outputLimiter property
and
outputLimiter1st property
of
JavaScript JsNgram static class
controls this behavior.
Default values are 100 and 1, respectively.
Setting 40 to outputLimiter
causes less documents shown at once.
Setting 5 to outputLimiter1st
causes more hits in a document shown at first.
Preview text
The
previewSize property
of
JavaScript JsNgram static class
controls the length of text shown as preview content.
Default value is 240 by character.
Hyperlink attributes
The
linkAttributes property
of
JavaScript JsNgram static class
controls the behavior of hyperlinks of hits.
By default, it will open another window and the content is marked as utf-8 plain text.
target="_blank" type="text/plain; charset=utf-8"
Document header
The
titleInfo property
of
JavaScript JsNgram static class
controls the document header section shown as the result.
Default value is a blank dictionary {}
.
It means no additional informations are added to the result,
and only the path of document with hyperlink is shown.
When something are set to this property,
the
loadTitleInfo method
of
JavaScript JsNgram static class
uses the data.
For example, the following will replace the title of the specified document.
{ 'a/path/to/the/document/a.txt': { 'title': 'Alternate Title of A' } }
Whole html
The
makeResultHtml method
of
JavaScript JsNgram static class
controls the html generated as the result.
You can override this method to get full customization for the reporting.