Help > Web Development > Object Reference > Object Reference > ISYSDocument > Context Method
<a name="kanchor304"></a>ISYSDocument:Context Method
Returns a short summary of the document based on the context of the search.

Syntax
[VBScript]
function ISYSDocument.Context(_
  variant Style, _ 
  variant NumHits, _ 
  variant NumWords, _ 
  variant Separator_ 
) as string
[C#]
string ISYSResultList.Context(
  System.Object Style, 
  System.Object NumHits, 
  System.Object NumWords, 
  System.Object Separator
);
[ColdFusion/Java]
java.lang.String IISYSDocument.Context(
  System.Object Style, 
  System.Object NumHits, 
  System.Object NumWords, 
  System.Object Separator
) throws ComException;
Parameters
Style[Optional] Indicates text formatting to apply
isysStyleRaw0Includes ISYS markup tags
isysStylePlain1Plain text with no formatting
isysStyleHTML2Text is formatted with html markup
NumHits[Optional] The number of hits to be used to generate the context.
NumWords[Optional] The number of works surrounding each hit
Separator[Optional] Text that is inserted to show a break in the text.

Examples
[VBScript]
<% ' Execute a pre-configured ISYSSearch object Set Results = ISYSSearch.Execute ' Get the document Set Document = Results(CLng("doc")) ' Display context, 12 words around the first 5 hits Response.Write Document.Context(isysStyleHTML, 5, 12, "...") %>