blob: 4e19481872ab0519c929a15485b1888f8c84c8ee [file] [log] [blame]
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>FieldCache.GetShorts Method (IndexReader, String)</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tr id="hdr">
<td class="runninghead">Apache Lucene.Net 2.4.0 Class Library API</td>
<td class="product">
</td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">FieldCache.GetShorts Method (IndexReader, String)</h1>
</div>
</div>
<div id="nstext">
<p>Checks the internal cache for an appropriate entry, and if none is found, reads the terms in <pre class="code">field</pre> as shorts and returns an array of size <pre class="code">reader.maxDoc()</pre> of the value each document has in the given field. </p>
<div class="syntax">
<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemInt16ClassTopic.htm">short[]</a> GetShorts(<br />   <a href="Lucene.Net.Index.IndexReader.html">IndexReader</a> <i>reader</i>,<br />   <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a> <i>field</i><br />);</div>
<h4 class="dtH4">Parameters</h4>
<dl>
<dt>
<i>reader</i>
</dt>
<dd> Used to get field values. </dd>
<dt>
<i>field</i>
</dt>
<dd> Which field contains the shorts. </dd>
</dl>
<h4 class="dtH4">Return Value</h4>
<p> The values in the given field for each document. </p>
<h4 class="dtH4">See Also</h4>
<p>
<a href="Lucene.Net.Search.FieldCache.html">FieldCache Interface</a> | <a href="Lucene.Net.Search.html">Lucene.Net.Search Namespace</a> | <a href="Lucene.Net.Search.FieldCache.GetShorts_overloads.html">FieldCache.GetShorts Overload List</a></p>
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;">
<param name="Keyword" value="GetShorts method">
</param>
<param name="Keyword" value="GetShorts method, FieldCache interface">
</param>
<param name="Keyword" value="FieldCache.GetShorts method">
</param>
</object>
<hr />
<div id="footer">
<p>
</p>
<p>Generated from assembly Lucene.Net [2.4.0.2]</p>
</div>
</div>
</body>
</html>