The SearchResults object provides access to the results of an in-memory search.
public class SearchResults;
SearchResults.java
To create a SearchResults object containing the results of a search,
|
Field |
Description |
|
Sort in ascending order | |
|
Sort by modification date | |
|
Sort by hit count (or score, in a natural language search | |
|
Sort by the path to the index a document was found in | |
|
Sort by file location (usually the folder name) | |
|
Sort by filename | |
|
Sort by file size | |
|
Sort by file modification time (not date) | |
|
Sort by file title | |
|
Sort by file type | |
|
Sort by a user-defined field, proivded in the fieldName parameter | |
|
For string sorts, use a case-insensitive sort | |
|
Sort in descending order | |
|
Sort strings in order by numeric value |
|
Method |
Description |
|
Add a document to search results | |
|
Remove all items from a search results list (this immediately frees memory needed for the items) | |
|
Number of documents in the search results | |
|
Document modified date | |
|
Document modified date | |
|
Provides access to detailed information about the retrieved document in the DocDetails string. | |
|
Returns the same document fields as getDocDetailMap(), but formatted as a single string. | |
|
Builds a java.util.Map from the field information associated with a document. | |
|
If non-blank, an alternative name to display for the document (for example, the title of an HTML document). | |
|
Number of hits found in the currently selected document. | |
|
An integer array containing the word offsets of the hits found in the currently selected document. | |
|
Doc id of the currently selected document | |
|
Name of the currently selected document | |
|
Size of the currently selected document, in bytes | |
|
TypeId identifying the file format of the currently selected document | |
|
Generates a list of byte offsets of the hits in a file, for plain text files only. | |
|
Generates a list of byte offsets of the hits in a file, for plain text files only. | |
|
Call GetNthDoc to select the nth document in the search results set and returns true if the document was selected. | |
|
Returns the search request that generated these results | |
|
Generates xml data used to highlight hits in Adobe Reader through a web browser interface. | |
|
Use a SearchReportJob to generate a search report from some or all of the items listed in a SearchResults object. | |
|
Generates a stream of XML containing data in the search results list. | |
|
Fills a SearchResults object with data from an XML stream generated by serializeAsXml | |
|
Generates a stream of XML data for a particular item in the search results list | |
|
Set the sort key for the currently-selected document. | |
|
This is the overview for the sort method overload. | |
|
UrlDecodeItem converts a string created by urlEncodeItem back into a search results item. | |
|
urlEncodeItem creates a url-encoded string describing the currently-selected item in search results. |
|
Data Member |
|
Method |
|
Copyright (c) 1998-2012 dtSearch Corp. All rights reserved.
|