AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDocument.GetDocument Method

If using DocFetch, this method returns the file path to the document in the backend repository.

string GetDocument();

#### Return Value

The path to the file.

#### Remarks

During crawl-time indexing, this file will be copied to the web-accessible location specified in the `IndexFilePath` parameter of the Web.Config file. The value returned by `GetDocument` is appended to the value entered in the `IndexURLPrefix` parameter in the Web.Config file and returned to the portal via a URL to that temporary location. During click-through, this file is streamed back via the DocFetch servlet to the browser. Note: The `IndexFilePath` must be web-accessible. The `IndexURLPrefix` must point to the same location as `IndexFilePath`, and must be a full URL (must start with http:// or https://). If any cleanup is required due to temporary file usage, it should be done on subsequent calls to `IDocumentProvider.AttachToDocument()` and `IDocumentProvider.Shutdown()`. If not using DocFetch, this method should return an empty string "".

#### See Also

IDocument Interface | Plumtree.Remote.Crawler Namespace