| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 |
<meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 |
<meta name="generator" content="Doxygen 1.15.0"/> |
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 |
<title>Xapian: API Documentation: Xapian::Stem Class Reference</title> |
| 9 |
<link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 |
<script type="text/javascript" src="jquery.js"></script> |
| 11 |
<script type="text/javascript" src="dynsections.js"></script> |
| 12 |
<link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div id="top"> |
| 16 |
<div id="titlearea"> |
| 17 |
<table cellspacing="0" cellpadding="0"> |
| 18 |
<tbody> |
| 19 |
<tr style="height: 56px;"> |
| 20 |
<td id="projectalign" style="padding-left: 0.5em;"> |
| 21 |
<div id="projectname">xapian-core |
| 22 |
 <span id="projectnumber">1.4.31</span> |
| 23 |
</div> |
| 24 |
</td> |
| 25 |
</tr> |
| 26 |
</tbody> |
| 27 |
</table> |
| 28 |
</div> |
| 29 |
|
| 30 |
|
| 31 |
<script type="text/javascript"> |
| 32 |
$(function() { codefold.init(); }); |
| 33 |
</script> |
| 34 |
<script type="text/javascript" src="menudata.js"></script> |
| 35 |
<script type="text/javascript" src="menu.js"></script> |
| 36 |
<script type="text/javascript"> |
| 37 |
$(function() { |
| 38 |
initMenu('',false,false,'search.php','Search',false); |
| 39 |
}); |
| 40 |
</script> |
| 41 |
<div id="main-nav"></div> |
| 42 |
<div id="nav-path" class="navpath"> |
| 43 |
<ul> |
| 44 |
<li class="navelem"><a href="namespaceXapian.html">Xapian</a></li><li class="navelem"><a href="classXapian_1_1Stem.html">Stem</a></li> </ul> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
<div id="doc-content"> |
| 48 |
<div class="header"> |
| 49 |
<div class="summary"> |
| 50 |
<a href="#pub-methods">Public Member Functions</a> | |
| 51 |
<a href="#pub-static-methods">Static Public Member Functions</a> | |
| 52 |
<a href="classXapian_1_1Stem-members.html">List of all members</a> </div> |
| 53 |
<div class="headertitle"><div class="title">Xapian::Stem Class Reference</div></div> |
| 54 |
</div> |
| 55 |
<div class="contents"> |
| 56 |
|
| 57 |
<p>Class representing a stemming algorithm. |
| 58 |
<a href="#details">More...</a></p> |
| 59 |
|
| 60 |
<p><code>#include <stem.h></code></p> |
| 61 |
<table class="memberdecls"> |
| 62 |
<tr class="heading"><td colspan="2"><h2 id="header-pub-methods" class="groupheader"><a id="pub-methods" name="pub-methods"></a> |
| 63 |
Public Member Functions</h2></td></tr> |
| 64 |
<tr class="memitem:a960dac1047a3cfe21ff3d013df1d41dd" id="r_a960dac1047a3cfe21ff3d013df1d41dd"><td class="memItemLeft" align="right" valign="top"><a id="a960dac1047a3cfe21ff3d013df1d41dd" name="a960dac1047a3cfe21ff3d013df1d41dd"></a> |
| 65 |
 </td><td class="memItemRight" valign="bottom"><b>Stem</b> (const Stem &o)</td></tr> |
| 66 |
<tr class="memdesc:a960dac1047a3cfe21ff3d013df1d41dd"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <br /></td></tr> |
| 67 |
<tr class="memitem:a3ea9e8f01bb44f089fd8c24c56dbd5b7" id="r_a3ea9e8f01bb44f089fd8c24c56dbd5b7"><td class="memItemLeft" align="right" valign="top"><a id="a3ea9e8f01bb44f089fd8c24c56dbd5b7" name="a3ea9e8f01bb44f089fd8c24c56dbd5b7"></a> |
| 68 |
<a class="el" href="#a960dac1047a3cfe21ff3d013df1d41dd">Stem</a> & </td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="#a960dac1047a3cfe21ff3d013df1d41dd">Stem</a> &o)</td></tr> |
| 69 |
<tr class="memdesc:a3ea9e8f01bb44f089fd8c24c56dbd5b7"><td class="mdescLeft"> </td><td class="mdescRight">Assignment. <br /></td></tr> |
| 70 |
<tr class="memitem:a0119ddb5f571853900db97689bf9122d" id="r_a0119ddb5f571853900db97689bf9122d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a0119ddb5f571853900db97689bf9122d">Stem</a> ()</td></tr> |
| 71 |
<tr class="memdesc:a0119ddb5f571853900db97689bf9122d"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> object which doesn't change terms. <br /></td></tr> |
| 72 |
<tr class="memitem:abae2c707ea039fc519103ed75c7429fb" id="r_abae2c707ea039fc519103ed75c7429fb"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#abae2c707ea039fc519103ed75c7429fb">Stem</a> (<a class="el" href="classXapian_1_1StemImplementation.html">StemImplementation</a> *p)</td></tr> |
| 73 |
<tr class="memdesc:abae2c707ea039fc519103ed75c7429fb"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> object with a user-provided stemming algorithm. <br /></td></tr> |
| 74 |
<tr class="memitem:ac4e246e78c5c947537e11c3f7e718eca" id="r_ac4e246e78c5c947537e11c3f7e718eca"><td class="memItemLeft" align="right" valign="top"><a id="ac4e246e78c5c947537e11c3f7e718eca" name="ac4e246e78c5c947537e11c3f7e718eca"></a> |
| 75 |
 </td><td class="memItemRight" valign="bottom"><b>~Stem</b> ()</td></tr> |
| 76 |
<tr class="memdesc:ac4e246e78c5c947537e11c3f7e718eca"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr> |
| 77 |
<tr class="memitem:acd41894e249a0e69404c9ca8049d3dd2" id="r_acd41894e249a0e69404c9ca8049d3dd2"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="#acd41894e249a0e69404c9ca8049d3dd2">operator()</a> (const std::string &word) const</td></tr> |
| 78 |
<tr class="memdesc:acd41894e249a0e69404c9ca8049d3dd2"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Stem</a> a word. <br /></td></tr> |
| 79 |
<tr class="memitem:aade0f72c504b3f1cfb67d07c4ebd132b" id="r_aade0f72c504b3f1cfb67d07c4ebd132b"><td class="memItemLeft" align="right" valign="top"><a id="aade0f72c504b3f1cfb67d07c4ebd132b" name="aade0f72c504b3f1cfb67d07c4ebd132b"></a> |
| 80 |
bool </td><td class="memItemRight" valign="bottom"><b>is_none</b> () const</td></tr> |
| 81 |
<tr class="memdesc:aade0f72c504b3f1cfb67d07c4ebd132b"><td class="mdescLeft"> </td><td class="mdescRight">Return true if this is a no-op stemmer. <br /></td></tr> |
| 82 |
<tr class="memitem:af6956ebc4aca22a10abbf93b93d546e4" id="r_af6956ebc4aca22a10abbf93b93d546e4"><td class="memItemLeft" align="right" valign="top"><a id="af6956ebc4aca22a10abbf93b93d546e4" name="af6956ebc4aca22a10abbf93b93d546e4"></a> |
| 83 |
std::string </td><td class="memItemRight" valign="bottom"><b>get_description</b> () const</td></tr> |
| 84 |
<tr class="memdesc:af6956ebc4aca22a10abbf93b93d546e4"><td class="mdescLeft"> </td><td class="mdescRight">Return a string describing this object. <br /></td></tr> |
| 85 |
<tr id="pub-methods-0" class="groupHeader"><td colspan="2"><div class="groupHeader"></div></td></tr> |
| 86 |
<tr class="memitem:a6c46cedf2047b159a7e4c9d4468242b1" id="r_a6c46cedf2047b159a7e4c9d4468242b1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a6c46cedf2047b159a7e4c9d4468242b1">Stem</a> (const std::string &language)</td></tr> |
| 87 |
<tr class="memdesc:a6c46cedf2047b159a7e4c9d4468242b1"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> object for a particular language. <br /></td></tr> |
| 88 |
<tr class="memitem:a16e0f0e2cd00cf906de544d615a2e753" id="r_a16e0f0e2cd00cf906de544d615a2e753"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a16e0f0e2cd00cf906de544d615a2e753">Stem</a> (const std::string &language, bool fallback)</td></tr> |
| 89 |
<tr class="memdesc:a16e0f0e2cd00cf906de544d615a2e753"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> object for a particular language. <br /></td></tr> |
| 90 |
</table><table class="memberdecls"> |
| 91 |
<tr class="heading"><td colspan="2"><h2 id="header-pub-static-methods" class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a> |
| 92 |
Static Public Member Functions</h2></td></tr> |
| 93 |
<tr class="memitem:a0f8f250587dfef35d47f13f0ec0028fb" id="r_a0f8f250587dfef35d47f13f0ec0028fb"><td class="memItemLeft" align="right" valign="top">static std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="#a0f8f250587dfef35d47f13f0ec0028fb">get_available_languages</a> ()</td></tr> |
| 94 |
<tr class="memdesc:a0f8f250587dfef35d47f13f0ec0028fb"><td class="mdescLeft"> </td><td class="mdescRight">Return a list of available languages. <br /></td></tr> |
| 95 |
</table> |
| 96 |
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2> |
| 97 |
<div class="textblock"><p>Class representing a stemming algorithm. </p> |
| 98 |
</div><a name="doc-constructors" id="doc-constructors"></a><h2 id="header-doc-constructors" class="groupheader">Constructor & Destructor Documentation</h2> |
| 99 |
<a id="a0119ddb5f571853900db97689bf9122d" name="a0119ddb5f571853900db97689bf9122d"></a> |
| 100 |
<h2 class="memtitle"><span class="permalink"><a href="#a0119ddb5f571853900db97689bf9122d">◆ </a></span>Stem() <span class="overload">[1/4]</span></h2> |
| 101 |
|
| 102 |
<div class="memitem"> |
| 103 |
<div class="memproto"> |
| 104 |
<table class="memname"> |
| 105 |
<tr> |
| 106 |
<td class="memname">Xapian::Stem::Stem </td> |
| 107 |
<td>(</td> |
| 108 |
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td> |
| 109 |
<td></td> |
| 110 |
</tr> |
| 111 |
</table> |
| 112 |
</div><div class="memdoc"> |
| 113 |
|
| 114 |
<p>Construct a <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> object which doesn't change terms. </p> |
| 115 |
<p>Equivalent to <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Stem</a>("none"). </p> |
| 116 |
|
| 117 |
</div> |
| 118 |
</div> |
| 119 |
<a id="a6c46cedf2047b159a7e4c9d4468242b1" name="a6c46cedf2047b159a7e4c9d4468242b1"></a> |
| 120 |
<h2 class="memtitle"><span class="permalink"><a href="#a6c46cedf2047b159a7e4c9d4468242b1">◆ </a></span>Stem() <span class="overload">[2/4]</span></h2> |
| 121 |
|
| 122 |
<div class="memitem"> |
| 123 |
<div class="memproto"> |
| 124 |
<table class="mlabels"> |
| 125 |
<tr> |
| 126 |
<td class="mlabels-left"> |
| 127 |
<table class="memname"> |
| 128 |
<tr> |
| 129 |
<td class="memname">Xapian::Stem::Stem </td> |
| 130 |
<td>(</td> |
| 131 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>language</em></span></td><td>)</td> |
| 132 |
<td></td> |
| 133 |
</tr> |
| 134 |
</table> |
| 135 |
</td> |
| 136 |
<td class="mlabels-right"> |
| 137 |
<span class="mlabels"><span class="mlabel explicit">explicit</span></span> </td> |
| 138 |
</tr> |
| 139 |
</table> |
| 140 |
</div><div class="memdoc"> |
| 141 |
|
| 142 |
<p>Construct a <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> object for a particular language. </p> |
| 143 |
<dl class="params"><dt>Parameters</dt><dd> |
| 144 |
<table class="params"> |
| 145 |
<tr><td class="paramname">language</td><td>Either the English name for the language or the two letter ISO639 code.</td></tr> |
| 146 |
</table> |
| 147 |
</dd> |
| 148 |
</dl> |
| 149 |
<p>The following language names are understood (aliases follow the name):</p> |
| 150 |
<ul> |
| 151 |
<li>none - don't stem terms</li> |
| 152 |
<li>arabic (ar) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.3.5</li> |
| 153 |
<li>armenian (hy) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.3.0</li> |
| 154 |
<li>basque (eu) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.3.0</li> |
| 155 |
<li>catalan (ca) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.3.0</li> |
| 156 |
<li>danish (da)</li> |
| 157 |
<li>dutch (nl)</li> |
| 158 |
<li>english (en) - Martin Porter's 2002 revision of his stemmer</li> |
| 159 |
<li>earlyenglish - Early English (e.g. Shakespeare, Dickens) stemmer (since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.3.2)</li> |
| 160 |
<li>lovins - Lovin's English stemmer</li> |
| 161 |
<li>porter - Porter's English stemmer exactly matching his 1980 paper</li> |
| 162 |
<li>finnish (fi)</li> |
| 163 |
<li>french (fr)</li> |
| 164 |
<li>german (de)</li> |
| 165 |
<li>german2 - Normalises umlauts (e.g. ä and ae)</li> |
| 166 |
<li>hungarian (hu)</li> |
| 167 |
<li>indonesian (id) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.6</li> |
| 168 |
<li>irish (ga) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.7</li> |
| 169 |
<li>italian (it)</li> |
| 170 |
<li>kraaij_pohlmann - A different Dutch stemmer</li> |
| 171 |
<li>lithuanian (lt) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.7</li> |
| 172 |
<li>nepali (ne) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.7</li> |
| 173 |
<li>norwegian (nb, nn, no)</li> |
| 174 |
<li>portuguese (pt)</li> |
| 175 |
<li>romanian (ro)</li> |
| 176 |
<li>russian (ru)</li> |
| 177 |
<li>spanish (es)</li> |
| 178 |
<li>swedish (sv)</li> |
| 179 |
<li>tamil (ta) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.7</li> |
| 180 |
<li>turkish (tr)</li> |
| 181 |
</ul> |
| 182 |
<p>Also dutch_porter is an alias for dutch since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.28 (to provide forward compatibility to the next release series where we will switch dutch to refer to a version of the kraaij_pohlmann stemmer).</p> |
| 183 |
<dl class="params"><dt>Parameters</dt><dd> |
| 184 |
<table class="params"> |
| 185 |
<tr><td class="paramname">fallback</td><td>If true then treat unknown <em class="arg">language</em> as "none", otherwise an exception is thrown (default: false). Parameter added in <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.14 - older versions always threw an exception.</td></tr> |
| 186 |
</table> |
| 187 |
</dd> |
| 188 |
</dl> |
| 189 |
<dl class="exception"><dt>Exceptions</dt><dd> |
| 190 |
<table class="exception"> |
| 191 |
<tr><td class="paramname"><a class="el" href="classXapian_1_1InvalidArgumentError.html" title="InvalidArgumentError indicates an invalid parameter value was passed to the API.">Xapian::InvalidArgumentError</a></td><td>is thrown if <em class="arg">language</em> isn't recognised and <em class="arg">fallback</em> is false. </td></tr> |
| 192 |
</table> |
| 193 |
</dd> |
| 194 |
</dl> |
| 195 |
|
| 196 |
</div> |
| 197 |
</div> |
| 198 |
<a id="a16e0f0e2cd00cf906de544d615a2e753" name="a16e0f0e2cd00cf906de544d615a2e753"></a> |
| 199 |
<h2 class="memtitle"><span class="permalink"><a href="#a16e0f0e2cd00cf906de544d615a2e753">◆ </a></span>Stem() <span class="overload">[3/4]</span></h2> |
| 200 |
|
| 201 |
<div class="memitem"> |
| 202 |
<div class="memproto"> |
| 203 |
<table class="memname"> |
| 204 |
<tr> |
| 205 |
<td class="memname">Xapian::Stem::Stem </td> |
| 206 |
<td>(</td> |
| 207 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>language</em></span>, </td> |
| 208 |
</tr> |
| 209 |
<tr> |
| 210 |
<td class="paramkey"></td> |
| 211 |
<td></td> |
| 212 |
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>fallback</em></span> )</td> |
| 213 |
</tr> |
| 214 |
</table> |
| 215 |
</div><div class="memdoc"> |
| 216 |
|
| 217 |
<p>Construct a <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> object for a particular language. </p> |
| 218 |
<dl class="params"><dt>Parameters</dt><dd> |
| 219 |
<table class="params"> |
| 220 |
<tr><td class="paramname">language</td><td>Either the English name for the language or the two letter ISO639 code.</td></tr> |
| 221 |
</table> |
| 222 |
</dd> |
| 223 |
</dl> |
| 224 |
<p>The following language names are understood (aliases follow the name):</p> |
| 225 |
<ul> |
| 226 |
<li>none - don't stem terms</li> |
| 227 |
<li>arabic (ar) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.3.5</li> |
| 228 |
<li>armenian (hy) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.3.0</li> |
| 229 |
<li>basque (eu) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.3.0</li> |
| 230 |
<li>catalan (ca) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.3.0</li> |
| 231 |
<li>danish (da)</li> |
| 232 |
<li>dutch (nl)</li> |
| 233 |
<li>english (en) - Martin Porter's 2002 revision of his stemmer</li> |
| 234 |
<li>earlyenglish - Early English (e.g. Shakespeare, Dickens) stemmer (since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.3.2)</li> |
| 235 |
<li>lovins - Lovin's English stemmer</li> |
| 236 |
<li>porter - Porter's English stemmer exactly matching his 1980 paper</li> |
| 237 |
<li>finnish (fi)</li> |
| 238 |
<li>french (fr)</li> |
| 239 |
<li>german (de)</li> |
| 240 |
<li>german2 - Normalises umlauts (e.g. ä and ae)</li> |
| 241 |
<li>hungarian (hu)</li> |
| 242 |
<li>indonesian (id) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.6</li> |
| 243 |
<li>irish (ga) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.7</li> |
| 244 |
<li>italian (it)</li> |
| 245 |
<li>kraaij_pohlmann - A different Dutch stemmer</li> |
| 246 |
<li>lithuanian (lt) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.7</li> |
| 247 |
<li>nepali (ne) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.7</li> |
| 248 |
<li>norwegian (nb, nn, no)</li> |
| 249 |
<li>portuguese (pt)</li> |
| 250 |
<li>romanian (ro)</li> |
| 251 |
<li>russian (ru)</li> |
| 252 |
<li>spanish (es)</li> |
| 253 |
<li>swedish (sv)</li> |
| 254 |
<li>tamil (ta) - Since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.7</li> |
| 255 |
<li>turkish (tr)</li> |
| 256 |
</ul> |
| 257 |
<p>Also dutch_porter is an alias for dutch since <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.28 (to provide forward compatibility to the next release series where we will switch dutch to refer to a version of the kraaij_pohlmann stemmer).</p> |
| 258 |
<dl class="params"><dt>Parameters</dt><dd> |
| 259 |
<table class="params"> |
| 260 |
<tr><td class="paramname">fallback</td><td>If true then treat unknown <em class="arg">language</em> as "none", otherwise an exception is thrown (default: false). Parameter added in <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.14 - older versions always threw an exception.</td></tr> |
| 261 |
</table> |
| 262 |
</dd> |
| 263 |
</dl> |
| 264 |
<dl class="exception"><dt>Exceptions</dt><dd> |
| 265 |
<table class="exception"> |
| 266 |
<tr><td class="paramname"><a class="el" href="classXapian_1_1InvalidArgumentError.html" title="InvalidArgumentError indicates an invalid parameter value was passed to the API.">Xapian::InvalidArgumentError</a></td><td>is thrown if <em class="arg">language</em> isn't recognised and <em class="arg">fallback</em> is false. </td></tr> |
| 267 |
</table> |
| 268 |
</dd> |
| 269 |
</dl> |
| 270 |
|
| 271 |
</div> |
| 272 |
</div> |
| 273 |
<a id="abae2c707ea039fc519103ed75c7429fb" name="abae2c707ea039fc519103ed75c7429fb"></a> |
| 274 |
<h2 class="memtitle"><span class="permalink"><a href="#abae2c707ea039fc519103ed75c7429fb">◆ </a></span>Stem() <span class="overload">[4/4]</span></h2> |
| 275 |
|
| 276 |
<div class="memitem"> |
| 277 |
<div class="memproto"> |
| 278 |
<table class="mlabels"> |
| 279 |
<tr> |
| 280 |
<td class="mlabels-left"> |
| 281 |
<table class="memname"> |
| 282 |
<tr> |
| 283 |
<td class="memname">Xapian::Stem::Stem </td> |
| 284 |
<td>(</td> |
| 285 |
<td class="paramtype"><a class="el" href="classXapian_1_1StemImplementation.html">StemImplementation</a> *</td> <td class="paramname"><span class="paramname"><em>p</em></span></td><td>)</td> |
| 286 |
<td></td> |
| 287 |
</tr> |
| 288 |
</table> |
| 289 |
</td> |
| 290 |
<td class="mlabels-right"> |
| 291 |
<span class="mlabels"><span class="mlabel explicit">explicit</span></span> </td> |
| 292 |
</tr> |
| 293 |
</table> |
| 294 |
</div><div class="memdoc"> |
| 295 |
|
| 296 |
<p>Construct a <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> object with a user-provided stemming algorithm. </p> |
| 297 |
<p>You can subclass <a class="el" href="classXapian_1_1StemImplementation.html" title="Class representing a stemming algorithm implementation.">Xapian::StemImplementation</a> to implement your own stemming algorithm (or to wrap a third-party algorithm) and then wrap your implementation in a <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> object to pass to the <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> API.</p> |
| 298 |
<dl class="params"><dt>Parameters</dt><dd> |
| 299 |
<table class="params"> |
| 300 |
<tr><td class="paramname">p</td><td>The user-subclassed <a class="el" href="classXapian_1_1StemImplementation.html" title="Class representing a stemming algorithm implementation.">StemImplementation</a> object. This is reference counted, and so will be automatically deleted by the <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> wrapper when no longer required. </td></tr> |
| 301 |
</table> |
| 302 |
</dd> |
| 303 |
</dl> |
| 304 |
|
| 305 |
</div> |
| 306 |
</div> |
| 307 |
<a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Member Function Documentation</h2> |
| 308 |
<a id="a0f8f250587dfef35d47f13f0ec0028fb" name="a0f8f250587dfef35d47f13f0ec0028fb"></a> |
| 309 |
<h2 class="memtitle"><span class="permalink"><a href="#a0f8f250587dfef35d47f13f0ec0028fb">◆ </a></span>get_available_languages()</h2> |
| 310 |
|
| 311 |
<div class="memitem"> |
| 312 |
<div class="memproto"> |
| 313 |
<table class="mlabels"> |
| 314 |
<tr> |
| 315 |
<td class="mlabels-left"> |
| 316 |
<table class="memname"> |
| 317 |
<tr> |
| 318 |
<td class="memname">std::string Xapian::Stem::get_available_languages </td> |
| 319 |
<td>(</td> |
| 320 |
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td> |
| 321 |
<td></td> |
| 322 |
</tr> |
| 323 |
</table> |
| 324 |
</td> |
| 325 |
<td class="mlabels-right"> |
| 326 |
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span> </td> |
| 327 |
</tr> |
| 328 |
</table> |
| 329 |
</div><div class="memdoc"> |
| 330 |
|
| 331 |
<p>Return a list of available languages. </p> |
| 332 |
<p>Each stemmer is only included once in the list (not once for each alias). The name included is the English name of the language.</p> |
| 333 |
<p>The list is returned as a string, with language names separated by spaces. This is a static method, so a <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> object is not required for this operation. </p> |
| 334 |
|
| 335 |
</div> |
| 336 |
</div> |
| 337 |
<a id="acd41894e249a0e69404c9ca8049d3dd2" name="acd41894e249a0e69404c9ca8049d3dd2"></a> |
| 338 |
<h2 class="memtitle"><span class="permalink"><a href="#acd41894e249a0e69404c9ca8049d3dd2">◆ </a></span>operator()()</h2> |
| 339 |
|
| 340 |
<div class="memitem"> |
| 341 |
<div class="memproto"> |
| 342 |
<table class="memname"> |
| 343 |
<tr> |
| 344 |
<td class="memname">std::string Xapian::Stem::operator() </td> |
| 345 |
<td>(</td> |
| 346 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>word</em></span></td><td>)</td> |
| 347 |
<td> const</td> |
| 348 |
</tr> |
| 349 |
</table> |
| 350 |
</div><div class="memdoc"> |
| 351 |
|
| 352 |
<p><a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Stem</a> a word. </p> |
| 353 |
<dl class="params"><dt>Parameters</dt><dd> |
| 354 |
<table class="params"> |
| 355 |
<tr><td class="paramname">word</td><td>a word to stem. </td></tr> |
| 356 |
</table> |
| 357 |
</dd> |
| 358 |
</dl> |
| 359 |
<dl class="section return"><dt>Returns</dt><dd>the stem </dd></dl> |
| 360 |
|
| 361 |
</div> |
| 362 |
</div> |
| 363 |
<hr/>The documentation for this class was generated from the following file:<ul> |
| 364 |
<li>xapian/<a class="el" href="stem_8h.html">stem.h</a></li> |
| 365 |
</ul> |
| 366 |
</div> |
| 367 |
|
| 368 |
<hr class="footer"/><address class="footer"><small> |
| 369 |
Generated by <a href="https://www.doxygen.org/">Doxygen 1.15.0</a> |
| 370 |
</small></address> |
| 371 |
</body> |
| 372 |
</html> |