1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Xapian: API Documentation: Xapian::Weight Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceXapian.html">Xapian</a></li><li class="navelem"><a class="el" href="classXapian_1_1Weight.html">Weight</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-types">Protected Types</a> |
<a href="#pro-methods">Protected Member Functions</a> |
<a href="classXapian_1_1Weight-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Xapian::Weight Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>Abstract base class for weighting schemes.
<a href="classXapian_1_1Weight.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Xapian::Weight:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classXapian_1_1Weight__inherit__graph.png" border="0" usemap="#Xapian_1_1Weight_inherit__map" alt="Inheritance graph"/></div>
<map name="Xapian_1_1Weight_inherit__map" id="Xapian_1_1Weight_inherit__map">
<area shape="rect" id="node2" href="classXapian_1_1BB2Weight.html" title="This class implements the BB2 weighting scheme. " alt="" coords="181,5,317,32"/>
<area shape="rect" id="node3" href="classXapian_1_1BM25PlusWeight.html" title="Xapian::Weight subclass implementing the BM25+ probabilistic formula. " alt="" coords="164,56,335,83"/>
<area shape="rect" id="node4" href="classXapian_1_1BM25Weight.html" title="Xapian::Weight subclass implementing the BM25 probabilistic formula. " alt="" coords="177,107,322,133"/>
<area shape="rect" id="node5" href="classXapian_1_1BoolWeight.html" title="Class implementing a "boolean" weighting scheme. " alt="" coords="181,157,318,184"/>
<area shape="rect" id="node6" href="classXapian_1_1CoordWeight.html" title="Xapian::Weight subclass implementing Coordinate Matching. " alt="" coords="176,208,323,235"/>
<area shape="rect" id="node7" href="classXapian_1_1DLHWeight.html" title="This class implements the DLH weighting scheme, which is a representative scheme of the Divergence fr..." alt="" coords="180,259,319,285"/>
<area shape="rect" id="node8" href="classXapian_1_1DPHWeight.html" title="This class implements the DPH weighting scheme. " alt="" coords="179,309,319,336"/>
<area shape="rect" id="node9" href="classXapian_1_1IfB2Weight.html" title="This class implements the IfB2 weighting scheme. " alt="" coords="182,360,317,387"/>
<area shape="rect" id="node10" href="classXapian_1_1IneB2Weight.html" title="This class implements the IneB2 weighting scheme. " alt="" coords="177,411,322,437"/>
<area shape="rect" id="node11" href="classXapian_1_1InL2Weight.html" title="This class implements the InL2 weighting scheme. " alt="" coords="181,461,317,488"/>
<area shape="rect" id="node12" href="classXapian_1_1LMWeight.html" title="Xapian::Weight subclass implementing the Language Model formula. " alt="" coords="185,512,314,539"/>
<area shape="rect" id="node13" href="classXapian_1_1PL2PlusWeight.html" title="Xapian::Weight subclass implementing the PL2+ probabilistic formula. " alt="" coords="169,563,329,589"/>
<area shape="rect" id="node14" href="classXapian_1_1PL2Weight.html" title="This class implements the PL2 weighting scheme. " alt="" coords="182,613,317,640"/>
<area shape="rect" id="node15" href="classXapian_1_1TfIdfWeight.html" title="Xapian::Weight subclass implementing the tf-idf weighting scheme. " alt="" coords="180,664,319,691"/>
<area shape="rect" id="node16" href="classXapian_1_1TradWeight.html" title="Xapian::Weight subclass implementing the traditional probabilistic formula. " alt="" coords="181,715,318,741"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a3181bb7619bd560a3a2c21ece3213ce0"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a3181bb7619bd560a3a2c21ece3213ce0">type_smoothing</a> { <br />
  <b>TWO_STAGE_SMOOTHING</b> = 1,
<b>DIRICHLET_SMOOTHING</b> = 2,
<b>ABSOLUTE_DISCOUNT_SMOOTHING</b> = 3,
<b>JELINEK_MERCER_SMOOTHING</b> = 4,
<br />
  <b>DIRICHLET_PLUS_SMOOTHING</b> = 5
<br />
}<tr class="memdesc:a3181bb7619bd560a3a2c21ece3213ce0"><td class="mdescLeft"> </td><td class="mdescRight">Type of smoothing to use with the Language Model Weighting scheme. <a href="classXapian_1_1Weight.html#a3181bb7619bd560a3a2c21ece3213ce0">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:a3181bb7619bd560a3a2c21ece3213ce0"><td class="memSeparator" colspan="2"> </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:a48e8f4d351f2a090bcec111513833e0f"><td class="memItemLeft" align="right" valign="top"><a id="a48e8f4d351f2a090bcec111513833e0f"></a>
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a48e8f4d351f2a090bcec111513833e0f">Weight</a> ()</td></tr>
<tr class="memdesc:a48e8f4d351f2a090bcec111513833e0f"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor, needed by subclass constructors. <br /></td></tr>
<tr class="separator:a48e8f4d351f2a090bcec111513833e0f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adcc0dd3e0c762597e89720043440a0bd"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#adcc0dd3e0c762597e89720043440a0bd">~Weight</a> ()</td></tr>
<tr class="memdesc:adcc0dd3e0c762597e89720043440a0bd"><td class="mdescLeft"> </td><td class="mdescRight">Virtual destructor, because we have virtual methods. <a href="#adcc0dd3e0c762597e89720043440a0bd">More...</a><br /></td></tr>
<tr class="separator:adcc0dd3e0c762597e89720043440a0bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5663bb152f93f08dcc07e0b4a39ddbc3"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classXapian_1_1Weight.html">Weight</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a5663bb152f93f08dcc07e0b4a39ddbc3">clone</a> () const =0</td></tr>
<tr class="memdesc:a5663bb152f93f08dcc07e0b4a39ddbc3"><td class="mdescLeft"> </td><td class="mdescRight">Clone this object. <a href="#a5663bb152f93f08dcc07e0b4a39ddbc3">More...</a><br /></td></tr>
<tr class="separator:a5663bb152f93f08dcc07e0b4a39ddbc3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6106970d1a1e9600c9b32cc6ec96bf6b"><td class="memItemLeft" align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a6106970d1a1e9600c9b32cc6ec96bf6b">name</a> () const</td></tr>
<tr class="memdesc:a6106970d1a1e9600c9b32cc6ec96bf6b"><td class="mdescLeft"> </td><td class="mdescRight">Return the name of this weighting scheme. <a href="#a6106970d1a1e9600c9b32cc6ec96bf6b">More...</a><br /></td></tr>
<tr class="separator:a6106970d1a1e9600c9b32cc6ec96bf6b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5162368a30a0fc10d69359665b5d8e0e"><td class="memItemLeft" align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a5162368a30a0fc10d69359665b5d8e0e">serialise</a> () const</td></tr>
<tr class="memdesc:a5162368a30a0fc10d69359665b5d8e0e"><td class="mdescLeft"> </td><td class="mdescRight">Return this object's parameters serialised as a single string. <a href="#a5162368a30a0fc10d69359665b5d8e0e">More...</a><br /></td></tr>
<tr class="separator:a5162368a30a0fc10d69359665b5d8e0e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a61bf13e666fb72de2ccc150ce0c3310a"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classXapian_1_1Weight.html">Weight</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a61bf13e666fb72de2ccc150ce0c3310a">unserialise</a> (const std::string &serialised) const</td></tr>
<tr class="memdesc:a61bf13e666fb72de2ccc150ce0c3310a"><td class="mdescLeft"> </td><td class="mdescRight">Unserialise parameters. <a href="#a61bf13e666fb72de2ccc150ce0c3310a">More...</a><br /></td></tr>
<tr class="separator:a61bf13e666fb72de2ccc150ce0c3310a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6b60672542f4252fd000641a359107a1"><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a6b60672542f4252fd000641a359107a1">get_sumpart</a> (<a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> wdf, <a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> doclen, <a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> uniqterms) const =0</td></tr>
<tr class="memdesc:a6b60672542f4252fd000641a359107a1"><td class="mdescLeft"> </td><td class="mdescRight">Calculate the weight contribution for this object's term to a document. <a href="#a6b60672542f4252fd000641a359107a1">More...</a><br /></td></tr>
<tr class="separator:a6b60672542f4252fd000641a359107a1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a791cd50a4ab7f2c4f1d9786433033d79"><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a791cd50a4ab7f2c4f1d9786433033d79">get_maxpart</a> () const =0</td></tr>
<tr class="memdesc:a791cd50a4ab7f2c4f1d9786433033d79"><td class="mdescLeft"> </td><td class="mdescRight">Return an upper bound on what <a class="el" href="classXapian_1_1Weight.html#a6b60672542f4252fd000641a359107a1" title="Calculate the weight contribution for this object's term to a document. ">get_sumpart()</a> can return for any document. <a href="#a791cd50a4ab7f2c4f1d9786433033d79">More...</a><br /></td></tr>
<tr class="separator:a791cd50a4ab7f2c4f1d9786433033d79"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a77d87bf5be452399b7c9f72f3b41e5c0"><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a77d87bf5be452399b7c9f72f3b41e5c0">get_sumextra</a> (<a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> doclen, <a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> uniqterms) const =0</td></tr>
<tr class="memdesc:a77d87bf5be452399b7c9f72f3b41e5c0"><td class="mdescLeft"> </td><td class="mdescRight">Calculate the term-independent weight component for a document. <a href="#a77d87bf5be452399b7c9f72f3b41e5c0">More...</a><br /></td></tr>
<tr class="separator:a77d87bf5be452399b7c9f72f3b41e5c0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a019d010275b6e8130a4c5c746fdf32a1"><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a019d010275b6e8130a4c5c746fdf32a1">get_maxextra</a> () const =0</td></tr>
<tr class="memdesc:a019d010275b6e8130a4c5c746fdf32a1"><td class="mdescLeft"> </td><td class="mdescRight">Return an upper bound on what <a class="el" href="classXapian_1_1Weight.html#a77d87bf5be452399b7c9f72f3b41e5c0" title="Calculate the term-independent weight component for a document. ">get_sumextra()</a> can return for any document. <a href="#a019d010275b6e8130a4c5c746fdf32a1">More...</a><br /></td></tr>
<tr class="separator:a019d010275b6e8130a4c5c746fdf32a1"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-types"></a>
Protected Types</h2></td></tr>
<tr class="memitem:ae3c11f1d2d96a18e0eb9b9b31c5c5479"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479">stat_flags</a> { <br />
  <a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479abce4fe48f6f680644bd352acc937856e">COLLECTION_SIZE</a> = 1,
<a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479a632727fa617eec2dfa9ad19e6adcb926">RSET_SIZE</a> = 2,
<a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479a5ce8ff7822abec06e0f5ac956d7b247e">AVERAGE_LENGTH</a> = 4,
<a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479ab2b087be2c0ffd8a2ea214298156f99b">TERMFREQ</a> = 8,
<br />
  <a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479afd0979b74a0cf07991edc4af31ed55be">RELTERMFREQ</a> = 16,
<a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479a1a95530f6aa2ca909e4c1620aed8192b">QUERY_LENGTH</a> = 32,
<a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479ab383711f122cf1927e418dc94e8ed1a7">WQF</a> = 64,
<a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479afe84a106f8ec14c79acdfc29d9378aa2">WDF</a> = 128,
<br />
  <a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479a92ac55fbe32f39c3b4cdcab135ac0722">DOC_LENGTH</a> = 256,
<a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479ac9f88f7ca707347bcce2c1ad0abdf531">DOC_LENGTH_MIN</a> = 512,
<a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479a8f07b317ab1fca84d17cab78aa412e37">DOC_LENGTH_MAX</a> = 1024,
<a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479abe608cc5dc83deef0f35c13a69aa15dc">WDF_MAX</a> = 2048,
<br />
  <a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479ad923b48160007ce82f9db96f4f44c700">COLLECTION_FREQ</a> = 4096,
<a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479a429d945066f46ee1449e1be35f897bf2">UNIQUE_TERMS</a> = 8192
<br />
}<tr class="memdesc:ae3c11f1d2d96a18e0eb9b9b31c5c5479"><td class="mdescLeft"> </td><td class="mdescRight">Stats which the weighting scheme can use (see <em><a class="el" href="classXapian_1_1Weight.html#a77b1424d5f5a5b2d4848175979da6475" title="Tell Xapian that your subclass will want a particular statistic. ">need_stat()</a></em>). <a href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ae3c11f1d2d96a18e0eb9b9b31c5c5479"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a77b1424d5f5a5b2d4848175979da6475"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a77b1424d5f5a5b2d4848175979da6475">need_stat</a> (<a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479">stat_flags</a> flag)</td></tr>
<tr class="memdesc:a77b1424d5f5a5b2d4848175979da6475"><td class="mdescLeft"> </td><td class="mdescRight">Tell <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> that your subclass will want a particular statistic. <a href="#a77b1424d5f5a5b2d4848175979da6475">More...</a><br /></td></tr>
<tr class="separator:a77b1424d5f5a5b2d4848175979da6475"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a71cd77c24183e837313ec13d967ddf2c"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a71cd77c24183e837313ec13d967ddf2c">init</a> (double factor)=0</td></tr>
<tr class="memdesc:a71cd77c24183e837313ec13d967ddf2c"><td class="mdescLeft"> </td><td class="mdescRight">Allow the subclass to perform any initialisation it needs to. <a href="#a71cd77c24183e837313ec13d967ddf2c">More...</a><br /></td></tr>
<tr class="separator:a71cd77c24183e837313ec13d967ddf2c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa7acc105949dcb3b8b343a598dd01487"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#aa7acc105949dcb3b8b343a598dd01487">Weight</a> (const <a class="el" href="classXapian_1_1Weight.html">Weight</a> &)</td></tr>
<tr class="memdesc:aa7acc105949dcb3b8b343a598dd01487"><td class="mdescLeft"> </td><td class="mdescRight">Don't allow copying. <a href="#aa7acc105949dcb3b8b343a598dd01487">More...</a><br /></td></tr>
<tr class="separator:aa7acc105949dcb3b8b343a598dd01487"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa0c27dd474ebbf95c8b3247c2a49686f"><td class="memItemLeft" align="right" valign="top"><a id="aa0c27dd474ebbf95c8b3247c2a49686f"></a>
<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#aa0c27dd474ebbf95c8b3247c2a49686f">get_collection_size</a> () const</td></tr>
<tr class="memdesc:aa0c27dd474ebbf95c8b3247c2a49686f"><td class="mdescLeft"> </td><td class="mdescRight">The number of documents in the collection. <br /></td></tr>
<tr class="separator:aa0c27dd474ebbf95c8b3247c2a49686f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7d32c6eb63d262e27c8e06b6254dc2ae"><td class="memItemLeft" align="right" valign="top"><a id="a7d32c6eb63d262e27c8e06b6254dc2ae"></a>
<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a7d32c6eb63d262e27c8e06b6254dc2ae">get_rset_size</a> () const</td></tr>
<tr class="memdesc:a7d32c6eb63d262e27c8e06b6254dc2ae"><td class="mdescLeft"> </td><td class="mdescRight">The number of documents marked as relevant. <br /></td></tr>
<tr class="separator:a7d32c6eb63d262e27c8e06b6254dc2ae"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aac08743bb731357a46f58bc1c9dd8739"><td class="memItemLeft" align="right" valign="top"><a id="aac08743bb731357a46f58bc1c9dd8739"></a>
<a class="el" href="namespaceXapian.html#a63b13d3a36fcab9975658e32643d86b5">Xapian::doclength</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#aac08743bb731357a46f58bc1c9dd8739">get_average_length</a> () const</td></tr>
<tr class="memdesc:aac08743bb731357a46f58bc1c9dd8739"><td class="mdescLeft"> </td><td class="mdescRight">The average length of a document in the collection. <br /></td></tr>
<tr class="separator:aac08743bb731357a46f58bc1c9dd8739"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4e8361381e8111e5c0936bef91637d20"><td class="memItemLeft" align="right" valign="top"><a id="a4e8361381e8111e5c0936bef91637d20"></a>
<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a4e8361381e8111e5c0936bef91637d20">get_termfreq</a> () const</td></tr>
<tr class="memdesc:a4e8361381e8111e5c0936bef91637d20"><td class="mdescLeft"> </td><td class="mdescRight">The number of documents which this term indexes. <br /></td></tr>
<tr class="separator:a4e8361381e8111e5c0936bef91637d20"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a31d2eb808f1d13419c5148b334cdb702"><td class="memItemLeft" align="right" valign="top"><a id="a31d2eb808f1d13419c5148b334cdb702"></a>
<a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a31d2eb808f1d13419c5148b334cdb702">get_reltermfreq</a> () const</td></tr>
<tr class="memdesc:a31d2eb808f1d13419c5148b334cdb702"><td class="mdescLeft"> </td><td class="mdescRight">The number of relevant documents which this term indexes. <br /></td></tr>
<tr class="separator:a31d2eb808f1d13419c5148b334cdb702"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8b889fbca34923d6077b3d8e39d08cc9"><td class="memItemLeft" align="right" valign="top"><a id="a8b889fbca34923d6077b3d8e39d08cc9"></a>
<a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a8b889fbca34923d6077b3d8e39d08cc9">get_collection_freq</a> () const</td></tr>
<tr class="memdesc:a8b889fbca34923d6077b3d8e39d08cc9"><td class="mdescLeft"> </td><td class="mdescRight">The collection frequency of the term. <br /></td></tr>
<tr class="separator:a8b889fbca34923d6077b3d8e39d08cc9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0b1a15b14be112f56d1fea7557b39484"><td class="memItemLeft" align="right" valign="top"><a id="a0b1a15b14be112f56d1fea7557b39484"></a>
<a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a0b1a15b14be112f56d1fea7557b39484">get_query_length</a> () const</td></tr>
<tr class="memdesc:a0b1a15b14be112f56d1fea7557b39484"><td class="mdescLeft"> </td><td class="mdescRight">The length of the query. <br /></td></tr>
<tr class="separator:a0b1a15b14be112f56d1fea7557b39484"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a88dd563e37f13c30075159ad58682f88"><td class="memItemLeft" align="right" valign="top"><a id="a88dd563e37f13c30075159ad58682f88"></a>
<a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a88dd563e37f13c30075159ad58682f88">get_wqf</a> () const</td></tr>
<tr class="memdesc:a88dd563e37f13c30075159ad58682f88"><td class="mdescLeft"> </td><td class="mdescRight">The within-query-frequency of this term. <br /></td></tr>
<tr class="separator:a88dd563e37f13c30075159ad58682f88"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad26c71f5932cf020463a6566df03baa9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#ad26c71f5932cf020463a6566df03baa9">get_doclength_upper_bound</a> () const</td></tr>
<tr class="memdesc:ad26c71f5932cf020463a6566df03baa9"><td class="mdescLeft"> </td><td class="mdescRight">An upper bound on the maximum length of any document in the database. <a href="#ad26c71f5932cf020463a6566df03baa9">More...</a><br /></td></tr>
<tr class="separator:ad26c71f5932cf020463a6566df03baa9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a206b260ee9e90ebc5cc8de6f8fd6e2c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#a206b260ee9e90ebc5cc8de6f8fd6e2c5">get_doclength_lower_bound</a> () const</td></tr>
<tr class="memdesc:a206b260ee9e90ebc5cc8de6f8fd6e2c5"><td class="mdescLeft"> </td><td class="mdescRight">A lower bound on the minimum length of any document in the database. <a href="#a206b260ee9e90ebc5cc8de6f8fd6e2c5">More...</a><br /></td></tr>
<tr class="separator:a206b260ee9e90ebc5cc8de6f8fd6e2c5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aff00a44dc04eae5864de75f319889433"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Weight.html#aff00a44dc04eae5864de75f319889433">get_wdf_upper_bound</a> () const</td></tr>
<tr class="memdesc:aff00a44dc04eae5864de75f319889433"><td class="mdescLeft"> </td><td class="mdescRight">An upper bound on the wdf of this term. <a href="#aff00a44dc04eae5864de75f319889433">More...</a><br /></td></tr>
<tr class="separator:aff00a44dc04eae5864de75f319889433"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Abstract base class for weighting schemes. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3c11f1d2d96a18e0eb9b9b31c5c5479">◆ </a></span>stat_flags</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479">Xapian::Weight::stat_flags</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Stats which the weighting scheme can use (see <em><a class="el" href="classXapian_1_1Weight.html#a77b1424d5f5a5b2d4848175979da6475" title="Tell Xapian that your subclass will want a particular statistic. ">need_stat()</a></em>). </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479abce4fe48f6f680644bd352acc937856e"></a>COLLECTION_SIZE </td><td class="fielddoc"><p>Number of documents in the collection. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479a632727fa617eec2dfa9ad19e6adcb926"></a>RSET_SIZE </td><td class="fielddoc"><p>Number of documents in the <a class="el" href="classXapian_1_1RSet.html" title="A relevance set (R-Set). ">RSet</a>. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479a5ce8ff7822abec06e0f5ac956d7b247e"></a>AVERAGE_LENGTH </td><td class="fielddoc"><p>Average length of documents in the collection. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479ab2b087be2c0ffd8a2ea214298156f99b"></a>TERMFREQ </td><td class="fielddoc"><p>How many documents the current term is in. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479afd0979b74a0cf07991edc4af31ed55be"></a>RELTERMFREQ </td><td class="fielddoc"><p>How many documents in the <a class="el" href="classXapian_1_1RSet.html" title="A relevance set (R-Set). ">RSet</a> the current term is in. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479a1a95530f6aa2ca909e4c1620aed8192b"></a>QUERY_LENGTH </td><td class="fielddoc"><p>Sum of wqf for terms in the query. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479ab383711f122cf1927e418dc94e8ed1a7"></a>WQF </td><td class="fielddoc"><p>Within-query-frequency of the current term. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479afe84a106f8ec14c79acdfc29d9378aa2"></a>WDF </td><td class="fielddoc"><p>Within-document-frequency of the current term in the current document. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479a92ac55fbe32f39c3b4cdcab135ac0722"></a>DOC_LENGTH </td><td class="fielddoc"><p>Length of the current document (sum wdf). </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479ac9f88f7ca707347bcce2c1ad0abdf531"></a>DOC_LENGTH_MIN </td><td class="fielddoc"><p>Lower bound on (non-zero) document lengths. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479a8f07b317ab1fca84d17cab78aa412e37"></a>DOC_LENGTH_MAX </td><td class="fielddoc"><p>Upper bound on document lengths. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479abe608cc5dc83deef0f35c13a69aa15dc"></a>WDF_MAX </td><td class="fielddoc"><p>Upper bound on wdf. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479ad923b48160007ce82f9db96f4f44c700"></a>COLLECTION_FREQ </td><td class="fielddoc"><p>Sum of wdf over the whole collection for the current term. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae3c11f1d2d96a18e0eb9b9b31c5c5479a429d945066f46ee1449e1be35f897bf2"></a>UNIQUE_TERMS </td><td class="fielddoc"><p>Number of unique terms in the current document. </p>
</td></tr>
</table>
</div>
</div>
<a id="a3181bb7619bd560a3a2c21ece3213ce0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3181bb7619bd560a3a2c21ece3213ce0">◆ </a></span>type_smoothing</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classXapian_1_1Weight.html#a3181bb7619bd560a3a2c21ece3213ce0">Xapian::Weight::type_smoothing</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Type of smoothing to use with the Language Model Weighting scheme. </p>
<p>Default is TWO_STAGE_SMOOTHING. </p>
</div>
</div>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="adcc0dd3e0c762597e89720043440a0bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adcc0dd3e0c762597e89720043440a0bd">◆ </a></span>~Weight()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual Xapian::Weight::~Weight </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>Virtual destructor, because we have virtual methods. </p>
</div>
</div>
<a id="aa7acc105949dcb3b8b343a598dd01487"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7acc105949dcb3b8b343a598dd01487">◆ </a></span>Weight()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Xapian::Weight::Weight </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classXapian_1_1Weight.html">Weight</a> & </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Don't allow copying. </p>
<p>This would ideally be private, but that causes a compilation error with GCC 4.1 (which appears to be a bug). </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a5663bb152f93f08dcc07e0b4a39ddbc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5663bb152f93f08dcc07e0b4a39ddbc3">◆ </a></span>clone()</h2>
<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="classXapian_1_1Weight.html">Weight</a>* Xapian::Weight::clone </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Clone this object. </p>
<p>This method allocates and returns a copy of the object it is called on.</p>
<p>If your subclass is called FooWeight and has parameters a and b, then you would implement FooWeight::clone() like so:</p>
<p>FooWeight * FooWeight::clone() const { return new FooWeight(a, b); }</p>
<p>Note that the returned object will be deallocated by <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> after use with "delete". If you want to handle the deletion in a special way (for example when wrapping the <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> API for use from another language) then you can define a static <code>operator delete</code> method in your subclass as shown here: <a href="https://trac.xapian.org/ticket/554#comment:1">https://trac.xapian.org/ticket/554#comment:1</a> </p>
<p>Implemented in <a class="el" href="classXapian_1_1CoordWeight.html#a99a730e8ca6645800cfef8d1f04ecba0">Xapian::CoordWeight</a>.</p>
</div>
</div>
<a id="a206b260ee9e90ebc5cc8de6f8fd6e2c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a206b260ee9e90ebc5cc8de6f8fd6e2c5">◆ </a></span>get_doclength_lower_bound()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> Xapian::Weight::get_doclength_lower_bound </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>A lower bound on the minimum length of any document in the database. </p>
<p>This bound does not include any zero-length documents.</p>
<p>This should only be used by <a class="el" href="classXapian_1_1Weight.html#a791cd50a4ab7f2c4f1d9786433033d79" title="Return an upper bound on what get_sumpart() can return for any document. ">get_maxpart()</a> and <a class="el" href="classXapian_1_1Weight.html#a019d010275b6e8130a4c5c746fdf32a1" title="Return an upper bound on what get_sumextra() can return for any document. ">get_maxextra()</a>. </p>
</div>
</div>
<a id="ad26c71f5932cf020463a6566df03baa9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad26c71f5932cf020463a6566df03baa9">◆ </a></span>get_doclength_upper_bound()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> Xapian::Weight::get_doclength_upper_bound </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>An upper bound on the maximum length of any document in the database. </p>
<p>This should only be used by <a class="el" href="classXapian_1_1Weight.html#a791cd50a4ab7f2c4f1d9786433033d79" title="Return an upper bound on what get_sumpart() can return for any document. ">get_maxpart()</a> and <a class="el" href="classXapian_1_1Weight.html#a019d010275b6e8130a4c5c746fdf32a1" title="Return an upper bound on what get_sumextra() can return for any document. ">get_maxextra()</a>. </p>
</div>
</div>
<a id="a019d010275b6e8130a4c5c746fdf32a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a019d010275b6e8130a4c5c746fdf32a1">◆ </a></span>get_maxextra()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual double Xapian::Weight::get_maxextra </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return an upper bound on what <a class="el" href="classXapian_1_1Weight.html#a77d87bf5be452399b7c9f72f3b41e5c0" title="Calculate the term-independent weight component for a document. ">get_sumextra()</a> can return for any document. </p>
<p>This information is used by the matcher to perform various optimisations, so strive to make the bound as tight as possible. </p>
<p>Implemented in <a class="el" href="classXapian_1_1CoordWeight.html#a3acbd3b7059c49c9cc982b33a19025c4">Xapian::CoordWeight</a>, <a class="el" href="classXapian_1_1LMWeight.html#a5fc3fa43cd95a418ceefc7fa01f50d9b">Xapian::LMWeight</a>, <a class="el" href="classXapian_1_1DPHWeight.html#ad104f3cb046ee4e78f89f66a1712a526">Xapian::DPHWeight</a>, <a class="el" href="classXapian_1_1PL2PlusWeight.html#abdac1ec6592ba025c3636410757f2747">Xapian::PL2PlusWeight</a>, <a class="el" href="classXapian_1_1PL2Weight.html#a673779be517e69ed764e3906977f899e">Xapian::PL2Weight</a>, <a class="el" href="classXapian_1_1DLHWeight.html#a774a5fa1cae3c3213c2a9708880d26f4">Xapian::DLHWeight</a>, <a class="el" href="classXapian_1_1BB2Weight.html#af93fd924084e5f1114498217284e649d">Xapian::BB2Weight</a>, <a class="el" href="classXapian_1_1IneB2Weight.html#a545d4308063949cbe1d36435ae404c1a">Xapian::IneB2Weight</a>, <a class="el" href="classXapian_1_1IfB2Weight.html#a6864001e411a5ea55c7a1601f5edd515">Xapian::IfB2Weight</a>, <a class="el" href="classXapian_1_1InL2Weight.html#a8afee9cc8b6d72ec2d7d3175cb8f61ba">Xapian::InL2Weight</a>, <a class="el" href="classXapian_1_1TradWeight.html#ad4158b46dfba942d6c928d0c1fee5c3f">Xapian::TradWeight</a>, <a class="el" href="classXapian_1_1BM25PlusWeight.html#ab326326a2a50cc91e066ad83cdf507eb">Xapian::BM25PlusWeight</a>, <a class="el" href="classXapian_1_1BM25Weight.html#a80712e2dc49bd5669b20c86c52b47307">Xapian::BM25Weight</a>, <a class="el" href="classXapian_1_1TfIdfWeight.html#af0bb215e6e60a771066f20298cd2529c">Xapian::TfIdfWeight</a>, and <a class="el" href="classXapian_1_1BoolWeight.html#af3cab034200cdb7f410cef2a8bb5d9a0">Xapian::BoolWeight</a>.</p>
</div>
</div>
<a id="a791cd50a4ab7f2c4f1d9786433033d79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a791cd50a4ab7f2c4f1d9786433033d79">◆ </a></span>get_maxpart()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual double Xapian::Weight::get_maxpart </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return an upper bound on what <a class="el" href="classXapian_1_1Weight.html#a6b60672542f4252fd000641a359107a1" title="Calculate the weight contribution for this object's term to a document. ">get_sumpart()</a> can return for any document. </p>
<p>This information is used by the matcher to perform various optimisations, so strive to make the bound as tight as possible. </p>
<p>Implemented in <a class="el" href="classXapian_1_1CoordWeight.html#ae1bffa1da1809b3d61c59ccca76b79d4">Xapian::CoordWeight</a>, <a class="el" href="classXapian_1_1LMWeight.html#a9247cd3ce88149f29841fdcf1744a2b1">Xapian::LMWeight</a>, <a class="el" href="classXapian_1_1DPHWeight.html#aa1109657e8096c2d42f623e3f10fa63b">Xapian::DPHWeight</a>, <a class="el" href="classXapian_1_1PL2PlusWeight.html#a35409d11a6f882f12255ba335e9c4261">Xapian::PL2PlusWeight</a>, <a class="el" href="classXapian_1_1PL2Weight.html#aed14b2badee8668e0d11b3d2702cf099">Xapian::PL2Weight</a>, <a class="el" href="classXapian_1_1DLHWeight.html#ac72efe80f1f498295004581083bbf805">Xapian::DLHWeight</a>, <a class="el" href="classXapian_1_1BB2Weight.html#a45de27d300acb87ebc33e87f579292f1">Xapian::BB2Weight</a>, <a class="el" href="classXapian_1_1IneB2Weight.html#a92e94b33703d0a19e04fc4d928900ef7">Xapian::IneB2Weight</a>, <a class="el" href="classXapian_1_1IfB2Weight.html#a8980831136104445cf4fb2f9b2500d5f">Xapian::IfB2Weight</a>, <a class="el" href="classXapian_1_1InL2Weight.html#a7b4efb816640a588718f62f15ed73c80">Xapian::InL2Weight</a>, <a class="el" href="classXapian_1_1TradWeight.html#a7279ea46b93f20519979559c040186b9">Xapian::TradWeight</a>, <a class="el" href="classXapian_1_1BM25PlusWeight.html#aa31188c0036ccaf9a0c00556a8dfb8bb">Xapian::BM25PlusWeight</a>, <a class="el" href="classXapian_1_1BM25Weight.html#a2e479a60835ed5242f70bb33b3822462">Xapian::BM25Weight</a>, <a class="el" href="classXapian_1_1TfIdfWeight.html#a361ae444e2b42d667a3fdd855926f3e3">Xapian::TfIdfWeight</a>, and <a class="el" href="classXapian_1_1BoolWeight.html#aedc104db9d7c80d9eea7da0c65bd8ff3">Xapian::BoolWeight</a>.</p>
</div>
</div>
<a id="a77d87bf5be452399b7c9f72f3b41e5c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77d87bf5be452399b7c9f72f3b41e5c0">◆ </a></span>get_sumextra()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual double Xapian::Weight::get_sumextra </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> </td>
<td class="paramname"><em>doclen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> </td>
<td class="paramname"><em>uniqterms</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculate the term-independent weight component for a document. </p>
<p>The parameter gives information about the document which may be used in the calculations:</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">doclen</td><td>The document's length (unnormalised). </td></tr>
<tr><td class="paramname">uniqterms</td><td>The number of unique terms in the document. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classXapian_1_1CoordWeight.html#a4c4f09315989bf21fb7176929b10492d">Xapian::CoordWeight</a>, <a class="el" href="classXapian_1_1LMWeight.html#ab22425728aad1ffbf0d19a2d99064b92">Xapian::LMWeight</a>, <a class="el" href="classXapian_1_1DPHWeight.html#a579c1c159fbce83d0b83e45faede2d6f">Xapian::DPHWeight</a>, <a class="el" href="classXapian_1_1PL2PlusWeight.html#aacd38b642ea498b44310c8ac8d4cb3cf">Xapian::PL2PlusWeight</a>, <a class="el" href="classXapian_1_1PL2Weight.html#a0c829d93710e5b553778af942acdfe61">Xapian::PL2Weight</a>, <a class="el" href="classXapian_1_1DLHWeight.html#a066c237b703c4ede04722e389cca618b">Xapian::DLHWeight</a>, <a class="el" href="classXapian_1_1BB2Weight.html#acb066851e13883766cb3da7c7c5de06a">Xapian::BB2Weight</a>, <a class="el" href="classXapian_1_1IneB2Weight.html#a650e39a120fa64d76858fe9f38b43048">Xapian::IneB2Weight</a>, <a class="el" href="classXapian_1_1IfB2Weight.html#a564cbbd42dcae2666347d4871daa4a66">Xapian::IfB2Weight</a>, <a class="el" href="classXapian_1_1InL2Weight.html#a744ba9657c53fbf870c2c390fe9e5e7d">Xapian::InL2Weight</a>, <a class="el" href="classXapian_1_1TradWeight.html#a19ba54115378d41681ae590ce6781d0e">Xapian::TradWeight</a>, <a class="el" href="classXapian_1_1BM25PlusWeight.html#a61ead2c8f139895fc69c10f2c9952e59">Xapian::BM25PlusWeight</a>, <a class="el" href="classXapian_1_1BM25Weight.html#a25ce3f7cf862c6c1c80dbebe67c0024a">Xapian::BM25Weight</a>, <a class="el" href="classXapian_1_1TfIdfWeight.html#a07a0fc39ac9af19c9f4215c669a2b63e">Xapian::TfIdfWeight</a>, and <a class="el" href="classXapian_1_1BoolWeight.html#add3d75e416ae31f88759dabd1557fb3a">Xapian::BoolWeight</a>.</p>
</div>
</div>
<a id="a6b60672542f4252fd000641a359107a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b60672542f4252fd000641a359107a1">◆ </a></span>get_sumpart()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual double Xapian::Weight::get_sumpart </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> </td>
<td class="paramname"><em>wdf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> </td>
<td class="paramname"><em>doclen</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> </td>
<td class="paramname"><em>uniqterms</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculate the weight contribution for this object's term to a document. </p>
<p>The parameters give information about the document which may be used in the calculations:</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">wdf</td><td>The within document frequency of the term in the document. </td></tr>
<tr><td class="paramname">doclen</td><td>The document's length (unnormalised). </td></tr>
<tr><td class="paramname">uniqterms</td><td>Number of unique terms in the document (used for absolute smoothing). </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classXapian_1_1CoordWeight.html#a2506a943101414aebef65478215a8047">Xapian::CoordWeight</a>, <a class="el" href="classXapian_1_1LMWeight.html#a8553032ac2fc305eae51f50ad24718f9">Xapian::LMWeight</a>, <a class="el" href="classXapian_1_1DPHWeight.html#afa33e831a5a8ce061339e6ea22a7062a">Xapian::DPHWeight</a>, <a class="el" href="classXapian_1_1PL2PlusWeight.html#a9c26ec6866d3878d5f408bc9627799d8">Xapian::PL2PlusWeight</a>, <a class="el" href="classXapian_1_1PL2Weight.html#a855a9e7d2dc0ae05c7531ed5bf407040">Xapian::PL2Weight</a>, <a class="el" href="classXapian_1_1DLHWeight.html#a345ad4130fe166bbdfd98e4aaa9679c4">Xapian::DLHWeight</a>, <a class="el" href="classXapian_1_1BB2Weight.html#ac6ad79b696b1cead49ea988680bd8df9">Xapian::BB2Weight</a>, <a class="el" href="classXapian_1_1IneB2Weight.html#ad04017eddbe3216d75e3165d9a48a52d">Xapian::IneB2Weight</a>, <a class="el" href="classXapian_1_1IfB2Weight.html#a15e690a8a767a5710de54526fa0d7090">Xapian::IfB2Weight</a>, <a class="el" href="classXapian_1_1InL2Weight.html#a69d36f15a85dfe6a40b21ae61ebc0643">Xapian::InL2Weight</a>, <a class="el" href="classXapian_1_1TradWeight.html#a07873ee01829db7da83ec8cf407f2396">Xapian::TradWeight</a>, <a class="el" href="classXapian_1_1BM25PlusWeight.html#aa38b5f0fc4dbf45eb876ca3552dc7871">Xapian::BM25PlusWeight</a>, <a class="el" href="classXapian_1_1BM25Weight.html#a57c10e8b9da01ad043e5519b8f01f23f">Xapian::BM25Weight</a>, <a class="el" href="classXapian_1_1TfIdfWeight.html#af2f13bf691af0320cbb2047d4e590582">Xapian::TfIdfWeight</a>, and <a class="el" href="classXapian_1_1BoolWeight.html#a1d675d43eb085751e5f5b760a664a3ef">Xapian::BoolWeight</a>.</p>
</div>
</div>
<a id="aff00a44dc04eae5864de75f319889433"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff00a44dc04eae5864de75f319889433">◆ </a></span>get_wdf_upper_bound()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> Xapian::Weight::get_wdf_upper_bound </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>An upper bound on the wdf of this term. </p>
<p>This should only be used by <a class="el" href="classXapian_1_1Weight.html#a791cd50a4ab7f2c4f1d9786433033d79" title="Return an upper bound on what get_sumpart() can return for any document. ">get_maxpart()</a> and <a class="el" href="classXapian_1_1Weight.html#a019d010275b6e8130a4c5c746fdf32a1" title="Return an upper bound on what get_sumextra() can return for any document. ">get_maxextra()</a>. </p>
</div>
</div>
<a id="a71cd77c24183e837313ec13d967ddf2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71cd77c24183e837313ec13d967ddf2c">◆ </a></span>init()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Xapian::Weight::init </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>factor</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Allow the subclass to perform any initialisation it needs to. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">factor</td><td>Any scaling factor (e.g. from OP_SCALE_WEIGHT). If the <a class="el" href="classXapian_1_1Weight.html" title="Abstract base class for weighting schemes. ">Weight</a> object is for the term-independent weight supplied by <a class="el" href="classXapian_1_1Weight.html#a77d87bf5be452399b7c9f72f3b41e5c0" title="Calculate the term-independent weight component for a document. ">get_sumextra()</a>/get_maxextra(), then init(0.0) is called (starting from <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> 1.2.11 and 1.3.1 - earlier versions failed to call <a class="el" href="classXapian_1_1Weight.html#a71cd77c24183e837313ec13d967ddf2c" title="Allow the subclass to perform any initialisation it needs to. ">init()</a> for such <a class="el" href="classXapian_1_1Weight.html" title="Abstract base class for weighting schemes. ">Weight</a> objects). </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classXapian_1_1CoordWeight.html#a9be9a0bbf23d57dfc7c855ccb68f2bb5">Xapian::CoordWeight</a>.</p>
</div>
</div>
<a id="a6106970d1a1e9600c9b32cc6ec96bf6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6106970d1a1e9600c9b32cc6ec96bf6b">◆ </a></span>name()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual std::string Xapian::Weight::name </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</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>Return the name of this weighting scheme. </p>
<p>This name is used by the remote backend. It is passed along with the serialised parameters to the remote server so that it knows which class to create.</p>
<p>Return the full namespace-qualified name of your class here - if your class is called FooWeight, return "FooWeight" from this method (<a class="el" href="classXapian_1_1BM25Weight.html" title="Xapian::Weight subclass implementing the BM25 probabilistic formula. ">Xapian::BM25Weight</a> returns "Xapian::BM25Weight" here).</p>
<p>If you don't want to support the remote backend, you can use the default implementation which simply returns an empty string. </p>
<p>Reimplemented in <a class="el" href="classXapian_1_1CoordWeight.html#ad2a7fe941bd121f8a0905fc48b3ad4fd">Xapian::CoordWeight</a>, <a class="el" href="classXapian_1_1LMWeight.html#ac8bf794fc17edcff5513f3e2237ab1bb">Xapian::LMWeight</a>, <a class="el" href="classXapian_1_1DPHWeight.html#ab54bc48dd09f0572cafe4f2c75910bcd">Xapian::DPHWeight</a>, <a class="el" href="classXapian_1_1PL2PlusWeight.html#ac86eb422d8b88370f1bb1be811d5819b">Xapian::PL2PlusWeight</a>, <a class="el" href="classXapian_1_1PL2Weight.html#a809de45e643525e2dfa2c3d2d1e762bf">Xapian::PL2Weight</a>, <a class="el" href="classXapian_1_1DLHWeight.html#a2b5c9ca06a1c5277922f86ffa42a187c">Xapian::DLHWeight</a>, <a class="el" href="classXapian_1_1BB2Weight.html#a1a0954b1b48b5ea02a84c502e3e72836">Xapian::BB2Weight</a>, <a class="el" href="classXapian_1_1IneB2Weight.html#a28df82b3ec592a2f5fcad53b5785893e">Xapian::IneB2Weight</a>, <a class="el" href="classXapian_1_1IfB2Weight.html#ae050e02675753f52b1fc34069897d7d8">Xapian::IfB2Weight</a>, <a class="el" href="classXapian_1_1InL2Weight.html#a67c270ec72766cda01d953de91b7a8f2">Xapian::InL2Weight</a>, <a class="el" href="classXapian_1_1TradWeight.html#a3a193ffd7b50d8552bc83f26d72c913c">Xapian::TradWeight</a>, <a class="el" href="classXapian_1_1BM25PlusWeight.html#a456922fa3c01a6dcdca7c2d283786141">Xapian::BM25PlusWeight</a>, <a class="el" href="classXapian_1_1BM25Weight.html#a99e5a062caae46af83dd184fc531fedd">Xapian::BM25Weight</a>, <a class="el" href="classXapian_1_1TfIdfWeight.html#a5e64d2e2341805c1e7370de67ddeceec">Xapian::TfIdfWeight</a>, and <a class="el" href="classXapian_1_1BoolWeight.html#ad3bdc683dd2bab7eba190b27177c154e">Xapian::BoolWeight</a>.</p>
</div>
</div>
<a id="a77b1424d5f5a5b2d4848175979da6475"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77b1424d5f5a5b2d4848175979da6475">◆ </a></span>need_stat()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Xapian::Weight::need_stat </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classXapian_1_1Weight.html#ae3c11f1d2d96a18e0eb9b9b31c5c5479">stat_flags</a> </td>
<td class="paramname"><em>flag</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Tell <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> that your subclass will want a particular statistic. </p>
<p>Some of the statistics can be costly to fetch or calculate, so <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> needs to know which are actually going to be used. You should call <a class="el" href="classXapian_1_1Weight.html#a77b1424d5f5a5b2d4848175979da6475" title="Tell Xapian that your subclass will want a particular statistic. ">need_stat()</a> from your constructor for each such statistic.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">flag</td><td>The stat_flags value for a required statistic. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a5162368a30a0fc10d69359665b5d8e0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5162368a30a0fc10d69359665b5d8e0e">◆ </a></span>serialise()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual std::string Xapian::Weight::serialise </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</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>Return this object's parameters serialised as a single string. </p>
<p>If you don't want to support the remote backend, you can use the default implementation which simply throws <a class="el" href="classXapian_1_1UnimplementedError.html" title="UnimplementedError indicates an attempt to use an unimplemented feature. ">Xapian::UnimplementedError</a>. </p>
<p>Reimplemented in <a class="el" href="classXapian_1_1CoordWeight.html#a83a93c1f2f564351d6441edd3fe9044d">Xapian::CoordWeight</a>, <a class="el" href="classXapian_1_1LMWeight.html#aee4755b8d116f0aa4272a06be9198738">Xapian::LMWeight</a>, <a class="el" href="classXapian_1_1DPHWeight.html#af3fb03e53a75b9432f06aa137e1cfe87">Xapian::DPHWeight</a>, <a class="el" href="classXapian_1_1PL2PlusWeight.html#ad898cc39b2e53afde6eacf229cfaa707">Xapian::PL2PlusWeight</a>, <a class="el" href="classXapian_1_1PL2Weight.html#a8060073fd9d314dbff9f18731b079f2e">Xapian::PL2Weight</a>, <a class="el" href="classXapian_1_1DLHWeight.html#aa46e4fbaa8c0c3761393e0a5e194ee48">Xapian::DLHWeight</a>, <a class="el" href="classXapian_1_1BB2Weight.html#a0e4b218afe0ea5da3347110ac11fc3f5">Xapian::BB2Weight</a>, <a class="el" href="classXapian_1_1IneB2Weight.html#a93a95a0e0cfd4129847b0c598ab7c744">Xapian::IneB2Weight</a>, <a class="el" href="classXapian_1_1IfB2Weight.html#a7518be701077144708e5c24b1ffa8923">Xapian::IfB2Weight</a>, <a class="el" href="classXapian_1_1InL2Weight.html#a91b19cd9fe25ddf7d147031f00f12313">Xapian::InL2Weight</a>, <a class="el" href="classXapian_1_1TradWeight.html#ab1c7d1f0a9277bad2b334def4fe21f83">Xapian::TradWeight</a>, <a class="el" href="classXapian_1_1BM25PlusWeight.html#a637b5ea25f921f36dfb8b36aafb407b4">Xapian::BM25PlusWeight</a>, <a class="el" href="classXapian_1_1BM25Weight.html#ab503b86e545c40ac97cf00c174770dd4">Xapian::BM25Weight</a>, <a class="el" href="classXapian_1_1TfIdfWeight.html#aa64d21f95f38fc19b49a7f6a5ac3cb95">Xapian::TfIdfWeight</a>, and <a class="el" href="classXapian_1_1BoolWeight.html#ab34268c0dffd820f89f65c556b94c159">Xapian::BoolWeight</a>.</p>
</div>
</div>
<a id="a61bf13e666fb72de2ccc150ce0c3310a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61bf13e666fb72de2ccc150ce0c3310a">◆ </a></span>unserialise()</h2>
<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="classXapian_1_1Weight.html">Weight</a>* Xapian::Weight::unserialise </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>serialised</em></td><td>)</td>
<td> const</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>Unserialise parameters. </p>
<p>This method unserialises parameters serialised by the <em><a class="el" href="classXapian_1_1Weight.html#a5162368a30a0fc10d69359665b5d8e0e" title="Return this object's parameters serialised as a single string. ">serialise()</a></em> method and allocates and returns a new object initialised with them.</p>
<p>If you don't want to support the remote backend, you can use the default implementation which simply throws <a class="el" href="classXapian_1_1UnimplementedError.html" title="UnimplementedError indicates an attempt to use an unimplemented feature. ">Xapian::UnimplementedError</a>.</p>
<p>Note that the returned object will be deallocated by <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> after use with "delete". If you want to handle the deletion in a special way (for example when wrapping the <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> API for use from another language) then you can define a static <code>operator delete</code> method in your subclass as shown here: <a href="https://trac.xapian.org/ticket/554#comment:1">https://trac.xapian.org/ticket/554#comment:1</a></p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">serialised</td><td>A string containing the serialised parameters. </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented in <a class="el" href="classXapian_1_1CoordWeight.html#acb749043fef63989b718303ded8eb5e4">Xapian::CoordWeight</a>, <a class="el" href="classXapian_1_1LMWeight.html#ab139806107e326f665b50bbd9820d02b">Xapian::LMWeight</a>, <a class="el" href="classXapian_1_1DPHWeight.html#ad489e634ccf070a167d62c4f91686080">Xapian::DPHWeight</a>, <a class="el" href="classXapian_1_1PL2PlusWeight.html#a706299a20d8dcc63b8f0f6704dafd5d5">Xapian::PL2PlusWeight</a>, <a class="el" href="classXapian_1_1PL2Weight.html#ae029f0cbf0852dcba18c18302c651b5e">Xapian::PL2Weight</a>, <a class="el" href="classXapian_1_1DLHWeight.html#ac36d872262863911bc967a15a7dfe276">Xapian::DLHWeight</a>, <a class="el" href="classXapian_1_1BB2Weight.html#a7e0493c347bbb7e1661daf5a88423f73">Xapian::BB2Weight</a>, <a class="el" href="classXapian_1_1IneB2Weight.html#a365ce6c8f05c7fb61c9f2eabcf87810d">Xapian::IneB2Weight</a>, <a class="el" href="classXapian_1_1IfB2Weight.html#a940faaf550ca090d8fdd742d063d9397">Xapian::IfB2Weight</a>, <a class="el" href="classXapian_1_1InL2Weight.html#a2657ece33c999fdc6e60cb8c28567a65">Xapian::InL2Weight</a>, <a class="el" href="classXapian_1_1TradWeight.html#a86b2a408c58a4a5a678273a553c1b0a1">Xapian::TradWeight</a>, <a class="el" href="classXapian_1_1BM25PlusWeight.html#a0ef93c4b2091371f9f6fa9e319943916">Xapian::BM25PlusWeight</a>, <a class="el" href="classXapian_1_1BM25Weight.html#a699c03da0b3bb4c0952f40119586ef3b">Xapian::BM25Weight</a>, <a class="el" href="classXapian_1_1TfIdfWeight.html#a1cf72daa110ca6c361a49f8a759b6e9e">Xapian::TfIdfWeight</a>, and <a class="el" href="classXapian_1_1BoolWeight.html#a6932677937b1a78d174aa48287d89d19">Xapian::BoolWeight</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>xapian/<a class="el" href="weight_8h.html">weight.h</a></li>
</ul>
</div><!-- contents -->
<hr>
<address><small>
Documentation for Xapian (version 1.4.3).<br>
Generated on Wed Jan 25 2017 by
<a href="http://www.doxygen.org/">Doxygen 1.8.13</a>.
</small></address>
</body>
</html>
|