Describes a search report to be prepared from some or all of the items in a dtsSearchResults set.
File: dtsearch.h
Data Member |
Description |
---|---|
Number of words or paragraphs of context to include surrounding each hit. If dtsReportByWordExact is used, exactly the requested number of words of context will be included. Otherwise, enough paragraphs of context will be included to provide at least the requested number of words. Contiguous or overlapping blocks of context will be merged into a single block. | |
Text to appear after each block of context | |
Text to appear in front of each block of context. | |
Text to appear after the contextFooter, between two blocks of context | |
Text to appear after each file in the search report | |
Text to appear in front of each file in the search report. | |
ReportFlags specifying how the report should be generated | |
Number of blocks of context to include in the report. If zero, all hits in each document will be included. | |
Number of words to scan in each document looking for blocks of context to include in the report. For example, if maxWordsToRead=5000, then the search report will only include hits that occur in the first 5000 words in each document. This setting can be used to generate faster (but not necessarily complete) reports by limiting the search report to hits near the beginning of each document. | |
dtsOutputInfo that defines the format and destination of the report output. | |
Handle to the search results to generate this report from. Use dtsSearchResults.getHandle() to get the handle from a search results object. | |
Number of items in the selections array. | |
Array of long integers identifying the items in search results to include. |
Data Member |
Description |
---|---|
Number of words or paragraphs of context to include surrounding each hit. If dtsReportByWordExact is used, exactly the requested number of words of context will be included. Otherwise, enough paragraphs of context will be included to provide at least the requested number of words. Contiguous or overlapping blocks of context will be merged into a single block. | |
Text to appear after each block of context | |
Text to appear in front of each block of context. | |
Text to appear after the contextFooter, between two blocks of context | |
Text to appear after each file in the search report | |
Text to appear in front of each file in the search report. | |
ReportFlags specifying how the report should be generated | |
Number of blocks of context to include in the report. If zero, all hits in each document will be included. | |
Number of words to scan in each document looking for blocks of context to include in the report. For example, if maxWordsToRead=5000, then the search report will only include hits that occur in the first 5000 words in each document. This setting can be used to generate faster (but not necessarily complete) reports by limiting the search report to hits near the beginning of each document. | |
dtsOutputInfo that defines the format and destination of the report output. | |
Handle to the search results to generate this report from. Use dtsSearchResults.getHandle() to get the handle from a search results object. | |
Number of items in the selections array. | |
Array of long integers identifying the items in search results to include. |
Method |
Description |
---|---|
Copy another dtsSearchReportJob (shallow copy) |
Method |
Description |
---|---|
Copy another dtsSearchReportJob (shallow copy) |
To generate a search report, call the makeReport() member of a dtsSearchResults object.
A search report lists the hits found in one or more documents, with each hit surrounded by a specified amount of context. Each block of context starts with a contextHeader and ends with the contextFooter. Contiguous or overlapping blocks of context will be combined. The amount of context included in the report can be specified by words or by paragraphs.
Each block of context is constructed as follows:
The report as a whole is constructed as follows:
Use the following symbols to insert file information into the FileHeader and FileFooter:
Symbol |
Meaning |
Filename |
The name of the file (without path information). For PDF and HTML files, this will be the Title. |
Location |
The location of the file |
Fullname |
The path and filename of the file. |
Size |
File size in bytes |
SizeK |
File size in kilobytes |
Date |
Modification date of the file when indexed |
Hits |
Number of hits in the file |
Title |
The first 80 characters of the file |
The docId of the file | |
Type |
The file type (Microsoft Word, PDF, HTML, etc.) |
Ordinal |
The 1-based ordinal of this item in the SearchResults from which it was generated |
IndexRetrievedFrom |
The index where the file was found |
Use the following symbols to insert context information in the contextHeader, which appears in front of each block of context:
Symbol |
Meaning |
Page |
Page number where the hit occurs |
Paragraph |
Paragraph number where the hit occurs (relative to the start of the page) |
Word |
Word offset of the block of context from the beginning of the file. |
FirstHit |
Word offset of the first hit in the block of context. |
Use %% around each symbol, like this: %%FullName%%