blob: 0aed27c1c1813f174edca57dfd22b2205fbf30f2 [file] [log] [blame]
<html xmlns:MSHelp="http://msdn.microsoft.com/mshelp" xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" /><META NAME="save" CONTENT="history" /><title>TermPositions Members</title><meta name="Language" content="en-us" /><meta name="System.Keywords" content="TermPositions interface" /><meta name="System.Keywords" content="TermPositions interface, all members" /><meta name="System.Keywords" content="Lucene.Net.Index.TermPositions interface" /><meta name="Microsoft.Help.Id" content="AllMembers.T:Lucene.Net.Index.TermPositions" /><meta name="Microsoft.Help.ContentType" content="Reference" /><link rel="stylesheet" type="text/css" href="../styles/Presentation.css" /><link rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" /><script type="text/javascript" src="../scripts/EventUtilities.js"> </script><script type="text/javascript" src="../scripts/SplitScreen.js"> </script><script type="text/javascript" src="../scripts/Dropdown.js"> </script><script type="text/javascript" src="../scripts/script_manifold.js"> </script><script type="text/javascript" src="../scripts/script_feedBack.js"> </script><script type="text/javascript" src="../scripts/CheckboxMenu.js"> </script><script type="text/javascript" src="../scripts/CommonUtilities.js"> </script><meta name="container" content="Lucene.Net.Index" /><meta name="file" content="a3b4d1d1-f4ca-be2a-d6fb-f176ef3011b5" /><meta name="guid" content="a3b4d1d1-f4ca-be2a-d6fb-f176ef3011b5" /><xml><MSHelp:Attr Name="AssetID" Value="AllMembers.T:Lucene.Net.Index.TermPositions" /><MSHelp:TOCTitle Title="TermPositions Members" /><MSHelp:RLTitle Title="TermPositions Members (Lucene.Net.Index)" /><MSHelp:Keyword Index="A" Term="AllMembers.T:Lucene.Net.Index.TermPositions" /><MSHelp:Keyword Index="A" Term="frlrfLuceneNetIndexTermPositionsMembersTopic" /><MSHelp:Keyword Index="K" Term="TermPositions interface" /><MSHelp:Keyword Index="K" Term="TermPositions interface, all members" /><MSHelp:Keyword Index="K" Term="Lucene.Net.Index.TermPositions interface" /><MSHelp:Attr Name="HelpPriority" Value="1" /><MSHelp:Attr Name="DevLang" Value="CSharp" /><MSHelp:Attr Name="DevLang" Value="VB" /><MSHelp:Attr Name="Locale" Value="en-us" /><MSHelp:Attr Name="TopicType" Value="kbSyntax" /><MSHelp:Attr Name="TopicType" Value="apiref" /><MSHelp:Attr Name="AssemblyVersion" Value="2.9.4.1" /></xml></head><body><input type="hidden" id="userDataCache" class="userDataStyle" /><input type="hidden" id="hiddenScrollOffset" /><img id="collapseImage" style="display:none; height:0; width:0;" src="../icons/collapse_all.gif" alt="Collapse image" title="Collapse image" /><img id="expandImage" style="display:none; height:0; width:0;" src="../icons/expand_all.gif" alt="Expand Image" title="Expand Image" /><img id="collapseAllImage" style="display:none; height:0; width:0;" src="../icons/collapse_all.gif" /><img id="expandAllImage" style="display:none; height:0; width:0;" src="../icons/expand_all.gif" /><img id="dropDownImage" style="display:none; height:0; width:0;" src="../icons/dropdown.gif" /><img id="dropDownHoverImage" style="display:none; height:0; width:0;" src="../icons/dropdownHover.gif" /><img id="copyImage" style="display:none; height:0; width:0;" src="../icons/copycode.gif" alt="Copy image" title="Copy image" /><img id="copyHoverImage" style="display:none; height:0; width:0;" src="../icons/copycodeHighlight.gif" alt="CopyHover image" title="CopyHover image" /><div id="header"><table id="topTable" cellspacing="0" cellpadding="0"><tr><td><span onclick="ExpandCollapseAll(toggleAllImage)" style="cursor:default;" onkeypress="ExpandCollapseAll_CheckKey(toggleAllImage, event)" tabindex="0"><img ID="toggleAllImage" class="toggleAll" src="../icons/collapse_all.gif" /> <label id="collapseAllLabel" for="toggleAllImage" style="display: none;">Collapse All</label><label id="expandAllLabel" for="toggleAllImage" style="display: none;">Expand All</label> </span><span>    </span><span id="devlangsDropdown" class="filter" tabindex="0"><img id="devlangsDropdownImage" src="../icons/dropdown.gif" /> <label id="devlangsMenuAllLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: All </nobr></label><label id="devlangsMenuMultipleLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: Multiple </nobr></label><label id="devlangsMenuCSharpLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: C# </nobr></label><label id="devlangsMenuVisualBasicLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: Visual Basic </nobr></label><label id="devlangsMenuManagedCPlusPlusLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: Visual C++ </nobr></label></span><span>    </span><span id="memberOptionsDropdown" class="filter" tabindex="0"><img id="memberOptionsDropdownImage" src="../icons/dropdown.gif" /> <label id="memberOptionsMenuAllLabel" for="memberOptionsDropdownImage" style="display: none;"><nobr>Members: Show All </nobr></label><label id="memberOptionsMenuMultipleLabel" for="memberOptionsDropdownImage" style="display: none;"><nobr>Members: Filtered </nobr></label><label id="memberOptionsMenuProtectedLabel" for="memberOptionsDropdownImage" style="display: none;"><nobr>Members: Filtered </nobr></label><label id="memberOptionsMenuInheritedLabel" for="memberOptionsDropdownImage" style="display: none;"><nobr>Members: Filtered </nobr></label></span></td></tr></table><div id="devlangsMenu"><input id="CSharpCheckbox" type="checkbox" data="CSharp,cs,'persist'" value="on" onClick="SetLanguage(this)" /><label class="checkboxLabel" for="CSharpCheckbox">C#</label><br /><input id="VisualBasicCheckbox" type="checkbox" data="VisualBasic,vb,'persist'" value="on" onClick="SetLanguage(this)" /><label class="checkboxLabel" for="VisualBasicCheckbox">Visual Basic</label><br /><input id="ManagedCPlusPlusCheckbox" type="checkbox" data="ManagedCPlusPlus,cpp,'persist'" value="on" onClick="SetLanguage(this)" /><label class="checkboxLabel" for="ManagedCPlusPlusCheckbox">Visual C++</label><br /></div><div id="memberOptionsMenu"><input id="ProtectedCheckbox" type="checkbox" data="Protected" value="on" onClick="SetMemberOptions(this, 'vis')" /><label class="checkboxLabel" for="ProtectedCheckbox">Include Protected Members</label><br /><input id="InheritedCheckbox" type="checkbox" data="Inherited" value="on" onClick="SetMemberOptions(this, 'decl')" /><label class="checkboxLabel" for="InheritedCheckbox">Include Inherited Members</label><br /></div><table id="bottomTable" cellpadding="0" cellspacing="0"><tr id="headerTableRow1"><td align="left"><span id="runningHeaderText">Lucene.Net Class Libraries</span></td></tr><tr id="headerTableRow2"><td align="left"><span id="nsrTitle">TermPositions Members</span></td></tr><tr id="headerTableRow3"><td align="left"><a href="40a25e1f-1275-b914-0c78-a9dc1940f619.htm">TermPositions Interface</a> <a href="#methodTableToggle" onclick="OpenSection(methodTableToggle)">Methods</a> <a href="#seeAlsoToggle" onclick="OpenSection(seeAlsoToggle)">See Also</a> <span id="headfeedbackarea" class="feedbackhead"><a href="javascript:SubmitFeedback('','Lucene.Net Class Libraries','','','','%0\dYour%20feedback%20is%20used%20to%20improve%20the%20documentation%20and%20the%20product.%20Your%20e-mail%20address%20will%20not%20be%20used%20for%20any%20other%20purpose%20and%20is%20disposed%20of%20after%20the%20issue%20you%20report%20is%20resolved.%20%20While%20working%20to%20resolve%20the%20issue%20that%20you%20report,%20you%20may%20be%20contacted%20via%20e-mail%20to%20get%20further%20details%20or%20clarification%20on%20the%20feedback%20you%20sent.%20After%20the%20issue%20you%20report%20has%20been%20addressed,%20you%20may%20receive%20an%20e-mail%20to%20let%20you%20know%20that%20your%20feedback%20has%20been%20addressed.%0\A%0\d','Customer%20Feedback');">Send Feedback</a></span></td></tr></table><table id="gradientTable"><tr><td class="nsrBottom" background="../icons/gradient.gif" /></tr></table></div><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()" /><span style="color: DarkGray"></span><p /><p>The <a href="40a25e1f-1275-b914-0c78-a9dc1940f619.htm">TermPositions</a> type exposes the following members.</p><h1 class="heading"><span onclick="ExpandCollapse(methodTableToggle)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(methodTableToggle, event)" tabindex="0"><img id="methodTableToggle" class="toggle" name="toggleSwitch" src="../icons/collapse_all.gif" />Methods</span></h1><div id="methodTableSection" class="section" name="collapseableSection" style=""><table id="memberList" class="members" frame="lhs" cellpadding="2"><col width="10%" /><tr><th class="iconColumn">
 
</th><th class="nameColumn">Name</th><th class="descriptionColumn">Description</th></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="0c8d41b9-cf89-7c36-b518-38dced5e5e6d.htm">Close</a></td><td><div class="summary">Frees associated resources. </div> (Inherited from <a href="1b8a8035-6ad3-d5a0-3f35-2811aa77908a.htm">TermDocs</a>.)</td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="45852335-8ef6-e946-fc73-d70cbe68eb1f.htm">Doc</a></td><td><div class="summary">Returns the current document number. <p /> This is invalid until {@link
#Next()} is called for the first time.
</div> (Inherited from <a href="1b8a8035-6ad3-d5a0-3f35-2811aa77908a.htm">TermDocs</a>.)</td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="e4bc7a24-b4b9-16e9-0462-c60449905331.htm">Freq</a></td><td><div class="summary">Returns the frequency of the term within the current document. <p /> This
is invalid until {@link #Next()} is called for the first time.
</div> (Inherited from <a href="1b8a8035-6ad3-d5a0-3f35-2811aa77908a.htm">TermDocs</a>.)</td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="7acc4711-324b-f030-e45e-fb3db6dd68aa.htm">GetPayload</a></td><td><div class="summary"> Returns the payload data at the current term position.
This is invalid until {@link #NextPosition()} is called for
the first time.
This method must not be called more than once after each call
of {@link #NextPosition()}. However, payloads are loaded lazily,
so if the payload data for the current position is not needed,
this method may not be called at all for performance reasons.<br /></div></td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="b7a23c9a-8072-1923-5ee2-815b8fe3ed89.htm">GetPayloadLength</a></td><td><div class="summary"> Returns the length of the payload at the current term position.
This is invalid until {@link #NextPosition()} is called for
the first time.<br /></div></td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="98539d8c-1f10-b57a-e417-ce109d8be3d1.htm">IsPayloadAvailable</a></td><td><div class="summary"> Checks if a payload can be loaded at this position.
<p />
Payloads can only be loaded once per call to
{@link #NextPosition()}.
</div></td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="41a028c3-acf4-937c-6afd-cad4ba14251e.htm">Next</a></td><td><div class="summary">Moves to the next pair in the enumeration. <p /> Returns true iff there is
such a next pair in the enumeration.
</div> (Inherited from <a href="1b8a8035-6ad3-d5a0-3f35-2811aa77908a.htm">TermDocs</a>.)</td></tr><tr data="public;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="6c5e58f5-0e8c-a4cb-8380-d17bcc8fbe2c.htm">NextPosition</a></td><td><div class="summary">Returns next position in the current document. It is an error to call
this more than {@link #Freq()} times
without calling {@link #Next()}<p /> This is
invalid until {@link #Next()} is called for
the first time.
</div></td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="c0fc69ac-f435-1018-1c32-88468eead95f.htm">Read</a></td><td><div class="summary">Attempts to read multiple entries from the enumeration, up to length of
<i>docs</i>. Document numbers are stored in <i>docs</i>, and term
frequencies are stored in <i>freqs</i>. The <i>freqs</i> array must be as
long as the <i>docs</i> array.
<p />Returns the number of entries read. Zero is only returned when the
stream has been exhausted.
</div> (Inherited from <a href="1b8a8035-6ad3-d5a0-3f35-2811aa77908a.htm">TermDocs</a>.)</td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="ec09af98-0180-4118-7e07-abee88dd8ffc.htm">Seek(Term)</a></td><td><div class="summary">Sets this to the data for a term.
The enumeration is reset to the start of the data for this term.
</div> (Inherited from <a href="1b8a8035-6ad3-d5a0-3f35-2811aa77908a.htm">TermDocs</a>.)</td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="bb73119b-a8b6-0153-76cd-fc18fd233936.htm">Seek(TermEnum)</a></td><td><div class="summary">Sets this to the data for the current term in a {@link TermEnum}.
This may be optimized in some implementations.
</div> (Inherited from <a href="1b8a8035-6ad3-d5a0-3f35-2811aa77908a.htm">TermDocs</a>.)</td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /></td><td><a href="ea3c30c1-8e04-7a84-6455-bb5df0c6889e.htm">SkipTo</a></td><td><div class="summary">Skips entries to the first beyond the current whose document number is
greater than or equal to <i>target</i>. <p />Returns true iff there is such
an entry. <p />Behaves as if written: <pre>
boolean skipTo(int target) {
do {
if (!next())
return false;
} while (target &gt; doc());
return true;
}
</pre>
Some implementations are considerably more efficient than that.
</div> (Inherited from <a href="1b8a8035-6ad3-d5a0-3f35-2811aa77908a.htm">TermDocs</a>.)</td></tr></table></div><h1 class="heading"><span onclick="ExpandCollapse(seeAlsoToggle)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(seeAlsoToggle, event)" tabindex="0"><img id="seeAlsoToggle" class="toggle" name="toggleSwitch" src="../icons/collapse_all.gif" />See Also</span></h1><div id="seeAlsoSection" class="section" name="collapseableSection" style=""><div class="seeAlsoStyle"><a href="40a25e1f-1275-b914-0c78-a9dc1940f619.htm">TermPositions Interface</a></div><div class="seeAlsoStyle"><a href="4d52bcdb-050f-b66e-6d74-d7169ebc88b0.htm">Lucene.Net.Index Namespace</a></div></div></div><div id="footer"><div class="footerLine"><img width="100%" height="3px" src="../icons/footer.gif" alt="Footer image" title="Footer image" /></div><A NAME="feedback"></A><span id="fb" class="feedbackcss"></span></div></div></body></html>