| 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::MSet 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_1MSet.html">MSet</a></li> </ul> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
<div id="doc-content"> |
| 48 |
<div class="header"> |
| 49 |
<div class="summary"> |
| 50 |
<a href="#pub-types">Public Types</a> | |
| 51 |
<a href="#pub-methods">Public Member Functions</a> | |
| 52 |
<a href="classXapian_1_1MSet-members.html">List of all members</a> </div> |
| 53 |
<div class="headertitle"><div class="title">Xapian::MSet Class Reference</div></div> |
| 54 |
</div> |
| 55 |
<div class="contents"> |
| 56 |
|
| 57 |
<p>Class representing a list of search results. |
| 58 |
<a href="#details">More...</a></p> |
| 59 |
|
| 60 |
<p><code>#include <mset.h></code></p> |
| 61 |
<table class="memberdecls"> |
| 62 |
<tr class="heading"><td colspan="2"><h2 id="header-pub-types" class="groupheader"><a id="pub-types" name="pub-types"></a> |
| 63 |
Public Types</h2></td></tr> |
| 64 |
<tr class="memitem:a424ad4cacaf655a7eb68440ff7957184" id="r_a424ad4cacaf655a7eb68440ff7957184"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom">{ <br /> |
| 65 |
  <a class="el" href="#a424ad4cacaf655a7eb68440ff7957184a7e7bcf75fc86edbc657266ce83d412d1">SNIPPET_BACKGROUND_MODEL</a> = 1 |
| 66 |
, <a class="el" href="#a424ad4cacaf655a7eb68440ff7957184aea6a34a9c66720a44d5969ed47ca8edb">SNIPPET_EXHAUSTIVE</a> = 2 |
| 67 |
, <a class="el" href="#a424ad4cacaf655a7eb68440ff7957184a88e25634675d381df062299100c8c602">SNIPPET_EMPTY_WITHOUT_MATCH</a> = 4 |
| 68 |
, <a class="el" href="#a424ad4cacaf655a7eb68440ff7957184ab49c1b2476708ee2ca7c4f5eda09ccab">SNIPPET_NGRAMS</a> = 2048 |
| 69 |
, <br /> |
| 70 |
  <a class="el" href="#a424ad4cacaf655a7eb68440ff7957184a9a02d5d76a2935955d4d05ec72009b23">SNIPPET_CJK_NGRAM</a> = SNIPPET_NGRAMS |
| 71 |
<br /> |
| 72 |
}</td></tr> |
| 73 |
</table><table class="memberdecls"> |
| 74 |
<tr class="heading"><td colspan="2"><h2 id="header-pub-methods" class="groupheader"><a id="pub-methods" name="pub-methods"></a> |
| 75 |
Public Member Functions</h2></td></tr> |
| 76 |
<tr class="memitem:a2837803ca4a7a7dd01b01df2735ace8b" id="r_a2837803ca4a7a7dd01b01df2735ace8b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a2837803ca4a7a7dd01b01df2735ace8b">MSet</a> (const MSet &o)</td></tr> |
| 77 |
<tr class="memdesc:a2837803ca4a7a7dd01b01df2735ace8b"><td class="mdescLeft"> </td><td class="mdescRight">Copying is allowed. <br /></td></tr> |
| 78 |
<tr class="memitem:a7ac9d11f86682f69702fbdd74609d4c2" id="r_a7ac9d11f86682f69702fbdd74609d4c2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#a2837803ca4a7a7dd01b01df2735ace8b">MSet</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="#a7ac9d11f86682f69702fbdd74609d4c2">operator=</a> (const <a class="el" href="#a2837803ca4a7a7dd01b01df2735ace8b">MSet</a> &o)</td></tr> |
| 79 |
<tr class="memdesc:a7ac9d11f86682f69702fbdd74609d4c2"><td class="mdescLeft"> </td><td class="mdescRight">Copying is allowed. <br /></td></tr> |
| 80 |
<tr class="memitem:a2731b94a40e99a83c3e5d516809dc2e3" id="r_a2731b94a40e99a83c3e5d516809dc2e3"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a2731b94a40e99a83c3e5d516809dc2e3">MSet</a> ()</td></tr> |
| 81 |
<tr class="memdesc:a2731b94a40e99a83c3e5d516809dc2e3"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br /></td></tr> |
| 82 |
<tr class="memitem:a84b1c1a6db62dee0ca1aefadf4ef2d18" id="r_a84b1c1a6db62dee0ca1aefadf4ef2d18"><td class="memItemLeft" align="right" valign="top"><a id="a84b1c1a6db62dee0ca1aefadf4ef2d18" name="a84b1c1a6db62dee0ca1aefadf4ef2d18"></a> |
| 83 |
 </td><td class="memItemRight" valign="bottom"><b>~MSet</b> ()</td></tr> |
| 84 |
<tr class="memdesc:a84b1c1a6db62dee0ca1aefadf4ef2d18"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr> |
| 85 |
<tr class="memitem:a6f834ac35fdcc58fcd5eb38fc7f320f1" id="r_a6f834ac35fdcc58fcd5eb38fc7f320f1"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#a6f834ac35fdcc58fcd5eb38fc7f320f1">convert_to_percent</a> (double <a class="el" href="namespaceXapian.html#acac12803afc9e24ee5141c119acb8884">weight</a>) const</td></tr> |
| 86 |
<tr class="memdesc:a6f834ac35fdcc58fcd5eb38fc7f320f1"><td class="mdescLeft"> </td><td class="mdescRight">Convert a weight to a percentage. <br /></td></tr> |
| 87 |
<tr class="memitem:a610feaa8b1278bcd73510cec7f0deabf" id="r_a610feaa8b1278bcd73510cec7f0deabf"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#a610feaa8b1278bcd73510cec7f0deabf">convert_to_percent</a> (const MSetIterator &it) const</td></tr> |
| 88 |
<tr class="memdesc:a610feaa8b1278bcd73510cec7f0deabf"><td class="mdescLeft"> </td><td class="mdescRight">Convert the weight of the current iterator position to a percentage. <br /></td></tr> |
| 89 |
<tr class="memitem:aa869331afad28c2d815d0553198c4914" id="r_aa869331afad28c2d815d0553198c4914"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#aa869331afad28c2d815d0553198c4914">get_termfreq</a> (const std::string &term) const</td></tr> |
| 90 |
<tr class="memdesc:aa869331afad28c2d815d0553198c4914"><td class="mdescLeft"> </td><td class="mdescRight">Get the termfreq of a term. <br /></td></tr> |
| 91 |
<tr class="memitem:a086b0d7436ff05257352cde7c3cd1d7a" id="r_a086b0d7436ff05257352cde7c3cd1d7a"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="#a086b0d7436ff05257352cde7c3cd1d7a">get_termweight</a> (const std::string &term) const</td></tr> |
| 92 |
<tr class="memdesc:a086b0d7436ff05257352cde7c3cd1d7a"><td class="mdescLeft"> </td><td class="mdescRight">Get the term weight of a term. <br /></td></tr> |
| 93 |
<tr class="memitem:a8a8acbf405fc883ccd11823743f1d8a3" id="r_a8a8acbf405fc883ccd11823743f1d8a3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a8a8acbf405fc883ccd11823743f1d8a3">get_firstitem</a> () const</td></tr> |
| 94 |
<tr class="memdesc:a8a8acbf405fc883ccd11823743f1d8a3"><td class="mdescLeft"> </td><td class="mdescRight">Rank of first item in this <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a>. <br /></td></tr> |
| 95 |
<tr class="memitem:ae0e08d51eb1e5ae95b635e0a40d6fd52" id="r_ae0e08d51eb1e5ae95b635e0a40d6fd52"><td class="memItemLeft" align="right" valign="top"><a id="ae0e08d51eb1e5ae95b635e0a40d6fd52" name="ae0e08d51eb1e5ae95b635e0a40d6fd52"></a> |
| 96 |
<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><b>get_matches_lower_bound</b> () const</td></tr> |
| 97 |
<tr class="memdesc:ae0e08d51eb1e5ae95b635e0a40d6fd52"><td class="mdescLeft"> </td><td class="mdescRight">Lower bound on the total number of matching documents. <br /></td></tr> |
| 98 |
<tr class="memitem:af54a6addf7af63106b2778ab722c2f86" id="r_af54a6addf7af63106b2778ab722c2f86"><td class="memItemLeft" align="right" valign="top"><a id="af54a6addf7af63106b2778ab722c2f86" name="af54a6addf7af63106b2778ab722c2f86"></a> |
| 99 |
<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><b>get_matches_estimated</b> () const</td></tr> |
| 100 |
<tr class="memdesc:af54a6addf7af63106b2778ab722c2f86"><td class="mdescLeft"> </td><td class="mdescRight">Estimate of the total number of matching documents. <br /></td></tr> |
| 101 |
<tr class="memitem:aab4c7156a64d9a80de932f073c240a2a" id="r_aab4c7156a64d9a80de932f073c240a2a"><td class="memItemLeft" align="right" valign="top"><a id="aab4c7156a64d9a80de932f073c240a2a" name="aab4c7156a64d9a80de932f073c240a2a"></a> |
| 102 |
<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><b>get_matches_upper_bound</b> () const</td></tr> |
| 103 |
<tr class="memdesc:aab4c7156a64d9a80de932f073c240a2a"><td class="mdescLeft"> </td><td class="mdescRight">Upper bound on the total number of matching documents. <br /></td></tr> |
| 104 |
<tr class="memitem:a540dd8ef78247b923f71eeab74e48134" id="r_a540dd8ef78247b923f71eeab74e48134"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a540dd8ef78247b923f71eeab74e48134">get_uncollapsed_matches_lower_bound</a> () const</td></tr> |
| 105 |
<tr class="memdesc:a540dd8ef78247b923f71eeab74e48134"><td class="mdescLeft"> </td><td class="mdescRight">Lower bound on the total number of matching documents before collapsing. <br /></td></tr> |
| 106 |
<tr class="memitem:a52a7f3415a4a51b8aba5f7c0d4a9892b" id="r_a52a7f3415a4a51b8aba5f7c0d4a9892b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a52a7f3415a4a51b8aba5f7c0d4a9892b">get_uncollapsed_matches_estimated</a> () const</td></tr> |
| 107 |
<tr class="memdesc:a52a7f3415a4a51b8aba5f7c0d4a9892b"><td class="mdescLeft"> </td><td class="mdescRight">Estimate of the total number of matching documents before collapsing. <br /></td></tr> |
| 108 |
<tr class="memitem:a47f362e6501e6aa47eb2fd52691881a6" id="r_a47f362e6501e6aa47eb2fd52691881a6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a47f362e6501e6aa47eb2fd52691881a6">get_uncollapsed_matches_upper_bound</a> () const</td></tr> |
| 109 |
<tr class="memdesc:a47f362e6501e6aa47eb2fd52691881a6"><td class="mdescLeft"> </td><td class="mdescRight">Upper bound on the total number of matching documents before collapsing. <br /></td></tr> |
| 110 |
<tr class="memitem:adfb104107f974854c1869d8d65bdcf5c" id="r_adfb104107f974854c1869d8d65bdcf5c"><td class="memItemLeft" align="right" valign="top"><a id="adfb104107f974854c1869d8d65bdcf5c" name="adfb104107f974854c1869d8d65bdcf5c"></a> |
| 111 |
double </td><td class="memItemRight" valign="bottom"><b>get_max_attained</b> () const</td></tr> |
| 112 |
<tr class="memdesc:adfb104107f974854c1869d8d65bdcf5c"><td class="mdescLeft"> </td><td class="mdescRight">The maximum weight attained by any document. <br /></td></tr> |
| 113 |
<tr class="memitem:a39cd85e88e098a6552cc016d59aa70eb" id="r_a39cd85e88e098a6552cc016d59aa70eb"><td class="memItemLeft" align="right" valign="top"><a id="a39cd85e88e098a6552cc016d59aa70eb" name="a39cd85e88e098a6552cc016d59aa70eb"></a> |
| 114 |
double </td><td class="memItemRight" valign="bottom"><b>get_max_possible</b> () const</td></tr> |
| 115 |
<tr class="memdesc:a39cd85e88e098a6552cc016d59aa70eb"><td class="mdescLeft"> </td><td class="mdescRight">The maximum possible weight any document could achieve. <br /></td></tr> |
| 116 |
<tr class="memitem:ab3af7b20654dcc6e3335cc21be74efda" id="r_ab3af7b20654dcc6e3335cc21be74efda"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="#ab3af7b20654dcc6e3335cc21be74efda">snippet</a> (const std::string &text, size_t length=500, const <a class="el" href="classXapian_1_1Stem.html">Xapian::Stem</a> &stemmer=<a class="el" href="classXapian_1_1Stem.html">Xapian::Stem</a>(), unsigned flags=<a class="el" href="#a424ad4cacaf655a7eb68440ff7957184a7e7bcf75fc86edbc657266ce83d412d1">SNIPPET_BACKGROUND_MODEL</a>|<a class="el" href="#a424ad4cacaf655a7eb68440ff7957184aea6a34a9c66720a44d5969ed47ca8edb">SNIPPET_EXHAUSTIVE</a>, const std::string &hi_start="<b>", const std::string &hi_end="</b>", const std::string &omit="...") const</td></tr> |
| 117 |
<tr class="memdesc:ab3af7b20654dcc6e3335cc21be74efda"><td class="mdescLeft"> </td><td class="mdescRight">Generate a snippet. <br /></td></tr> |
| 118 |
<tr class="memitem:ab7e25dceb5762ad2dd8ca4d700393489" id="r_ab7e25dceb5762ad2dd8ca4d700393489"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ab7e25dceb5762ad2dd8ca4d700393489">fetch</a> (const MSetIterator &<a class="el" href="#ad00d5e7f564fe0e5031cb5f89b829ffe">begin</a>, const MSetIterator &<a class="el" href="#aef1a9f42ccf5319c86b087ce10d5fa20">end</a>) const</td></tr> |
| 119 |
<tr class="memdesc:ab7e25dceb5762ad2dd8ca4d700393489"><td class="mdescLeft"> </td><td class="mdescRight">Prefetch hint a range of items. <br /></td></tr> |
| 120 |
<tr class="memitem:ad5f6577f453f3e5a41f7fd3457343522" id="r_ad5f6577f453f3e5a41f7fd3457343522"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ad5f6577f453f3e5a41f7fd3457343522">fetch</a> (const MSetIterator &item) const</td></tr> |
| 121 |
<tr class="memdesc:ad5f6577f453f3e5a41f7fd3457343522"><td class="mdescLeft"> </td><td class="mdescRight">Prefetch hint a single <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a> item. <br /></td></tr> |
| 122 |
<tr class="memitem:a36740b4bfe8ce8701ba78ef4e7d91a71" id="r_a36740b4bfe8ce8701ba78ef4e7d91a71"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a36740b4bfe8ce8701ba78ef4e7d91a71">fetch</a> () const</td></tr> |
| 123 |
<tr class="memdesc:a36740b4bfe8ce8701ba78ef4e7d91a71"><td class="mdescLeft"> </td><td class="mdescRight">Prefetch hint the whole <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a>. <br /></td></tr> |
| 124 |
<tr class="memitem:a2181d1574210c9b600775a309aebbf49" id="r_a2181d1574210c9b600775a309aebbf49"><td class="memItemLeft" align="right" valign="top"><a id="a2181d1574210c9b600775a309aebbf49" name="a2181d1574210c9b600775a309aebbf49"></a> |
| 125 |
<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><b>size</b> () const</td></tr> |
| 126 |
<tr class="memdesc:a2181d1574210c9b600775a309aebbf49"><td class="mdescLeft"> </td><td class="mdescRight">Return number of items in this <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a> object. <br /></td></tr> |
| 127 |
<tr class="memitem:a7780eff9822ad459fd793272b6adf749" id="r_a7780eff9822ad459fd793272b6adf749"><td class="memItemLeft" align="right" valign="top"><a id="a7780eff9822ad459fd793272b6adf749" name="a7780eff9822ad459fd793272b6adf749"></a> |
| 128 |
bool </td><td class="memItemRight" valign="bottom"><b>empty</b> () const</td></tr> |
| 129 |
<tr class="memdesc:a7780eff9822ad459fd793272b6adf749"><td class="mdescLeft"> </td><td class="mdescRight">Return true if this <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a> object is empty. <br /></td></tr> |
| 130 |
<tr class="memitem:ac1d51d1bc951e0cfb0f31aea41adc7e7" id="r_ac1d51d1bc951e0cfb0f31aea41adc7e7"><td class="memItemLeft" align="right" valign="top"><a id="ac1d51d1bc951e0cfb0f31aea41adc7e7" name="ac1d51d1bc951e0cfb0f31aea41adc7e7"></a> |
| 131 |
void </td><td class="memItemRight" valign="bottom"><b>swap</b> (<a class="el" href="#a2837803ca4a7a7dd01b01df2735ace8b">MSet</a> &o)</td></tr> |
| 132 |
<tr class="memdesc:ac1d51d1bc951e0cfb0f31aea41adc7e7"><td class="mdescLeft"> </td><td class="mdescRight">Efficiently swap this <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a> object with another. <br /></td></tr> |
| 133 |
<tr class="memitem:ad00d5e7f564fe0e5031cb5f89b829ffe" id="r_ad00d5e7f564fe0e5031cb5f89b829ffe"><td class="memItemLeft" align="right" valign="top"><a id="ad00d5e7f564fe0e5031cb5f89b829ffe" name="ad00d5e7f564fe0e5031cb5f89b829ffe"></a> |
| 134 |
MSetIterator </td><td class="memItemRight" valign="bottom"><b>begin</b> () const</td></tr> |
| 135 |
<tr class="memdesc:ad00d5e7f564fe0e5031cb5f89b829ffe"><td class="mdescLeft"> </td><td class="mdescRight">Return iterator pointing to the first item in this <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a>. <br /></td></tr> |
| 136 |
<tr class="memitem:aef1a9f42ccf5319c86b087ce10d5fa20" id="r_aef1a9f42ccf5319c86b087ce10d5fa20"><td class="memItemLeft" align="right" valign="top"><a id="aef1a9f42ccf5319c86b087ce10d5fa20" name="aef1a9f42ccf5319c86b087ce10d5fa20"></a> |
| 137 |
MSetIterator </td><td class="memItemRight" valign="bottom"><b>end</b> () const</td></tr> |
| 138 |
<tr class="memdesc:aef1a9f42ccf5319c86b087ce10d5fa20"><td class="mdescLeft"> </td><td class="mdescRight">Return iterator pointing to just after the last item in this <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a>. <br /></td></tr> |
| 139 |
<tr class="memitem:a93644d435fa3579c83a64e9cd6ffee6a" id="r_a93644d435fa3579c83a64e9cd6ffee6a"><td class="memItemLeft" align="right" valign="top"><a id="a93644d435fa3579c83a64e9cd6ffee6a" name="a93644d435fa3579c83a64e9cd6ffee6a"></a> |
| 140 |
MSetIterator </td><td class="memItemRight" valign="bottom"><b>operator[]</b> (<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> i) const</td></tr> |
| 141 |
<tr class="memdesc:a93644d435fa3579c83a64e9cd6ffee6a"><td class="mdescLeft"> </td><td class="mdescRight">Return iterator pointing to the i-th object in this <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a>. <br /></td></tr> |
| 142 |
<tr class="memitem:abcd7a17e20b8fd2d64d8df67371a954c" id="r_abcd7a17e20b8fd2d64d8df67371a954c"><td class="memItemLeft" align="right" valign="top"><a id="abcd7a17e20b8fd2d64d8df67371a954c" name="abcd7a17e20b8fd2d64d8df67371a954c"></a> |
| 143 |
MSetIterator </td><td class="memItemRight" valign="bottom"><b>back</b> () const</td></tr> |
| 144 |
<tr class="memdesc:abcd7a17e20b8fd2d64d8df67371a954c"><td class="mdescLeft"> </td><td class="mdescRight">Return iterator pointing to the last object in this <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a>. <br /></td></tr> |
| 145 |
<tr class="memitem:a7970089557763b250769d6fac3fdcdf5" id="r_a7970089557763b250769d6fac3fdcdf5"><td class="memItemLeft" align="right" valign="top"><a id="a7970089557763b250769d6fac3fdcdf5" name="a7970089557763b250769d6fac3fdcdf5"></a> |
| 146 |
std::string </td><td class="memItemRight" valign="bottom"><b>get_description</b> () const</td></tr> |
| 147 |
<tr class="memdesc:a7970089557763b250769d6fac3fdcdf5"><td class="mdescLeft"> </td><td class="mdescRight">Return a string describing this object. <br /></td></tr> |
| 148 |
</table> |
| 149 |
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2> |
| 150 |
<div class="textblock"><p>Class representing a list of search results. </p> |
| 151 |
</div><a name="doc-enum-members" id="doc-enum-members"></a><h2 id="header-doc-enum-members" class="groupheader">Member Enumeration Documentation</h2> |
| 152 |
<a id="a424ad4cacaf655a7eb68440ff7957184" name="a424ad4cacaf655a7eb68440ff7957184"></a> |
| 153 |
<h2 class="memtitle"><span class="permalink"><a href="#a424ad4cacaf655a7eb68440ff7957184">◆ </a></span>anonymous enum</h2> |
| 154 |
|
| 155 |
<div class="memitem"> |
| 156 |
<div class="memproto"> |
| 157 |
<table class="memname"> |
| 158 |
<tr> |
| 159 |
<td class="memname">anonymous enum</td> |
| 160 |
</tr> |
| 161 |
</table> |
| 162 |
</div><div class="memdoc"> |
| 163 |
<table class="fieldtable"> |
| 164 |
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a424ad4cacaf655a7eb68440ff7957184a7e7bcf75fc86edbc657266ce83d412d1" name="a424ad4cacaf655a7eb68440ff7957184a7e7bcf75fc86edbc657266ce83d412d1"></a>SNIPPET_BACKGROUND_MODEL </td><td class="fielddoc"><p>Model the relevancy of non-query terms in <a class="el" href="#ab3af7b20654dcc6e3335cc21be74efda" title="Generate a snippet.">MSet::snippet()</a>. </p> |
| 165 |
<p>Non-query terms will be assigned a small weight, and the snippet will tend to prefer snippets which contain a more interesting background (where the query term content is equivalent). </p> |
| 166 |
</td></tr> |
| 167 |
<tr><td class="fieldname"><a id="a424ad4cacaf655a7eb68440ff7957184aea6a34a9c66720a44d5969ed47ca8edb" name="a424ad4cacaf655a7eb68440ff7957184aea6a34a9c66720a44d5969ed47ca8edb"></a>SNIPPET_EXHAUSTIVE </td><td class="fielddoc"><p>Exhaustively evaluate candidate snippets in <a class="el" href="#ab3af7b20654dcc6e3335cc21be74efda" title="Generate a snippet.">MSet::snippet()</a>. </p> |
| 168 |
<p>Without this flag, snippet generation will stop once it thinks it has found a "good enough" snippet, which will generally reduce the time taken to generate a snippet. </p> |
| 169 |
</td></tr> |
| 170 |
<tr><td class="fieldname"><a id="a424ad4cacaf655a7eb68440ff7957184a88e25634675d381df062299100c8c602" name="a424ad4cacaf655a7eb68440ff7957184a88e25634675d381df062299100c8c602"></a>SNIPPET_EMPTY_WITHOUT_MATCH </td><td class="fielddoc"><p>Return the empty string if no term got matched. </p> |
| 171 |
<p>If enabled, <a class="el" href="#ab3af7b20654dcc6e3335cc21be74efda" title="Generate a snippet.">snippet()</a> returns an empty string if not a single match was found in text. If not enabled, <a class="el" href="#ab3af7b20654dcc6e3335cc21be74efda" title="Generate a snippet.">snippet()</a> returns a (sub)string of text without any highlighted terms. </p> |
| 172 |
</td></tr> |
| 173 |
<tr><td class="fieldname"><a id="a424ad4cacaf655a7eb68440ff7957184ab49c1b2476708ee2ca7c4f5eda09ccab" name="a424ad4cacaf655a7eb68440ff7957184ab49c1b2476708ee2ca7c4f5eda09ccab"></a>SNIPPET_NGRAMS </td><td class="fielddoc"><p>Generate n-grams for scripts without explicit word breaks. </p> |
| 174 |
<p>Text in other scripts is split into words as normal.</p> |
| 175 |
<p>Enable this option to highlight search results for queries parsed with the <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea2234ab0cbef544912a54214b1884e279" title="Generate n-grams for scripts without explicit word breaks.">QueryParser::FLAG_NGRAMS</a> flag.</p> |
| 176 |
<p>The <a class="el" href="classXapian_1_1TermGenerator.html#a6156c69e55d8d4e5759d6e464156e43ca88d4e216d1f4cfe14a9491969830827e" title="Generate n-grams for scripts without explicit word breaks.">TermGenerator::FLAG_NGRAMS</a> flag needs to have been used at index time.</p> |
| 177 |
<p>This mode can also be enabled by setting environment variable XAPIAN_CJK_NGRAM to a non-empty value (but doing so was deprecated in 1.4.11).</p> |
| 178 |
<p>In 1.4.x this feature was specific to CJK (Chinese, Japanese and Korean), but in 2.0.0 it's been extended to other languages. To reflect this change the new and preferred name is SNIPPET_NGRAMS, which was added as an alias for forward compatibility in <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.23. Use SNIPPET_CJK_NGRAM instead if you aim to support <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> < 1.4.23.</p> |
| 179 |
<dl class="section since"><dt>Since</dt><dd>Added in <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.23. </dd></dl> |
| 180 |
</td></tr> |
| 181 |
<tr><td class="fieldname"><a id="a424ad4cacaf655a7eb68440ff7957184a9a02d5d76a2935955d4d05ec72009b23" name="a424ad4cacaf655a7eb68440ff7957184a9a02d5d76a2935955d4d05ec72009b23"></a>SNIPPET_CJK_NGRAM </td><td class="fielddoc"><p>Generate n-grams for scripts without explicit word breaks. </p> |
| 182 |
<p>Old name - use SNIPPET_NGRAMS instead unless you aim to support <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> < 1.4.23.</p> |
| 183 |
<dl class="section since"><dt>Since</dt><dd>Added in <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.11. </dd></dl> |
| 184 |
</td></tr> |
| 185 |
</table> |
| 186 |
|
| 187 |
</div> |
| 188 |
</div> |
| 189 |
<a name="doc-constructors" id="doc-constructors"></a><h2 id="header-doc-constructors" class="groupheader">Constructor & Destructor Documentation</h2> |
| 190 |
<a id="a2837803ca4a7a7dd01b01df2735ace8b" name="a2837803ca4a7a7dd01b01df2735ace8b"></a> |
| 191 |
<h2 class="memtitle"><span class="permalink"><a href="#a2837803ca4a7a7dd01b01df2735ace8b">◆ </a></span>MSet() <span class="overload">[1/2]</span></h2> |
| 192 |
|
| 193 |
<div class="memitem"> |
| 194 |
<div class="memproto"> |
| 195 |
<table class="memname"> |
| 196 |
<tr> |
| 197 |
<td class="memname">Xapian::MSet::MSet </td> |
| 198 |
<td>(</td> |
| 199 |
<td class="paramtype">const MSet &</td> <td class="paramname"><span class="paramname"><em>o</em></span></td><td>)</td> |
| 200 |
<td></td> |
| 201 |
</tr> |
| 202 |
</table> |
| 203 |
</div><div class="memdoc"> |
| 204 |
|
| 205 |
<p>Copying is allowed. </p> |
| 206 |
<p>The internals are reference counted, so copying is cheap. </p> |
| 207 |
|
| 208 |
<p class="reference">References <a class="el" href="#a2837803ca4a7a7dd01b01df2735ace8b">MSet()</a>.</p> |
| 209 |
|
| 210 |
<p class="reference">Referenced by <a class="el" href="#a2837803ca4a7a7dd01b01df2735ace8b">MSet()</a>, <a class="el" href="#a7ac9d11f86682f69702fbdd74609d4c2">operator=()</a>, and <a class="el" href="#ac1d51d1bc951e0cfb0f31aea41adc7e7">swap()</a>.</p> |
| 211 |
|
| 212 |
</div> |
| 213 |
</div> |
| 214 |
<a id="a2731b94a40e99a83c3e5d516809dc2e3" name="a2731b94a40e99a83c3e5d516809dc2e3"></a> |
| 215 |
<h2 class="memtitle"><span class="permalink"><a href="#a2731b94a40e99a83c3e5d516809dc2e3">◆ </a></span>MSet() <span class="overload">[2/2]</span></h2> |
| 216 |
|
| 217 |
<div class="memitem"> |
| 218 |
<div class="memproto"> |
| 219 |
<table class="memname"> |
| 220 |
<tr> |
| 221 |
<td class="memname">Xapian::MSet::MSet </td> |
| 222 |
<td>(</td> |
| 223 |
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td> |
| 224 |
<td></td> |
| 225 |
</tr> |
| 226 |
</table> |
| 227 |
</div><div class="memdoc"> |
| 228 |
|
| 229 |
<p>Default constructor. </p> |
| 230 |
<p>Creates an empty <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a>, mostly useful as a placeholder. </p> |
| 231 |
|
| 232 |
</div> |
| 233 |
</div> |
| 234 |
<a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Member Function Documentation</h2> |
| 235 |
<a id="a610feaa8b1278bcd73510cec7f0deabf" name="a610feaa8b1278bcd73510cec7f0deabf"></a> |
| 236 |
<h2 class="memtitle"><span class="permalink"><a href="#a610feaa8b1278bcd73510cec7f0deabf">◆ </a></span>convert_to_percent() <span class="overload">[1/2]</span></h2> |
| 237 |
|
| 238 |
<div class="memitem"> |
| 239 |
<div class="memproto"> |
| 240 |
<table class="mlabels"> |
| 241 |
<tr> |
| 242 |
<td class="mlabels-left"> |
| 243 |
<table class="memname"> |
| 244 |
<tr> |
| 245 |
<td class="memname">int Xapian::MSet::convert_to_percent </td> |
| 246 |
<td>(</td> |
| 247 |
<td class="paramtype">const MSetIterator &</td> <td class="paramname"><span class="paramname"><em>it</em></span></td><td>)</td> |
| 248 |
<td> const</td> |
| 249 |
</tr> |
| 250 |
</table> |
| 251 |
</td> |
| 252 |
<td class="mlabels-right"> |
| 253 |
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td> |
| 254 |
</tr> |
| 255 |
</table> |
| 256 |
</div><div class="memdoc"> |
| 257 |
|
| 258 |
<p>Convert the weight of the current iterator position to a percentage. </p> |
| 259 |
<p>The matching document with the highest weight will get 100% if it matches all the weighted query terms, and proportionally less if it only matches some, and other weights are scaled by the same factor.</p> |
| 260 |
<p>Documents with a non-zero score will always score at least 1%.</p> |
| 261 |
<p>Note that these generally aren't percentages of anything meaningful (unless you use a custom weighting formula where they are!) </p> |
| 262 |
|
| 263 |
<p class="reference">References <a class="el" href="#a6f834ac35fdcc58fcd5eb38fc7f320f1">convert_to_percent()</a>, and <a class="el" href="classXapian_1_1MSetIterator.html#aaab3f59a87ba89afffe3375bd33a59ca">Xapian::MSetIterator::get_weight()</a>.</p> |
| 264 |
|
| 265 |
</div> |
| 266 |
</div> |
| 267 |
<a id="a6f834ac35fdcc58fcd5eb38fc7f320f1" name="a6f834ac35fdcc58fcd5eb38fc7f320f1"></a> |
| 268 |
<h2 class="memtitle"><span class="permalink"><a href="#a6f834ac35fdcc58fcd5eb38fc7f320f1">◆ </a></span>convert_to_percent() <span class="overload">[2/2]</span></h2> |
| 269 |
|
| 270 |
<div class="memitem"> |
| 271 |
<div class="memproto"> |
| 272 |
<table class="memname"> |
| 273 |
<tr> |
| 274 |
<td class="memname">int Xapian::MSet::convert_to_percent </td> |
| 275 |
<td>(</td> |
| 276 |
<td class="paramtype">double</td> <td class="paramname"><span class="paramname"><em>weight</em></span></td><td>)</td> |
| 277 |
<td> const</td> |
| 278 |
</tr> |
| 279 |
</table> |
| 280 |
</div><div class="memdoc"> |
| 281 |
|
| 282 |
<p>Convert a weight to a percentage. </p> |
| 283 |
<p>The matching document with the highest weight will get 100% if it matches all the weighted query terms, and proportionally less if it only matches some, and other weights are scaled by the same factor.</p> |
| 284 |
<p>Documents with a non-zero score will always score at least 1%.</p> |
| 285 |
<p>Note that these generally aren't percentages of anything meaningful (unless you use a custom weighting formula where they are!) </p> |
| 286 |
|
| 287 |
<p class="reference">References <a class="el" href="#a6f834ac35fdcc58fcd5eb38fc7f320f1">convert_to_percent()</a>.</p> |
| 288 |
|
| 289 |
<p class="reference">Referenced by <a class="el" href="#a610feaa8b1278bcd73510cec7f0deabf">convert_to_percent()</a>, and <a class="el" href="#a6f834ac35fdcc58fcd5eb38fc7f320f1">convert_to_percent()</a>.</p> |
| 290 |
|
| 291 |
</div> |
| 292 |
</div> |
| 293 |
<a id="a36740b4bfe8ce8701ba78ef4e7d91a71" name="a36740b4bfe8ce8701ba78ef4e7d91a71"></a> |
| 294 |
<h2 class="memtitle"><span class="permalink"><a href="#a36740b4bfe8ce8701ba78ef4e7d91a71">◆ </a></span>fetch() <span class="overload">[1/3]</span></h2> |
| 295 |
|
| 296 |
<div class="memitem"> |
| 297 |
<div class="memproto"> |
| 298 |
<table class="mlabels"> |
| 299 |
<tr> |
| 300 |
<td class="mlabels-left"> |
| 301 |
<table class="memname"> |
| 302 |
<tr> |
| 303 |
<td class="memname">void Xapian::MSet::fetch </td> |
| 304 |
<td>(</td> |
| 305 |
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td> |
| 306 |
<td> const</td> |
| 307 |
</tr> |
| 308 |
</table> |
| 309 |
</td> |
| 310 |
<td class="mlabels-right"> |
| 311 |
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td> |
| 312 |
</tr> |
| 313 |
</table> |
| 314 |
</div><div class="memdoc"> |
| 315 |
|
| 316 |
<p>Prefetch hint the whole <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a>. </p> |
| 317 |
<p>For a remote database, this may start a pipelined fetch of the requested documents from the remote server.</p> |
| 318 |
<p>For a disk-based database, this may send prefetch hints to the operating system such that the disk blocks the requested documents are stored in are more likely to be in the cache when we come to actually read them. </p> |
| 319 |
|
| 320 |
</div> |
| 321 |
</div> |
| 322 |
<a id="ab7e25dceb5762ad2dd8ca4d700393489" name="ab7e25dceb5762ad2dd8ca4d700393489"></a> |
| 323 |
<h2 class="memtitle"><span class="permalink"><a href="#ab7e25dceb5762ad2dd8ca4d700393489">◆ </a></span>fetch() <span class="overload">[2/3]</span></h2> |
| 324 |
|
| 325 |
<div class="memitem"> |
| 326 |
<div class="memproto"> |
| 327 |
<table class="mlabels"> |
| 328 |
<tr> |
| 329 |
<td class="mlabels-left"> |
| 330 |
<table class="memname"> |
| 331 |
<tr> |
| 332 |
<td class="memname">void Xapian::MSet::fetch </td> |
| 333 |
<td>(</td> |
| 334 |
<td class="paramtype">const MSetIterator &</td> <td class="paramname"><span class="paramname"><em>begin</em></span>, </td> |
| 335 |
</tr> |
| 336 |
<tr> |
| 337 |
<td class="paramkey"></td> |
| 338 |
<td></td> |
| 339 |
<td class="paramtype">const MSetIterator &</td> <td class="paramname"><span class="paramname"><em>end</em></span> ) const</td> |
| 340 |
</tr> |
| 341 |
</table> |
| 342 |
</td> |
| 343 |
<td class="mlabels-right"> |
| 344 |
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td> |
| 345 |
</tr> |
| 346 |
</table> |
| 347 |
</div><div class="memdoc"> |
| 348 |
|
| 349 |
<p>Prefetch hint a range of items. </p> |
| 350 |
<p>For a remote database, this may start a pipelined fetch of the requested documents from the remote server.</p> |
| 351 |
<p>For a disk-based database, this may send prefetch hints to the operating system such that the disk blocks the requested documents are stored in are more likely to be in the cache when we come to actually read them. </p> |
| 352 |
|
| 353 |
<p class="reference">Referenced by <a class="el" href="#ab3af7b20654dcc6e3335cc21be74efda">snippet()</a>.</p> |
| 354 |
|
| 355 |
</div> |
| 356 |
</div> |
| 357 |
<a id="ad5f6577f453f3e5a41f7fd3457343522" name="ad5f6577f453f3e5a41f7fd3457343522"></a> |
| 358 |
<h2 class="memtitle"><span class="permalink"><a href="#ad5f6577f453f3e5a41f7fd3457343522">◆ </a></span>fetch() <span class="overload">[3/3]</span></h2> |
| 359 |
|
| 360 |
<div class="memitem"> |
| 361 |
<div class="memproto"> |
| 362 |
<table class="mlabels"> |
| 363 |
<tr> |
| 364 |
<td class="mlabels-left"> |
| 365 |
<table class="memname"> |
| 366 |
<tr> |
| 367 |
<td class="memname">void Xapian::MSet::fetch </td> |
| 368 |
<td>(</td> |
| 369 |
<td class="paramtype">const MSetIterator &</td> <td class="paramname"><span class="paramname"><em>item</em></span></td><td>)</td> |
| 370 |
<td> const</td> |
| 371 |
</tr> |
| 372 |
</table> |
| 373 |
</td> |
| 374 |
<td class="mlabels-right"> |
| 375 |
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td> |
| 376 |
</tr> |
| 377 |
</table> |
| 378 |
</div><div class="memdoc"> |
| 379 |
|
| 380 |
<p>Prefetch hint a single <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a> item. </p> |
| 381 |
<p>For a remote database, this may start a pipelined fetch of the requested documents from the remote server.</p> |
| 382 |
<p>For a disk-based database, this may send prefetch hints to the operating system such that the disk blocks the requested documents are stored in are more likely to be in the cache when we come to actually read them. </p> |
| 383 |
|
| 384 |
</div> |
| 385 |
</div> |
| 386 |
<a id="a8a8acbf405fc883ccd11823743f1d8a3" name="a8a8acbf405fc883ccd11823743f1d8a3"></a> |
| 387 |
<h2 class="memtitle"><span class="permalink"><a href="#a8a8acbf405fc883ccd11823743f1d8a3">◆ </a></span>get_firstitem()</h2> |
| 388 |
|
| 389 |
<div class="memitem"> |
| 390 |
<div class="memproto"> |
| 391 |
<table class="memname"> |
| 392 |
<tr> |
| 393 |
<td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> Xapian::MSet::get_firstitem </td> |
| 394 |
<td>(</td> |
| 395 |
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td> |
| 396 |
<td> const</td> |
| 397 |
</tr> |
| 398 |
</table> |
| 399 |
</div><div class="memdoc"> |
| 400 |
|
| 401 |
<p>Rank of first item in this <a class="el" href="classXapian_1_1MSet.html" title="Class representing a list of search results.">MSet</a>. </p> |
| 402 |
<p>This is the parameter <span class="tt">first</span> passed to <a class="el" href="classXapian_1_1Enquire.html#aab6fba434e5ddbbea2adcab85ba5ba4a" title="Get (a portion of) the match set for the current query.">Xapian::Enquire::get_mset()</a>. </p> |
| 403 |
|
| 404 |
</div> |
| 405 |
</div> |
| 406 |
<a id="aa869331afad28c2d815d0553198c4914" name="aa869331afad28c2d815d0553198c4914"></a> |
| 407 |
<h2 class="memtitle"><span class="permalink"><a href="#aa869331afad28c2d815d0553198c4914">◆ </a></span>get_termfreq()</h2> |
| 408 |
|
| 409 |
<div class="memitem"> |
| 410 |
<div class="memproto"> |
| 411 |
<table class="memname"> |
| 412 |
<tr> |
| 413 |
<td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> Xapian::MSet::get_termfreq </td> |
| 414 |
<td>(</td> |
| 415 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>term</em></span></td><td>)</td> |
| 416 |
<td> const</td> |
| 417 |
</tr> |
| 418 |
</table> |
| 419 |
</div><div class="memdoc"> |
| 420 |
|
| 421 |
<p>Get the termfreq of a term. </p> |
| 422 |
<dl class="section return"><dt>Returns</dt><dd>The number of documents which <em class="arg">term</em> occurs in. This considers all documents in the database being searched, so gives the same answer as <code>db.get_termfreq(term)</code> (but is more efficient for query terms as it returns a value cached during the search.) </dd></dl> |
| 423 |
|
| 424 |
</div> |
| 425 |
</div> |
| 426 |
<a id="a086b0d7436ff05257352cde7c3cd1d7a" name="a086b0d7436ff05257352cde7c3cd1d7a"></a> |
| 427 |
<h2 class="memtitle"><span class="permalink"><a href="#a086b0d7436ff05257352cde7c3cd1d7a">◆ </a></span>get_termweight()</h2> |
| 428 |
|
| 429 |
<div class="memitem"> |
| 430 |
<div class="memproto"> |
| 431 |
<table class="memname"> |
| 432 |
<tr> |
| 433 |
<td class="memname">double Xapian::MSet::get_termweight </td> |
| 434 |
<td>(</td> |
| 435 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>term</em></span></td><td>)</td> |
| 436 |
<td> const</td> |
| 437 |
</tr> |
| 438 |
</table> |
| 439 |
</div><div class="memdoc"> |
| 440 |
|
| 441 |
<p>Get the term weight of a term. </p> |
| 442 |
<dl class="section return"><dt>Returns</dt><dd>The maximum weight that <em class="arg">term</em> could have contributed to a document. </dd></dl> |
| 443 |
|
| 444 |
</div> |
| 445 |
</div> |
| 446 |
<a id="a52a7f3415a4a51b8aba5f7c0d4a9892b" name="a52a7f3415a4a51b8aba5f7c0d4a9892b"></a> |
| 447 |
<h2 class="memtitle"><span class="permalink"><a href="#a52a7f3415a4a51b8aba5f7c0d4a9892b">◆ </a></span>get_uncollapsed_matches_estimated()</h2> |
| 448 |
|
| 449 |
<div class="memitem"> |
| 450 |
<div class="memproto"> |
| 451 |
<table class="memname"> |
| 452 |
<tr> |
| 453 |
<td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> Xapian::MSet::get_uncollapsed_matches_estimated </td> |
| 454 |
<td>(</td> |
| 455 |
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td> |
| 456 |
<td> const</td> |
| 457 |
</tr> |
| 458 |
</table> |
| 459 |
</div><div class="memdoc"> |
| 460 |
|
| 461 |
<p>Estimate of the total number of matching documents before collapsing. </p> |
| 462 |
<p>Conceptually the same as <a class="el" href="#af54a6addf7af63106b2778ab722c2f86" title="Estimate of the total number of matching documents.">get_matches_estimated()</a> for the same query without any collapse part (though the actual value may differ). </p> |
| 463 |
|
| 464 |
</div> |
| 465 |
</div> |
| 466 |
<a id="a540dd8ef78247b923f71eeab74e48134" name="a540dd8ef78247b923f71eeab74e48134"></a> |
| 467 |
<h2 class="memtitle"><span class="permalink"><a href="#a540dd8ef78247b923f71eeab74e48134">◆ </a></span>get_uncollapsed_matches_lower_bound()</h2> |
| 468 |
|
| 469 |
<div class="memitem"> |
| 470 |
<div class="memproto"> |
| 471 |
<table class="memname"> |
| 472 |
<tr> |
| 473 |
<td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> Xapian::MSet::get_uncollapsed_matches_lower_bound </td> |
| 474 |
<td>(</td> |
| 475 |
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td> |
| 476 |
<td> const</td> |
| 477 |
</tr> |
| 478 |
</table> |
| 479 |
</div><div class="memdoc"> |
| 480 |
|
| 481 |
<p>Lower bound on the total number of matching documents before collapsing. </p> |
| 482 |
<p>Conceptually the same as <a class="el" href="#ae0e08d51eb1e5ae95b635e0a40d6fd52" title="Lower bound on the total number of matching documents.">get_matches_lower_bound()</a> for the same query without any collapse part (though the actual value may differ). </p> |
| 483 |
|
| 484 |
</div> |
| 485 |
</div> |
| 486 |
<a id="a47f362e6501e6aa47eb2fd52691881a6" name="a47f362e6501e6aa47eb2fd52691881a6"></a> |
| 487 |
<h2 class="memtitle"><span class="permalink"><a href="#a47f362e6501e6aa47eb2fd52691881a6">◆ </a></span>get_uncollapsed_matches_upper_bound()</h2> |
| 488 |
|
| 489 |
<div class="memitem"> |
| 490 |
<div class="memproto"> |
| 491 |
<table class="memname"> |
| 492 |
<tr> |
| 493 |
<td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> Xapian::MSet::get_uncollapsed_matches_upper_bound </td> |
| 494 |
<td>(</td> |
| 495 |
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td> |
| 496 |
<td> const</td> |
| 497 |
</tr> |
| 498 |
</table> |
| 499 |
</div><div class="memdoc"> |
| 500 |
|
| 501 |
<p>Upper bound on the total number of matching documents before collapsing. </p> |
| 502 |
<p>Conceptually the same as <a class="el" href="#aab4c7156a64d9a80de932f073c240a2a" title="Upper bound on the total number of matching documents.">get_matches_upper_bound()</a> for the same query without any collapse part (though the actual value may differ). </p> |
| 503 |
|
| 504 |
</div> |
| 505 |
</div> |
| 506 |
<a id="a7ac9d11f86682f69702fbdd74609d4c2" name="a7ac9d11f86682f69702fbdd74609d4c2"></a> |
| 507 |
<h2 class="memtitle"><span class="permalink"><a href="#a7ac9d11f86682f69702fbdd74609d4c2">◆ </a></span>operator=()</h2> |
| 508 |
|
| 509 |
<div class="memitem"> |
| 510 |
<div class="memproto"> |
| 511 |
<table class="memname"> |
| 512 |
<tr> |
| 513 |
<td class="memname"><a class="el" href="#a2837803ca4a7a7dd01b01df2735ace8b">MSet</a> & Xapian::MSet::operator= </td> |
| 514 |
<td>(</td> |
| 515 |
<td class="paramtype">const <a class="el" href="#a2837803ca4a7a7dd01b01df2735ace8b">MSet</a> &</td> <td class="paramname"><span class="paramname"><em>o</em></span></td><td>)</td> |
| 516 |
<td></td> |
| 517 |
</tr> |
| 518 |
</table> |
| 519 |
</div><div class="memdoc"> |
| 520 |
|
| 521 |
<p>Copying is allowed. </p> |
| 522 |
<p>The internals are reference counted, so assignment is cheap. </p> |
| 523 |
|
| 524 |
<p class="reference">References <a class="el" href="#a2837803ca4a7a7dd01b01df2735ace8b">MSet()</a>, and <a class="el" href="#a7ac9d11f86682f69702fbdd74609d4c2">operator=()</a>.</p> |
| 525 |
|
| 526 |
<p class="reference">Referenced by <a class="el" href="#a7ac9d11f86682f69702fbdd74609d4c2">operator=()</a>.</p> |
| 527 |
|
| 528 |
</div> |
| 529 |
</div> |
| 530 |
<a id="ab3af7b20654dcc6e3335cc21be74efda" name="ab3af7b20654dcc6e3335cc21be74efda"></a> |
| 531 |
<h2 class="memtitle"><span class="permalink"><a href="#ab3af7b20654dcc6e3335cc21be74efda">◆ </a></span>snippet()</h2> |
| 532 |
|
| 533 |
<div class="memitem"> |
| 534 |
<div class="memproto"> |
| 535 |
<table class="memname"> |
| 536 |
<tr> |
| 537 |
<td class="memname">std::string Xapian::MSet::snippet </td> |
| 538 |
<td>(</td> |
| 539 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>text</em></span>, </td> |
| 540 |
</tr> |
| 541 |
<tr> |
| 542 |
<td class="paramkey"></td> |
| 543 |
<td></td> |
| 544 |
<td class="paramtype">size_t</td> <td class="paramname"><span class="paramname"><em>length</em></span><span class="paramdefsep"> = </span><span class="paramdefval">500</span>, </td> |
| 545 |
</tr> |
| 546 |
<tr> |
| 547 |
<td class="paramkey"></td> |
| 548 |
<td></td> |
| 549 |
<td class="paramtype">const <a class="el" href="classXapian_1_1Stem.html">Xapian::Stem</a> &</td> <td class="paramname"><span class="paramname"><em>stemmer</em></span><span class="paramdefsep"> = </span><span class="paramdefval"><a class="el" href="classXapian_1_1Stem.html">Xapian::Stem</a>()</span>, </td> |
| 550 |
</tr> |
| 551 |
<tr> |
| 552 |
<td class="paramkey"></td> |
| 553 |
<td></td> |
| 554 |
<td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>flags</em></span><span class="paramdefsep"> = </span><span class="paramdefval"><a class="el" href="#a424ad4cacaf655a7eb68440ff7957184a7e7bcf75fc86edbc657266ce83d412d1">SNIPPET_BACKGROUND_MODEL</a>|<a class="el" href="#a424ad4cacaf655a7eb68440ff7957184aea6a34a9c66720a44d5969ed47ca8edb">SNIPPET_EXHAUSTIVE</a></span>, </td> |
| 555 |
</tr> |
| 556 |
<tr> |
| 557 |
<td class="paramkey"></td> |
| 558 |
<td></td> |
| 559 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>hi_start</em></span><span class="paramdefsep"> = </span><span class="paramdefval">"<b>"</span>, </td> |
| 560 |
</tr> |
| 561 |
<tr> |
| 562 |
<td class="paramkey"></td> |
| 563 |
<td></td> |
| 564 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>hi_end</em></span><span class="paramdefsep"> = </span><span class="paramdefval">"</b>"</span>, </td> |
| 565 |
</tr> |
| 566 |
<tr> |
| 567 |
<td class="paramkey"></td> |
| 568 |
<td></td> |
| 569 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>omit</em></span><span class="paramdefsep"> = </span><span class="paramdefval">"..."</span> ) const</td> |
| 570 |
</tr> |
| 571 |
</table> |
| 572 |
</div><div class="memdoc"> |
| 573 |
|
| 574 |
<p>Generate a snippet. </p> |
| 575 |
<p>This method selects a continuous run of words from <em class="arg">text</em>, based mainly on where the query matches (currently terms, exact phrases and wildcards are taken into account). If flag SNIPPET_BACKGROUND_MODEL is used (which it is by default) then the selection algorithm also considers the non-query terms in the text with the aim of showing a context which provides more useful information.</p> |
| 576 |
<p>The size of the text selected can be controlled by the <em class="arg">length</em> parameter, which specifies a number of bytes of text to aim to select. However slightly more text may be selected. Also the size of any escaping, highlighting or omission markers is not considered.</p> |
| 577 |
<p>The returned text is escaped to make it suitable for use in HTML (though beware that in upstream releases 1.4.5 and earlier this escaping was sometimes incomplete), and matches with the query will be highlighted using <em class="arg">hi_start</em> and <em class="arg">hi_end</em>.</p> |
| 578 |
<p>If the snippet seems to start or end mid-sentence, then <em class="arg">omit</em> is prepended or append (respectively) to indicate this.</p> |
| 579 |
<p>The same stemming algorithm which was used to build the query should be specified in <em class="arg">stemmer</em>.</p> |
| 580 |
<p>And <em class="arg">flags</em> contains flags controlling behaviour.</p> |
| 581 |
<p>Added in 1.3.5. </p> |
| 582 |
|
| 583 |
<p class="reference">References <a class="el" href="#ad00d5e7f564fe0e5031cb5f89b829ffe">begin()</a>, <a class="el" href="#aef1a9f42ccf5319c86b087ce10d5fa20">end()</a>, <a class="el" href="#ab7e25dceb5762ad2dd8ca4d700393489">fetch()</a>, <a class="el" href="#a424ad4cacaf655a7eb68440ff7957184a7e7bcf75fc86edbc657266ce83d412d1">SNIPPET_BACKGROUND_MODEL</a>, and <a class="el" href="#a424ad4cacaf655a7eb68440ff7957184aea6a34a9c66720a44d5969ed47ca8edb">SNIPPET_EXHAUSTIVE</a>.</p> |
| 584 |
|
| 585 |
</div> |
| 586 |
</div> |
| 587 |
<hr/>The documentation for this class was generated from the following file:<ul> |
| 588 |
<li>xapian/<a class="el" href="mset_8h.html">mset.h</a></li> |
| 589 |
</ul> |
| 590 |
</div> |
| 591 |
|
| 592 |
<hr class="footer"/><address class="footer"><small> |
| 593 |
Generated by <a href="https://www.doxygen.org/">Doxygen 1.15.0</a> |
| 594 |
</small></address> |
| 595 |
</body> |
| 596 |
</html> |