blob: 07671a58b674f1310f4b6559edad11db3bf20d9a [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Lucene.Net: Lucene.Net.Analysis.Token Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="lucene-net-icon-128x128.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Lucene.Net
&#160;<span id="projectnumber">3.0.3</span>
</div>
<div id="projectbrief">Lucene.Net is a .NET port of the Java Lucene Indexing Library</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="Index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Packages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespace_lucene.html">Lucene</a></li><li class="navelem"><a class="el" href="namespace_lucene_1_1_net.html">Net</a></li><li class="navelem"><a class="el" href="namespace_lucene_1_1_net_1_1_analysis.html">Analysis</a></li><li class="navelem"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_lucene_1_1_net_1_1_analysis_1_1_token-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Lucene.Net.Analysis.Token Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> is an occurrence of a term from the text of a field. It consists of a term's text, the start and end offset of the term in the text of the field, and a type string. The start and end offsets permit applications to re-associate a token with its source text, e.g., to display highlighted query terms in a document browser, or to show matching text fragments in a &lt;abbr title="KeyWord In Context"&gt;KWIC&lt;/abbr&gt; display, etc. The type is a string, assigned by a lexical analyzer (a.k.a. tokenizer), naming the lexical or syntactic class that the token belongs to. For example an end of sentence marker token might be implemented with type "eos". The default token type is "word". A <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> can optionally have metadata (a.k.a. Payload) in the form of a variable length byte array. Use TermPositions.PayloadLength and TermPositions.GetPayload(byte[], int) to retrieve the payloads from the index.
<a href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#details">More...</a></p>
<p>Inherits <a class="el" href="class_lucene_1_1_net_1_1_util_1_1_attribute.html">Lucene.Net.Util.Attribute</a>, <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute.html">Lucene.Net.Analysis.Tokenattributes.ITermAttribute</a>, <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_type_attribute.html">Lucene.Net.Analysis.Tokenattributes.ITypeAttribute</a>, <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_position_increment_attribute.html">Lucene.Net.Analysis.Tokenattributes.IPositionIncrementAttribute</a>, <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_flags_attribute.html">Lucene.Net.Analysis.Tokenattributes.IFlagsAttribute</a>, <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute.html">Lucene.Net.Analysis.Tokenattributes.IOffsetAttribute</a>, and <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_payload_attribute.html">Lucene.Net.Analysis.Tokenattributes.IPayloadAttribute</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token_1_1_token_attribute_factory.html">TokenAttributeFactory</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><b>Expert</b>: Creates an AttributeFactory returning <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a> as instance for the basic attributes and for all other attributes calls the given delegate factory. <a href="class_lucene_1_1_net_1_1_analysis_1_1_token_1_1_token_attribute_factory.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7fbc82ee936bc164fc5327b6c8a59876"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a7fbc82ee936bc164fc5327b6c8a59876">Token</a> ()</td></tr>
<tr class="memdesc:a7fbc82ee936bc164fc5327b6c8a59876"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> will null text. <a href="#a7fbc82ee936bc164fc5327b6c8a59876"></a><br/></td></tr>
<tr class="separator:a7fbc82ee936bc164fc5327b6c8a59876"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a044cf0232f268c33730f73c1aede6033"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a044cf0232f268c33730f73c1aede6033">Token</a> (int start, int end)</td></tr>
<tr class="memdesc:a044cf0232f268c33730f73c1aede6033"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with null text and start &amp; end offsets. <a href="#a044cf0232f268c33730f73c1aede6033"></a><br/></td></tr>
<tr class="separator:a044cf0232f268c33730f73c1aede6033"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f3ab9be627a221b49e9c5a534986064"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a2f3ab9be627a221b49e9c5a534986064">Token</a> (int start, int end, String typ)</td></tr>
<tr class="memdesc:a2f3ab9be627a221b49e9c5a534986064"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with null text and start &amp; end offsets plus the <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> type. <a href="#a2f3ab9be627a221b49e9c5a534986064"></a><br/></td></tr>
<tr class="separator:a2f3ab9be627a221b49e9c5a534986064"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae44c5417202d2301a1845a078152aa54"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#ae44c5417202d2301a1845a078152aa54">Token</a> (int start, int end, int flags)</td></tr>
<tr class="memdesc:ae44c5417202d2301a1845a078152aa54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with null text and start &amp; end offsets plus flags. NOTE: flags is EXPERIMENTAL. <a href="#ae44c5417202d2301a1845a078152aa54"></a><br/></td></tr>
<tr class="separator:ae44c5417202d2301a1845a078152aa54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dfd2284ee266a4a30a0a23deec62534"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a0dfd2284ee266a4a30a0a23deec62534">Token</a> (String text, int start, int end)</td></tr>
<tr class="memdesc:a0dfd2284ee266a4a30a0a23deec62534"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with the given term text, and start &amp; end offsets. The type defaults to "word." <b>NOTE:</b> for better indexing speed you should instead use the char[] termBuffer methods to set the term text. <a href="#a0dfd2284ee266a4a30a0a23deec62534"></a><br/></td></tr>
<tr class="separator:a0dfd2284ee266a4a30a0a23deec62534"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e35bab7f1cdef33b1a17ad4d10b72cf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a7e35bab7f1cdef33b1a17ad4d10b72cf">Token</a> (System.String text, int start, int end, System.String typ)</td></tr>
<tr class="memdesc:a7e35bab7f1cdef33b1a17ad4d10b72cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with the given text, start and end offsets, &amp; type. <b>NOTE:</b> for better indexing speed you should instead use the char[] termBuffer methods to set the term text. <a href="#a7e35bab7f1cdef33b1a17ad4d10b72cf"></a><br/></td></tr>
<tr class="separator:a7e35bab7f1cdef33b1a17ad4d10b72cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3901d30ee7034d1cd6e2a15faf0e5930"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a3901d30ee7034d1cd6e2a15faf0e5930">Token</a> (System.String text, int start, int end, int flags)</td></tr>
<tr class="memdesc:a3901d30ee7034d1cd6e2a15faf0e5930"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with the given text, start and end offsets, &amp; type. <b>NOTE:</b> for better indexing speed you should instead use the char[] termBuffer methods to set the term text. <a href="#a3901d30ee7034d1cd6e2a15faf0e5930"></a><br/></td></tr>
<tr class="separator:a3901d30ee7034d1cd6e2a15faf0e5930"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c2e4149c2c22ea1c6f6f443f507f30b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a0c2e4149c2c22ea1c6f6f443f507f30b">Token</a> (char[] startTermBuffer, int termBufferOffset, int termBufferLength, int start, int end)</td></tr>
<tr class="memdesc:a0c2e4149c2c22ea1c6f6f443f507f30b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with the given term buffer (offset &amp; length), start and end offsets <a href="#a0c2e4149c2c22ea1c6f6f443f507f30b"></a><br/></td></tr>
<tr class="separator:a0c2e4149c2c22ea1c6f6f443f507f30b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af33e3e56ddfaae9179d39da6ce0402dc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af33e3e56ddfaae9179d39da6ce0402dc">SetTermBuffer</a> (char[] buffer, int offset, int length)</td></tr>
<tr class="memdesc:af33e3e56ddfaae9179d39da6ce0402dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies the contents of buffer, starting at offset for length characters, into the termBuffer array. <a href="#af33e3e56ddfaae9179d39da6ce0402dc"></a><br/></td></tr>
<tr class="separator:af33e3e56ddfaae9179d39da6ce0402dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a985603881534cb7e6ba5edc153ae3d65"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a985603881534cb7e6ba5edc153ae3d65">SetTermBuffer</a> (System.String buffer)</td></tr>
<tr class="memdesc:a985603881534cb7e6ba5edc153ae3d65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies the contents of buffer into the termBuffer array. <a href="#a985603881534cb7e6ba5edc153ae3d65"></a><br/></td></tr>
<tr class="separator:a985603881534cb7e6ba5edc153ae3d65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13d8d4e6a7357de760e09a800f7eecb5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a13d8d4e6a7357de760e09a800f7eecb5">SetTermBuffer</a> (System.String buffer, int offset, int length)</td></tr>
<tr class="memdesc:a13d8d4e6a7357de760e09a800f7eecb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies the contents of buffer, starting at offset and continuing for length characters, into the termBuffer array. <a href="#a13d8d4e6a7357de760e09a800f7eecb5"></a><br/></td></tr>
<tr class="separator:a13d8d4e6a7357de760e09a800f7eecb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a452174268b8297bbfd5a3fb464cbe04c"><td class="memItemLeft" align="right" valign="top">char[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a452174268b8297bbfd5a3fb464cbe04c">TermBuffer</a> ()</td></tr>
<tr class="memdesc:a452174268b8297bbfd5a3fb464cbe04c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the internal termBuffer character array which you can then directly alter. If the array is too small for your token, use <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a23a2397d0d99c5bc7fd2150a8d78bdc8" title="Grows the termBuffer to at least size newSize, preserving the existing content. Note: If the next ope...">ResizeTermBuffer(int)</a> to increase it. After altering the buffer be sure to call <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a1c8103ac6c043c197fffe3de56f1e043" title="Set number of valid characters (length of the term) in the termBuffer array. Use this to truncate the...">SetTermLength</a> to record the number of valid characters that were placed into the termBuffer. <a href="#a452174268b8297bbfd5a3fb464cbe04c"></a><br/></td></tr>
<tr class="separator:a452174268b8297bbfd5a3fb464cbe04c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23a2397d0d99c5bc7fd2150a8d78bdc8"><td class="memItemLeft" align="right" valign="top">virtual char[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a23a2397d0d99c5bc7fd2150a8d78bdc8">ResizeTermBuffer</a> (int newSize)</td></tr>
<tr class="memdesc:a23a2397d0d99c5bc7fd2150a8d78bdc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Grows the termBuffer to at least size newSize, preserving the existing content. Note: If the next operation is to change the contents of the term buffer use <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af33e3e56ddfaae9179d39da6ce0402dc" title="Copies the contents of buffer, starting at offset for length characters, into the termBuffer array...">SetTermBuffer(char[], int, int)</a>, SetTermBuffer(String), or SetTermBuffer(String, int, int) to optimally combine the resize with the setting of the termBuffer. <a href="#a23a2397d0d99c5bc7fd2150a8d78bdc8"></a><br/></td></tr>
<tr class="separator:a23a2397d0d99c5bc7fd2150a8d78bdc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06d3ac24f755c433802c6200a60dbda4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a06d3ac24f755c433802c6200a60dbda4">TermLength</a> ()</td></tr>
<tr class="memdesc:a06d3ac24f755c433802c6200a60dbda4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return number of valid characters (length of the term) in the termBuffer array. <a href="#a06d3ac24f755c433802c6200a60dbda4"></a><br/></td></tr>
<tr class="separator:a06d3ac24f755c433802c6200a60dbda4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c8103ac6c043c197fffe3de56f1e043"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a1c8103ac6c043c197fffe3de56f1e043">SetTermLength</a> (int length)</td></tr>
<tr class="memdesc:a1c8103ac6c043c197fffe3de56f1e043"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set number of valid characters (length of the term) in the termBuffer array. Use this to truncate the termBuffer or to synchronize with external manipulation of the termBuffer. Note: to grow the size of the array, use <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a23a2397d0d99c5bc7fd2150a8d78bdc8" title="Grows the termBuffer to at least size newSize, preserving the existing content. Note: If the next ope...">ResizeTermBuffer(int)</a> first. <a href="#a1c8103ac6c043c197fffe3de56f1e043"></a><br/></td></tr>
<tr class="separator:a1c8103ac6c043c197fffe3de56f1e043"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08be487236606c501726d84749755f64"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a08be487236606c501726d84749755f64">SetOffset</a> (int startOffset, int endOffset)</td></tr>
<tr class="memdesc:a08be487236606c501726d84749755f64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the starting and ending offset. See <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset()</a> and <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset()</a> <a href="#a08be487236606c501726d84749755f64"></a><br/></td></tr>
<tr class="separator:a08be487236606c501726d84749755f64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7370b2e3279f60cfeea84965a2472044"><td class="memItemLeft" align="right" valign="top">override String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a7370b2e3279f60cfeea84965a2472044">ToString</a> ()</td></tr>
<tr class="separator:a7370b2e3279f60cfeea84965a2472044"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39b0ae963e4058899f89b4a46869a62c"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c">Clear</a> ()</td></tr>
<tr class="memdesc:a39b0ae963e4058899f89b4a46869a62c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to default. <a href="#a39b0ae963e4058899f89b4a46869a62c"></a><br/></td></tr>
<tr class="separator:a39b0ae963e4058899f89b4a46869a62c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed1714059d4be96d62a674e7be53c573"><td class="memItemLeft" align="right" valign="top">override System.Object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#aed1714059d4be96d62a674e7be53c573">Clone</a> ()</td></tr>
<tr class="memdesc:aed1714059d4be96d62a674e7be53c573"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shallow clone. Subclasses must override this if they need to clone any members deeply, <a href="#aed1714059d4be96d62a674e7be53c573"></a><br/></td></tr>
<tr class="separator:aed1714059d4be96d62a674e7be53c573"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef73babf240e93929aacf7e7b9e742d5"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#aef73babf240e93929aacf7e7b9e742d5">Clone</a> (char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset)</td></tr>
<tr class="memdesc:aef73babf240e93929aacf7e7b9e742d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Makes a clone, but replaces the term buffer &amp; start/end offset in the process. This is more efficient than doing a full clone (and then calling setTermBuffer) because it saves a wasted copy of the old termBuffer. <a href="#aef73babf240e93929aacf7e7b9e742d5"></a><br/></td></tr>
<tr class="separator:aef73babf240e93929aacf7e7b9e742d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90f65f199f5121e0632fe8c9f7bf94c3"><td class="memItemLeft" align="right" valign="top">override bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a90f65f199f5121e0632fe8c9f7bf94c3">Equals</a> (Object obj)</td></tr>
<tr class="separator:a90f65f199f5121e0632fe8c9f7bf94c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08f244d5502657d6b9d446c16fabe3c1"><td class="memItemLeft" align="right" valign="top">override int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a08f244d5502657d6b9d446c16fabe3c1">GetHashCode</a> ()</td></tr>
<tr class="memdesc:a08f244d5502657d6b9d446c16fabe3c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Subclasses must implement this method and should compute a hashCode similar to this: <a href="#a08f244d5502657d6b9d446c16fabe3c1"></a><br/></td></tr>
<tr class="separator:a08f244d5502657d6b9d446c16fabe3c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6819cd93a36c54c25ef86757305fcf6b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a6819cd93a36c54c25ef86757305fcf6b">Reinit</a> (char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset, System.String newType)</td></tr>
<tr class="memdesc:a6819cd93a36c54c25ef86757305fcf6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af33e3e56ddfaae9179d39da6ce0402dc" title="Copies the contents of buffer, starting at offset for length characters, into the termBuffer array...">SetTermBuffer(char[], int, int)</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> <a href="#a6819cd93a36c54c25ef86757305fcf6b"></a><br/></td></tr>
<tr class="separator:a6819cd93a36c54c25ef86757305fcf6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7dc73337d8f6113925e3f129eb493563"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a7dc73337d8f6113925e3f129eb493563">Reinit</a> (char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset)</td></tr>
<tr class="memdesc:a7dc73337d8f6113925e3f129eb493563"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af33e3e56ddfaae9179d39da6ce0402dc" title="Copies the contents of buffer, starting at offset for length characters, into the termBuffer array...">SetTermBuffer(char[], int, int)</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a> <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> on <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">Token.DEFAULT_TYPE</a> <a href="#a7dc73337d8f6113925e3f129eb493563"></a><br/></td></tr>
<tr class="separator:a7dc73337d8f6113925e3f129eb493563"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab7667fcc7523e49c509bc88c1cff7ca"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#aab7667fcc7523e49c509bc88c1cff7ca">Reinit</a> (System.String newTerm, int newStartOffset, int newEndOffset, System.String newType)</td></tr>
<tr class="memdesc:aab7667fcc7523e49c509bc88c1cff7ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, SetTermBuffer(String), <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a> <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> <a href="#aab7667fcc7523e49c509bc88c1cff7ca"></a><br/></td></tr>
<tr class="separator:aab7667fcc7523e49c509bc88c1cff7ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63a5d7e9e4c9e5e38217f3a89fa4bd17"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a63a5d7e9e4c9e5e38217f3a89fa4bd17">Reinit</a> (System.String newTerm, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset, System.String newType)</td></tr>
<tr class="memdesc:a63a5d7e9e4c9e5e38217f3a89fa4bd17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, SetTermBuffer(String, int, int), <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a> <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> <a href="#a63a5d7e9e4c9e5e38217f3a89fa4bd17"></a><br/></td></tr>
<tr class="separator:a63a5d7e9e4c9e5e38217f3a89fa4bd17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50e8e1ac648661d28966cfcd1493f56c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a50e8e1ac648661d28966cfcd1493f56c">Reinit</a> (System.String newTerm, int newStartOffset, int newEndOffset)</td></tr>
<tr class="memdesc:a50e8e1ac648661d28966cfcd1493f56c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, SetTermBuffer(String), <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a> <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> on <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">Token.DEFAULT_TYPE</a> <a href="#a50e8e1ac648661d28966cfcd1493f56c"></a><br/></td></tr>
<tr class="separator:a50e8e1ac648661d28966cfcd1493f56c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30e9d4e9ee5c03c99824433af0b5ccad"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a30e9d4e9ee5c03c99824433af0b5ccad">Reinit</a> (System.String newTerm, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset)</td></tr>
<tr class="memdesc:a30e9d4e9ee5c03c99824433af0b5ccad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, SetTermBuffer(String, int, int), <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a> <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> on <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">Token.DEFAULT_TYPE</a> <a href="#a30e9d4e9ee5c03c99824433af0b5ccad"></a><br/></td></tr>
<tr class="separator:a30e9d4e9ee5c03c99824433af0b5ccad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5706fbfa2bdf7010dfa5ee8e6e3664c8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a5706fbfa2bdf7010dfa5ee8e6e3664c8">Reinit</a> (<a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a> prototype)</td></tr>
<tr class="memdesc:a5706fbfa2bdf7010dfa5ee8e6e3664c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy the prototype token's fields into this one. Note: <a class="el" href="namespace_lucene_1_1_net_1_1_analysis_1_1_payloads.html">Payloads</a> are shared. <a href="#a5706fbfa2bdf7010dfa5ee8e6e3664c8"></a><br/></td></tr>
<tr class="separator:a5706fbfa2bdf7010dfa5ee8e6e3664c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14495f3460894cee22cd94a2b2ba1324"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a14495f3460894cee22cd94a2b2ba1324">Reinit</a> (<a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a> prototype, System.String newTerm)</td></tr>
<tr class="memdesc:a14495f3460894cee22cd94a2b2ba1324"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy the prototype token's fields into this one, with a different term. Note: <a class="el" href="namespace_lucene_1_1_net_1_1_analysis_1_1_payloads.html">Payloads</a> are shared. <a href="#a14495f3460894cee22cd94a2b2ba1324"></a><br/></td></tr>
<tr class="separator:a14495f3460894cee22cd94a2b2ba1324"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16ac7fdb39ab89fbd5f93392115b7283"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a16ac7fdb39ab89fbd5f93392115b7283">Reinit</a> (<a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a> prototype, char[] newTermBuffer, int offset, int length)</td></tr>
<tr class="memdesc:a16ac7fdb39ab89fbd5f93392115b7283"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy the prototype token's fields into this one, with a different term. Note: <a class="el" href="namespace_lucene_1_1_net_1_1_analysis_1_1_payloads.html">Payloads</a> are shared. <a href="#a16ac7fdb39ab89fbd5f93392115b7283"></a><br/></td></tr>
<tr class="separator:a16ac7fdb39ab89fbd5f93392115b7283"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66085630b83bc20c0a6917cc981ff9d5"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a66085630b83bc20c0a6917cc981ff9d5">CopyTo</a> (<a class="el" href="class_lucene_1_1_net_1_1_util_1_1_attribute.html">Attribute</a> target)</td></tr>
<tr class="separator:a66085630b83bc20c0a6917cc981ff9d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_lucene_1_1_net_1_1_util_1_1_attribute"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_lucene_1_1_net_1_1_util_1_1_attribute')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_lucene_1_1_net_1_1_util_1_1_attribute.html">Lucene.Net.Util.Attribute</a></td></tr>
<tr class="memitem:a945d56552a3fecd714f46f5fa1fc71c6 inherit pub_methods_class_lucene_1_1_net_1_1_util_1_1_attribute"><td class="memItemLeft" align="right" valign="top">override System.String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_util_1_1_attribute.html#a945d56552a3fecd714f46f5fa1fc71c6">ToString</a> ()</td></tr>
<tr class="memdesc:a945d56552a3fecd714f46f5fa1fc71c6 inherit pub_methods_class_lucene_1_1_net_1_1_util_1_1_attribute"><td class="mdescLeft">&#160;</td><td class="mdescRight">The default implementation of this method accesses all declared fields of this object and prints the values in the following syntax: <a href="#a945d56552a3fecd714f46f5fa1fc71c6"></a><br/></td></tr>
<tr class="separator:a945d56552a3fecd714f46f5fa1fc71c6 inherit pub_methods_class_lucene_1_1_net_1_1_util_1_1_attribute"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dbb5aff62b5fa74917d15fcd84a005e inherit pub_methods_class_lucene_1_1_net_1_1_util_1_1_attribute"><td class="memItemLeft" align="right" valign="top">abstract override bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_util_1_1_attribute.html#a4dbb5aff62b5fa74917d15fcd84a005e">Equals</a> (System.Object other)</td></tr>
<tr class="memdesc:a4dbb5aff62b5fa74917d15fcd84a005e inherit pub_methods_class_lucene_1_1_net_1_1_util_1_1_attribute"><td class="mdescLeft">&#160;</td><td class="mdescRight">All values used for computation of <a class="el" href="class_lucene_1_1_net_1_1_util_1_1_attribute.html#aec895bd12ca53ffb41a1309c7a4d9d0f" title="Subclasses must implement this method and should compute a hashCode similar to this:">GetHashCode()</a> should be checked here for equality. <a href="#a4dbb5aff62b5fa74917d15fcd84a005e"></a><br/></td></tr>
<tr class="separator:a4dbb5aff62b5fa74917d15fcd84a005e inherit pub_methods_class_lucene_1_1_net_1_1_util_1_1_attribute"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:af17f78750316f17b3dcd01ee7f080d25"><td class="memItemLeft" align="right" valign="top">const String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">DEFAULT_TYPE</a> = &quot;word&quot;</td></tr>
<tr class="separator:af17f78750316f17b3dcd01ee7f080d25"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a9655b47f5556cd77665144cabece0a2c"><td class="memItemLeft" align="right" valign="top">static <br class="typebreak"/>
AttributeSource.AttributeFactory&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a9655b47f5556cd77665144cabece0a2c">TOKEN_ATTRIBUTE_FACTORY</a></td></tr>
<tr class="separator:a9655b47f5556cd77665144cabece0a2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a18cc1de69d72cea8f63246b9437a1399"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a18cc1de69d72cea8f63246b9437a1399">PositionIncrement</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a18cc1de69d72cea8f63246b9437a1399"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the position increment. This determines the position of this token relative to the previous <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> in a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token_stream.html" title="A TokenStream enumerates the sequence of tokens, either from Fields of a Document or from query text...">TokenStream</a>, used in phrase searching. <a href="#a18cc1de69d72cea8f63246b9437a1399"></a><br/></td></tr>
<tr class="separator:a18cc1de69d72cea8f63246b9437a1399"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3603dc298a059de4b5cfa181d836cca"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#ab3603dc298a059de4b5cfa181d836cca">Term</a><code> [get]</code></td></tr>
<tr class="memdesc:ab3603dc298a059de4b5cfa181d836cca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s term text. <a href="#ab3603dc298a059de4b5cfa181d836cca"></a><br/></td></tr>
<tr class="separator:ab3603dc298a059de4b5cfa181d836cca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a421271c40ecfd6be5852f55a4a08ccb0"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0">StartOffset</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a421271c40ecfd6be5852f55a4a08ccb0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets or sets this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s starting offset, the position of the first character corresponding to this token in the source text. Note that the difference between endOffset() and startOffset() may not be equal to <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a06d3ac24f755c433802c6200a60dbda4" title="Return number of valid characters (length of the term) in the termBuffer array. ">TermLength</a>, as the term text may have been altered by a stemmer or some other filter. <a href="#a421271c40ecfd6be5852f55a4a08ccb0"></a><br/></td></tr>
<tr class="separator:a421271c40ecfd6be5852f55a4a08ccb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8dac36e25c06d03003cf46748858026f"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f">EndOffset</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a8dac36e25c06d03003cf46748858026f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets or sets this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s ending offset, one greater than the position of the last character corresponding to this token in the source text. The length of the token in the source text is (endOffset - startOffset). <a href="#a8dac36e25c06d03003cf46748858026f"></a><br/></td></tr>
<tr class="separator:a8dac36e25c06d03003cf46748858026f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61943bcca47590fc996a1ced87587ebc"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc">Type</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a61943bcca47590fc996a1ced87587ebc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s lexical type. Defaults to "word". <a href="#a61943bcca47590fc996a1ced87587ebc"></a><br/></td></tr>
<tr class="separator:a61943bcca47590fc996a1ced87587ebc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a2c75871d2e56906e8329e8dfe92125"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a7a2c75871d2e56906e8329e8dfe92125">Flags</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a7a2c75871d2e56906e8329e8dfe92125"><td class="mdescLeft">&#160;</td><td class="mdescRight">EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long. <a href="#a7a2c75871d2e56906e8329e8dfe92125"></a><br/></td></tr>
<tr class="separator:a7a2c75871d2e56906e8329e8dfe92125"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed3aa6f2f6759e126b1d837c2049cee7"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="core_2_analysis_2_token_8cs.html#aba3faac25c0f0a8ba32b9ec6854f2657">Payload</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#aed3aa6f2f6759e126b1d837c2049cee7">Payload</a><code> [get, set]</code></td></tr>
<tr class="memdesc:aed3aa6f2f6759e126b1d837c2049cee7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s payload. <a href="#aed3aa6f2f6759e126b1d837c2049cee7"></a><br/></td></tr>
<tr class="separator:aed3aa6f2f6759e126b1d837c2049cee7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute"><td colspan="2" onclick="javascript:toggleInherit('properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute.html">Lucene.Net.Analysis.Tokenattributes.ITermAttribute</a></td></tr>
<tr class="memitem:acdcd805612ee71187baaf3ab48d73536 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute.html#acdcd805612ee71187baaf3ab48d73536">Term</a><code> [get]</code></td></tr>
<tr class="memdesc:acdcd805612ee71187baaf3ab48d73536 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s term text. <a href="#acdcd805612ee71187baaf3ab48d73536"></a><br/></td></tr>
<tr class="separator:acdcd805612ee71187baaf3ab48d73536 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_type_attribute"><td colspan="2" onclick="javascript:toggleInherit('properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_type_attribute')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_type_attribute.html">Lucene.Net.Analysis.Tokenattributes.ITypeAttribute</a></td></tr>
<tr class="memitem:abd0a770627f9fa3eee2727544763adf2 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_type_attribute"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_type_attribute.html#abd0a770627f9fa3eee2727544763adf2">Type</a><code> [get, set]</code></td></tr>
<tr class="memdesc:abd0a770627f9fa3eee2727544763adf2 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_type_attribute"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets or sets this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s lexical type. Defaults to "word". <a href="#abd0a770627f9fa3eee2727544763adf2"></a><br/></td></tr>
<tr class="separator:abd0a770627f9fa3eee2727544763adf2 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_type_attribute"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_position_increment_attribute"><td colspan="2" onclick="javascript:toggleInherit('properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_position_increment_attribute')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_position_increment_attribute.html">Lucene.Net.Analysis.Tokenattributes.IPositionIncrementAttribute</a></td></tr>
<tr class="memitem:a3d8ab40f937085e6708296059d0732b2 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_position_increment_attribute"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_position_increment_attribute.html#a3d8ab40f937085e6708296059d0732b2">PositionIncrement</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a3d8ab40f937085e6708296059d0732b2 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_position_increment_attribute"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets or sets the position increment. The default value is one. <a href="#a3d8ab40f937085e6708296059d0732b2"></a><br/></td></tr>
<tr class="separator:a3d8ab40f937085e6708296059d0732b2 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_position_increment_attribute"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_flags_attribute"><td colspan="2" onclick="javascript:toggleInherit('properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_flags_attribute')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_flags_attribute.html">Lucene.Net.Analysis.Tokenattributes.IFlagsAttribute</a></td></tr>
<tr class="memitem:a090cfb49548c88a00c594ef3f7ec2390 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_flags_attribute"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_flags_attribute.html#a090cfb49548c88a00c594ef3f7ec2390">Flags</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a090cfb49548c88a00c594ef3f7ec2390 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_flags_attribute"><td class="mdescLeft">&#160;</td><td class="mdescRight">EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long. <a href="#a090cfb49548c88a00c594ef3f7ec2390"></a><br/></td></tr>
<tr class="separator:a090cfb49548c88a00c594ef3f7ec2390 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_flags_attribute"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute"><td colspan="2" onclick="javascript:toggleInherit('properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute.html">Lucene.Net.Analysis.Tokenattributes.IOffsetAttribute</a></td></tr>
<tr class="memitem:a2762094728bc2fd1d79680186e7db942 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute.html#a2762094728bc2fd1d79680186e7db942">StartOffset</a><code> [get]</code></td></tr>
<tr class="memdesc:a2762094728bc2fd1d79680186e7db942 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s starting offset, the position of the first character corresponding to this token in the source text. Note that the difference between endOffset() and startOffset() may not be equal to termText.length(), as the term text may have been altered by a stemmer or some other filter. <a href="#a2762094728bc2fd1d79680186e7db942"></a><br/></td></tr>
<tr class="separator:a2762094728bc2fd1d79680186e7db942 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e79d01df63e690957780c19ee5ac863 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute.html#a7e79d01df63e690957780c19ee5ac863">EndOffset</a><code> [get]</code></td></tr>
<tr class="memdesc:a7e79d01df63e690957780c19ee5ac863 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s ending offset, one greater than the position of the last character corresponding to this token in the source text. The length of the token in the source text is (endOffset - startOffset). <a href="#a7e79d01df63e690957780c19ee5ac863"></a><br/></td></tr>
<tr class="separator:a7e79d01df63e690957780c19ee5ac863 inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_payload_attribute"><td colspan="2" onclick="javascript:toggleInherit('properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_payload_attribute')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_payload_attribute.html">Lucene.Net.Analysis.Tokenattributes.IPayloadAttribute</a></td></tr>
<tr class="memitem:a85b93b190217f58207d09ef78a2381df inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_payload_attribute"><td class="memItemLeft" align="right" valign="top"><a class="el" href="core_2_analysis_2_token_8cs.html#aba3faac25c0f0a8ba32b9ec6854f2657">Payload</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_payload_attribute.html#a85b93b190217f58207d09ef78a2381df">Payload</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a85b93b190217f58207d09ef78a2381df inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_payload_attribute"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s payload. <a href="#a85b93b190217f58207d09ef78a2381df"></a><br/></td></tr>
<tr class="separator:a85b93b190217f58207d09ef78a2381df inherit properties_interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_payload_attribute"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> is an occurrence of a term from the text of a field. It consists of a term's text, the start and end offset of the term in the text of the field, and a type string. </p>
<p>The start and end offsets permit applications to re-associate a token with its source text, e.g., to display highlighted query terms in a document browser, or to show matching text fragments in a &lt;abbr title="KeyWord In Context"&gt;KWIC&lt;/abbr&gt; display, etc. </p>
<p>The type is a string, assigned by a lexical analyzer (a.k.a. tokenizer), naming the lexical or syntactic class that the token belongs to. For example an end of sentence marker token might be implemented with type "eos". The default token type is "word". </p>
<p>A <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> can optionally have metadata (a.k.a. Payload) in the form of a variable length byte array. Use TermPositions.PayloadLength and TermPositions.GetPayload(byte[], int) to retrieve the payloads from the index. </p>
<p><br/>
<br/>
</p>
<p><b>NOTE:</b> As of 2.9, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> implements all IAttribute interfaces that are part of core <a class="el" href="namespace_lucene.html">Lucene</a> and can be found in the <a class="el" href="namespace_lucene_1_1_net_1_1_analysis_1_1_tokenattributes.html">Lucene.Net.Analysis.Tokenattributes</a> namespace. Even though it is not necessary to use <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> anymore, with the new <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token_stream.html" title="A TokenStream enumerates the sequence of tokens, either from Fields of a Document or from query text...">TokenStream</a> API it can be used as convenience class that implements all IAttributes, which is especially useful to easily switch from the old to the new <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token_stream.html" title="A TokenStream enumerates the sequence of tokens, either from Fields of a Document or from query text...">TokenStream</a> API. <br/>
<br/>
</p>
<p>Tokenizers and TokenFilters should try to re-use a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> instance when possible for best performance, by implementing the <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token_stream.html#a358a544108511440a57b134e722f6027" title="Consumers (i.e., IndexWriter) use this method to advance the stream to the next token. Implementing classes must implement this method and update the appropriate Util.Attributes with the attributes of the next token.">TokenStream.IncrementToken()</a> API. Failing that, to create a new <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> you should first use one of the constructors that starts with null text. To load the token from a char[] use <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af33e3e56ddfaae9179d39da6ce0402dc" title="Copies the contents of buffer, starting at offset for length characters, into the termBuffer array...">SetTermBuffer(char[], int, int)</a>. To load from a String use SetTermBuffer(String) or SetTermBuffer(String, int, int). Alternatively you can get the <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s termBuffer by calling either <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a452174268b8297bbfd5a3fb464cbe04c" title="Returns the internal termBuffer character array which you can then directly alter. If the array is too small for your token, use ResizeTermBuffer(int) to increase it. After altering the buffer be sure to call SetTermLength to record the number of valid characters that were placed into the termBuffer. ">TermBuffer()</a>, if you know that your text is shorter than the capacity of the termBuffer or <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a23a2397d0d99c5bc7fd2150a8d78bdc8" title="Grows the termBuffer to at least size newSize, preserving the existing content. Note: If the next ope...">ResizeTermBuffer(int)</a>, if there is any possibility that you may need to grow the buffer. Fill in the characters of your term into this buffer, with string.ToCharArray(int, int) if loading from a string, or with Array.Copy(Array, long, Array, long, long), and finally call <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a1c8103ac6c043c197fffe3de56f1e043" title="Set number of valid characters (length of the term) in the termBuffer array. Use this to truncate the...">SetTermLength(int)</a> to set the length of the term text. See <a href="https://issues.apache.org/jira/browse/LUCENE-969" target="_top">LUCENE-969</a> for details.</p>
<p>Typical <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> reuse patterns: </p>
<ul>
<li>
Copying text from a string (type is reset to <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">DEFAULT_TYPE</a> if not specified):<br/>
<div class="fragment"><div class="line"><span class="keywordflow">return</span> reusableToken.reinit(<span class="keywordtype">string</span>, startOffset, endOffset[, type]);</div>
</div><!-- fragment --> </li>
<li>
Copying some text from a string (type is reset to <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">DEFAULT_TYPE</a> if not specified):<br/>
<div class="fragment"><div class="line"><span class="keywordflow">return</span> reusableToken.reinit(<span class="keywordtype">string</span>, 0, <span class="keywordtype">string</span>.length(), startOffset, endOffset[, type]);</div>
</div><!-- fragment --> </li>
<li>
Copying text from char[] buffer (type is reset to <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">DEFAULT_TYPE</a> if not specified):<br/>
<div class="fragment"><div class="line"><span class="keywordflow">return</span> reusableToken.reinit(buffer, 0, buffer.length, startOffset, endOffset[, type]);</div>
</div><!-- fragment --> </li>
<li>
Copying some text from a char[] buffer (type is reset to <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">DEFAULT_TYPE</a> if not specified):<br/>
<div class="fragment"><div class="line"><span class="keywordflow">return</span> reusableToken.reinit(buffer, start, end - start, startOffset, endOffset[, type]);</div>
</div><!-- fragment --> </li>
<li>
Copying from one one <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> to another (type is reset to <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">DEFAULT_TYPE</a> if not specified):<br/>
<div class="fragment"><div class="line"><span class="keywordflow">return</span> reusableToken.reinit(source.termBuffer(), 0, source.termLength(), source.startOffset(), source.endOffset()[, source.type()]);</div>
</div><!-- fragment --> </li>
</ul>
<p>A few things to note: </p>
<ul>
<li>
clear() initializes all of the fields to default values. This was changed in contrast to <a class="el" href="namespace_lucene.html">Lucene</a> 2.4, but should affect no one. </li>
<li>
Because <code>TokenStreams</code> can be chained, one cannot assume that the <code><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s</code> current type is correct. </li>
<li>
The startOffset and endOffset represent the start and offset in the source text, so be careful in adjusting them. </li>
<li>
When caching a reusable token, clone it. When injecting a cached token into a stream that can be reset, clone it again. </li>
</ul>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="class_lucene_1_1_net_1_1_index_1_1_payload.html" title="A Payload is metadata that can be stored together with each occurrence of a term. This metadata is st...">Lucene.Net.Index.Payload</a></dd></dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00118">118</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a7fbc82ee936bc164fc5327b6c8a59876"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Analysis.Token.Token </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> will null text. </p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00133">133</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a044cf0232f268c33730f73c1aede6033"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Analysis.Token.Token </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>end</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with null text and start &amp; end offsets. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">start</td><td>start offset in the source text</td></tr>
<tr><td class="paramname">end</td><td>end offset in the source text</td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00142">142</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a2f3ab9be627a221b49e9c5a534986064"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Analysis.Token.Token </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>end</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&#160;</td>
<td class="paramname"><em>typ</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with null text and start &amp; end offsets plus the <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">start</td><td>start offset in the source text</td></tr>
<tr><td class="paramname">end</td><td>end offset in the source text</td></tr>
<tr><td class="paramname">typ</td><td>the lexical type of this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a></td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00154">154</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="ae44c5417202d2301a1845a078152aa54"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Analysis.Token.Token </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>end</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>flags</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with null text and start &amp; end offsets plus flags. NOTE: flags is EXPERIMENTAL. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">start</td><td>start offset in the source text</td></tr>
<tr><td class="paramname">end</td><td>end offset in the source text</td></tr>
<tr><td class="paramname">flags</td><td>The bits to set for this token</td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00167">167</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a0dfd2284ee266a4a30a0a23deec62534"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Analysis.Token.Token </td>
<td>(</td>
<td class="paramtype">String&#160;</td>
<td class="paramname"><em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>end</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with the given term text, and start &amp; end offsets. The type defaults to "word." <b>NOTE:</b> for better indexing speed you should instead use the char[] termBuffer methods to set the term text. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">text</td><td>term text</td></tr>
<tr><td class="paramname">start</td><td>start offset</td></tr>
<tr><td class="paramname">end</td><td>end offset</td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00183">183</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a7e35bab7f1cdef33b1a17ad4d10b72cf"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Analysis.Token.Token </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>end</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>typ</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with the given text, start and end offsets, &amp; type. <b>NOTE:</b> for better indexing speed you should instead use the char[] termBuffer methods to set the term text. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">text</td><td>term text</td></tr>
<tr><td class="paramname">start</td><td>start offset</td></tr>
<tr><td class="paramname">end</td><td>end offset</td></tr>
<tr><td class="paramname">typ</td><td>token type</td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00199">199</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a3901d30ee7034d1cd6e2a15faf0e5930"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Analysis.Token.Token </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>end</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>flags</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with the given text, start and end offsets, &amp; type. <b>NOTE:</b> for better indexing speed you should instead use the char[] termBuffer methods to set the term text. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">text</td><td></td></tr>
<tr><td class="paramname">start</td><td></td></tr>
<tr><td class="paramname">end</td><td></td></tr>
<tr><td class="paramname">flags</td><td>token type bits</td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00216">216</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a0c2e4149c2c22ea1c6f6f443f507f30b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Analysis.Token.Token </td>
<td>(</td>
<td class="paramtype">char[]&#160;</td>
<td class="paramname"><em>startTermBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>termBufferOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>termBufferLength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>end</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> with the given term buffer (offset &amp; length), start and end offsets </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">startTermBuffer</td><td></td></tr>
<tr><td class="paramname">termBufferOffset</td><td></td></tr>
<tr><td class="paramname">termBufferLength</td><td></td></tr>
<tr><td class="paramname">start</td><td></td></tr>
<tr><td class="paramname">end</td><td></td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00233">233</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a39b0ae963e4058899f89b4a46869a62c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override void Lucene.Net.Analysis.Token.Clear </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to default. </p>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_util_1_1_attribute.html#ad9e96b3c91feb9bc6014150c8027884b">Lucene.Net.Util.Attribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00522">522</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="aed1714059d4be96d62a674e7be53c573"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override System.Object Lucene.Net.Analysis.Token.Clone </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Shallow clone. Subclasses must override this if they need to clone any members deeply, </p>
<p>Reimplemented from <a class="el" href="class_lucene_1_1_net_1_1_util_1_1_attribute.html#a5c989dd217d27f60ea59e53ce5709f13">Lucene.Net.Util.Attribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00533">533</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="aef73babf240e93929aacf7e7b9e742d5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a> Lucene.Net.Analysis.Token.Clone </td>
<td>(</td>
<td class="paramtype">char[]&#160;</td>
<td class="paramname"><em>newTermBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newTermOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newTermLength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newStartOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newEndOffset</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Makes a clone, but replaces the term buffer &amp; start/end offset in the process. This is more efficient than doing a full clone (and then calling setTermBuffer) because it saves a wasted copy of the old termBuffer. </p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00555">555</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a66085630b83bc20c0a6917cc981ff9d5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override void Lucene.Net.Analysis.Token.CopyTo </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_util_1_1_attribute.html">Attribute</a>&#160;</td>
<td class="paramname"><em>target</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>summary&gt; Convenience factory that returns <code><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a></code> as implementation for the basic attributes and return the default impl (with "Impl" appended) for all other attributes. </p>
<dl class="section since"><dt>Since</dt><dd>3.0 </dd></dl>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_util_1_1_attribute.html#ae5198030f297eb5758833c1252a78d6a">Lucene.Net.Util.Attribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00780">780</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a90f65f199f5121e0632fe8c9f7bf94c3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">override bool Lucene.Net.Analysis.Token.Equals </td>
<td>(</td>
<td class="paramtype">Object&#160;</td>
<td class="paramname"><em>obj</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00564">564</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a08f244d5502657d6b9d446c16fabe3c1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">override int Lucene.Net.Analysis.Token.GetHashCode </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Subclasses must implement this method and should compute a hashCode similar to this: </p>
<p><code> public int hashCode() { int code = startOffset; code = code * 31 + endOffset; return code; } </code></p>
<p>see also <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a90f65f199f5121e0632fe8c9f7bf94c3">Equals(Object)</a> </p>
<p>Implements <a class="el" href="class_lucene_1_1_net_1_1_util_1_1_attribute.html#aec895bd12ca53ffb41a1309c7a4d9d0f">Lucene.Net.Util.Attribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00595">595</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a6819cd93a36c54c25ef86757305fcf6b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a> Lucene.Net.Analysis.Token.Reinit </td>
<td>(</td>
<td class="paramtype">char[]&#160;</td>
<td class="paramname"><em>newTermBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newTermOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newTermLength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newStartOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newEndOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>newType</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af33e3e56ddfaae9179d39da6ce0402dc" title="Copies the contents of buffer, starting at offset for length characters, into the termBuffer array...">SetTermBuffer(char[], int, int)</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> </p>
<dl class="section return"><dt>Returns</dt><dd>this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> instance </dd></dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00627">627</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a7dc73337d8f6113925e3f129eb493563"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a> Lucene.Net.Analysis.Token.Reinit </td>
<td>(</td>
<td class="paramtype">char[]&#160;</td>
<td class="paramname"><em>newTermBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newTermOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newTermLength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newStartOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newEndOffset</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af33e3e56ddfaae9179d39da6ce0402dc" title="Copies the contents of buffer, starting at offset for length characters, into the termBuffer array...">SetTermBuffer(char[], int, int)</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a> <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> on <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">Token.DEFAULT_TYPE</a> </p>
<dl class="section return"><dt>Returns</dt><dd>this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> instance </dd></dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00647">647</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="aab7667fcc7523e49c509bc88c1cff7ca"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a> Lucene.Net.Analysis.Token.Reinit </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>newTerm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newStartOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newEndOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>newType</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, SetTermBuffer(String), <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a> <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> </p>
<dl class="section return"><dt>Returns</dt><dd>this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> instance </dd></dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00665">665</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a63a5d7e9e4c9e5e38217f3a89fa4bd17"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a> Lucene.Net.Analysis.Token.Reinit </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>newTerm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newTermOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newTermLength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newStartOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newEndOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>newType</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, SetTermBuffer(String, int, int), <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a> <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> </p>
<dl class="section return"><dt>Returns</dt><dd>this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> instance </dd></dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00683">683</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a50e8e1ac648661d28966cfcd1493f56c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a> Lucene.Net.Analysis.Token.Reinit </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>newTerm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newStartOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newEndOffset</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, SetTermBuffer(String), <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a> <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> on <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">Token.DEFAULT_TYPE</a> </p>
<dl class="section return"><dt>Returns</dt><dd>this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> instance </dd></dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00701">701</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a30e9d4e9ee5c03c99824433af0b5ccad"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a> Lucene.Net.Analysis.Token.Reinit </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>newTerm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newTermOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newTermLength</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newStartOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newEndOffset</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Shorthand for calling <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a39b0ae963e4058899f89b4a46869a62c" title="Resets the term text, payload, flags, and positionIncrement, startOffset, endOffset and token type to...">Clear</a>, SetTermBuffer(String, int, int), <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset</a>, <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset</a> <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type</a> on <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af17f78750316f17b3dcd01ee7f080d25">Token.DEFAULT_TYPE</a> </p>
<dl class="section return"><dt>Returns</dt><dd>this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> instance </dd></dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00719">719</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a5706fbfa2bdf7010dfa5ee8e6e3664c8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Lucene.Net.Analysis.Token.Reinit </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a>&#160;</td>
<td class="paramname"><em>prototype</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy the prototype token's fields into this one. Note: <a class="el" href="namespace_lucene_1_1_net_1_1_analysis_1_1_payloads.html">Payloads</a> are shared.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">prototype</td><td></td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00732">732</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a14495f3460894cee22cd94a2b2ba1324"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Lucene.Net.Analysis.Token.Reinit </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a>&#160;</td>
<td class="paramname"><em>prototype</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>newTerm</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy the prototype token's fields into this one, with a different term. Note: <a class="el" href="namespace_lucene_1_1_net_1_1_analysis_1_1_payloads.html">Payloads</a> are shared.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">prototype</td><td></td></tr>
<tr><td class="paramname">newTerm</td><td></td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00749">749</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a16ac7fdb39ab89fbd5f93392115b7283"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Lucene.Net.Analysis.Token.Reinit </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html">Token</a>&#160;</td>
<td class="paramname"><em>prototype</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char[]&#160;</td>
<td class="paramname"><em>newTermBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy the prototype token's fields into this one, with a different term. Note: <a class="el" href="namespace_lucene_1_1_net_1_1_analysis_1_1_payloads.html">Payloads</a> are shared.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">prototype</td><td></td></tr>
<tr><td class="paramname">newTermBuffer</td><td></td></tr>
<tr><td class="paramname">offset</td><td></td></tr>
<tr><td class="paramname">length</td><td></td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00769">769</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a23a2397d0d99c5bc7fd2150a8d78bdc8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual char [] Lucene.Net.Analysis.Token.ResizeTermBuffer </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>newSize</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Grows the termBuffer to at least size newSize, preserving the existing content. Note: If the next operation is to change the contents of the term buffer use <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#af33e3e56ddfaae9179d39da6ce0402dc" title="Copies the contents of buffer, starting at offset for length characters, into the termBuffer array...">SetTermBuffer(char[], int, int)</a>, SetTermBuffer(String), or SetTermBuffer(String, int, int) to optimally combine the resize with the setting of the termBuffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">newSize</td><td>minimum size of the new termBuffer </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>newly created termBuffer with length &gt;= newSize </dd></dl>
<p>Implements <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute.html#a9f594808c7e8de9313e98d49d8a43682">Lucene.Net.Analysis.Tokenattributes.ITermAttribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00364">364</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a08be487236606c501726d84749755f64"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Lucene.Net.Analysis.Token.SetOffset </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>startOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>endOffset</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the starting and ending offset. See <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a421271c40ecfd6be5852f55a4a08ccb0" title="Gets or sets this Token&#39;s starting offset, the position of the first character corresponding to this ...">StartOffset()</a> and <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a8dac36e25c06d03003cf46748858026f" title="Gets or sets this Token&#39;s ending offset, one greater than the position of the last character correspo...">EndOffset()</a> </p>
<p>Implements <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_offset_attribute.html#a34b717584a38139445eb689bf86cabb7">Lucene.Net.Analysis.Tokenattributes.IOffsetAttribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00466">466</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="af33e3e56ddfaae9179d39da6ce0402dc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Analysis.Token.SetTermBuffer </td>
<td>(</td>
<td class="paramtype">char[]&#160;</td>
<td class="paramname"><em>buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copies the contents of buffer, starting at offset for length characters, into the termBuffer array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">buffer</td><td>the buffer to copy</td></tr>
<tr><td class="paramname">offset</td><td>the index in the buffer of the first character to copy</td></tr>
<tr><td class="paramname">length</td><td>the number of characters to copy</td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute.html#a7d592ba9508e9455f993b9e3b0f0cb18">Lucene.Net.Analysis.Tokenattributes.ITermAttribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00302">302</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a985603881534cb7e6ba5edc153ae3d65"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Analysis.Token.SetTermBuffer </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>buffer</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copies the contents of buffer into the termBuffer array.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">buffer</td><td>the buffer to copy </td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute.html#a0995c3766f9a82e06351d42c21de8ce3">Lucene.Net.Analysis.Tokenattributes.ITermAttribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00312">312</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a13d8d4e6a7357de760e09a800f7eecb5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Analysis.Token.SetTermBuffer </td>
<td>(</td>
<td class="paramtype">System.String&#160;</td>
<td class="paramname"><em>buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copies the contents of buffer, starting at offset and continuing for length characters, into the termBuffer array. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">buffer</td><td>the buffer to copy </td></tr>
<tr><td class="paramname">offset</td><td>the index in the buffer of the first character to copy </td></tr>
<tr><td class="paramname">length</td><td>the number of characters to copy </td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute.html#a38adefe6f0c4b9bba4cb4d0b7e7093f1">Lucene.Net.Analysis.Tokenattributes.ITermAttribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00329">329</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a1c8103ac6c043c197fffe3de56f1e043"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Analysis.Token.SetTermLength </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>length</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set number of valid characters (length of the term) in the termBuffer array. Use this to truncate the termBuffer or to synchronize with external manipulation of the termBuffer. Note: to grow the size of the array, use <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a23a2397d0d99c5bc7fd2150a8d78bdc8" title="Grows the termBuffer to at least size newSize, preserving the existing content. Note: If the next ope...">ResizeTermBuffer(int)</a> first. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">length</td><td>the truncated length </td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute.html#ae4951ce808c42afee61f3f0e78a2c59a">Lucene.Net.Analysis.Tokenattributes.ITermAttribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00433">433</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a452174268b8297bbfd5a3fb464cbe04c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char [] Lucene.Net.Analysis.Token.TermBuffer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the internal termBuffer character array which you can then directly alter. If the array is too small for your token, use <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a23a2397d0d99c5bc7fd2150a8d78bdc8" title="Grows the termBuffer to at least size newSize, preserving the existing content. Note: If the next ope...">ResizeTermBuffer(int)</a> to increase it. After altering the buffer be sure to call <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a1c8103ac6c043c197fffe3de56f1e043" title="Set number of valid characters (length of the term) in the termBuffer array. Use this to truncate the...">SetTermLength</a> to record the number of valid characters that were placed into the termBuffer. </p>
<p>Implements <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute.html#a1ed6aedff1a97a528106c529bbe0532d">Lucene.Net.Analysis.Tokenattributes.ITermAttribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00346">346</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a06d3ac24f755c433802c6200a60dbda4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Lucene.Net.Analysis.Token.TermLength </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return number of valid characters (length of the term) in the termBuffer array. </p>
<p>Implements <a class="el" href="interface_lucene_1_1_net_1_1_analysis_1_1_tokenattributes_1_1_i_term_attribute.html#ac3e3e78df53c33bb23c7ad9636ec0c66">Lucene.Net.Analysis.Tokenattributes.ITermAttribute</a>.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00419">419</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a7370b2e3279f60cfeea84965a2472044"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">override String Lucene.Net.Analysis.Token.ToString </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00501">501</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="af17f78750316f17b3dcd01ee7f080d25"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const String Lucene.Net.Analysis.Token.DEFAULT_TYPE = &quot;word&quot;</td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00120">120</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a9655b47f5556cd77665144cabece0a2c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">AttributeSource.AttributeFactory Lucene.Net.Analysis.Token.TOKEN_ATTRIBUTE_FACTORY</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">=</div>
<div class="line"> <span class="keyword">new</span> TokenAttributeFactory(<a class="code" href="_char_tokenizer_8cs.html#aed60c4e663aea1a7dec59cf4c3710058">AttributeSource</a>.AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY)</div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00810">810</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="a8dac36e25c06d03003cf46748858026f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual int Lucene.Net.Analysis.Token.EndOffset</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets or sets this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s ending offset, one greater than the position of the last character corresponding to this token in the source text. The length of the token in the source text is (endOffset - startOffset). </p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00458">458</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a7a2c75871d2e56906e8329e8dfe92125"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual int Lucene.Net.Analysis.Token.Flags</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long. </p>
<p>Get the bitset for any bits that have been set. This is completely distinct from <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a61943bcca47590fc996a1ced87587ebc" title="Returns this Token&#39;s lexical type. Defaults to &quot;word&quot;. ">Type()</a>, although they do share similar purposes. The flags can be used to encode information about the token for use by other <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token_filter.html" title="A TokenFilter is a TokenStream whose input is another TokenStream. This is an abstract class; subclas...">TokenFilter</a>s.</p>
<p>The bits </p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00489">489</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="aed3aa6f2f6759e126b1d837c2049cee7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="core_2_analysis_2_token_8cs.html#aba3faac25c0f0a8ba32b9ec6854f2657">Payload</a> Lucene.Net.Analysis.Token.Payload</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s payload.</p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00496">496</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a18cc1de69d72cea8f63246b9437a1399"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual int Lucene.Net.Analysis.Token.PositionIncrement</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the position increment. This determines the position of this token relative to the previous <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a> in a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token_stream.html" title="A TokenStream enumerates the sequence of tokens, either from Fields of a Document or from query text...">TokenStream</a>, used in phrase searching. </p>
<p>The default value is one.</p>
<p>Some common uses for this are:</p>
<ul>
<li>
<p class="startli">Set it to zero to put multiple terms in the same position. This is useful if, e.g., a word has multiple stems. Searches for phrases including either stem will match. In this case, all but the first stem's increment should be set to zero: the increment of the first instance should be one. Repeating a token with an increment of zero can also be used to boost the scores of matches on that token.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">Set it to values greater than one to inhibit exact phrase matches. If, for example, one does not want phrases to match across removed stop words, then one could build a stop word filter that removes stop words and also sets the increment to the number of stop words removed before each non-stop word. Then exact phrase queries will only match when the terms occur with no intervening stop words.</p>
<p class="endli"></p>
</li>
</ul>
<p>the distance from the prior term </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="interface_lucene_1_1_net_1_1_index_1_1_term_positions.html" title="TermPositions provides an interface for enumerating the &lt;document, frequency, &lt;position&gt;* &gt; tuples fo...">Lucene.Net.Index.TermPositions</a></dd></dl>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00268">268</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a421271c40ecfd6be5852f55a4a08ccb0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual int Lucene.Net.Analysis.Token.StartOffset</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets or sets this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s starting offset, the position of the first character corresponding to this token in the source text. Note that the difference between endOffset() and startOffset() may not be equal to <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a06d3ac24f755c433802c6200a60dbda4" title="Return number of valid characters (length of the term) in the termBuffer array. ">TermLength</a>, as the term text may have been altered by a stemmer or some other filter. </p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00448">448</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="ab3603dc298a059de4b5cfa181d836cca"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">string Lucene.Net.Analysis.Token.Term</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s term text. </p>
<p>This method has a performance penalty because the text is stored internally in a char[]. If possible, use <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a452174268b8297bbfd5a3fb464cbe04c" title="Returns the internal termBuffer character array which you can then directly alter. If the array is too small for your token, use ResizeTermBuffer(int) to increase it. After altering the buffer be sure to call SetTermLength to record the number of valid characters that were placed into the termBuffer. ">TermBuffer()</a> and <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html#a06d3ac24f755c433802c6200a60dbda4" title="Return number of valid characters (length of the term) in the termBuffer array. ">TermLength()</a> directly instead. If you really need a String, use this method, which is nothing more than a convenience call to <b>new String(token.termBuffer(), 0, token.termLength())</b> </p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00288">288</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a61943bcca47590fc996a1ced87587ebc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">string Lucene.Net.Analysis.Token.Type</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns this <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_token.html" title="A Token is an occurrence of a term from the text of a field. It consists of a term&#39;s text...">Token</a>'s lexical type. Defaults to "word". </p>
<p>Definition at line <a class="el" href="core_2_analysis_2_token_8cs_source.html#l00474">474</a> of file <a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>core/Analysis/<a class="el" href="core_2_analysis_2_token_8cs_source.html">Token.cs</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 3 2013 02:12:48 for Lucene.Net by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>