Help > Web Development > Object Reference > Object Reference > ISYSIndex > GetDocumentByName Method
<a name="kanchor426"></a>ISYSIndex:GetDocumentByName Method
Returns the ISYSDocument object for the given file name in the index. The filename must match exactly (including case) to how it is stored in the index.

Syntax
[VBScript]
function ISYSIndex.GetDocumentByName(_
  string Filename_ 
) as ISYSDocument
[C#]
IISYSDocument  IISYSIndex.GetDocumentByName(
  string Filename
);
[ColdFusion/Java]
IISYSDocument  IISYSIndex.GetDocumentByName(
  java.lang.String Filename
) throws ComException;
Parameters
FilenameThe name of the file as it exists in the index. The name is case sensitive.

Examples
[VBScript]
<% set document = Application("ISYSIndex").GetDocumentByName(Request("search")) if document <> Nothing then ' Handle processing of document object end if %>