File: classXapian_1_1Document.html

package info (click to toggle)
xapian-core 1.4.18-3%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 22,416 kB
  • sloc: cpp: 91,787; ansic: 9,970; sh: 4,794; perl: 850; makefile: 503; tcl: 319; javascript: 249; python: 40
file content (658 lines) | stat: -rw-r--r-- 45,406 bytes parent folder | download
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Xapian: API Documentation: Xapian::Document Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">xapian-core
   &#160;<span id="projectnumber">1.4.18</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</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_1Document.html">Document</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classXapian_1_1Document-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Xapian::Document Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A handle representing a document in a <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> database.  
 <a href="classXapian_1_1Document.html#details">More...</a></p>
<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:a27316171adc74325e42d5e88b004e189"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a27316171adc74325e42d5e88b004e189">Document</a> (const <a class="el" href="classXapian_1_1Document.html">Document</a> &amp;other)</td></tr>
<tr class="memdesc:a27316171adc74325e42d5e88b004e189"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copying is allowed.  <a href="classXapian_1_1Document.html#a27316171adc74325e42d5e88b004e189">More...</a><br /></td></tr>
<tr class="separator:a27316171adc74325e42d5e88b004e189"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a470144b154e9a7ec40b0875a8d636b9b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a470144b154e9a7ec40b0875a8d636b9b">operator=</a> (const <a class="el" href="classXapian_1_1Document.html">Document</a> &amp;other)</td></tr>
<tr class="memdesc:a470144b154e9a7ec40b0875a8d636b9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment is allowed.  <a href="classXapian_1_1Document.html#a470144b154e9a7ec40b0875a8d636b9b">More...</a><br /></td></tr>
<tr class="separator:a470144b154e9a7ec40b0875a8d636b9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae75d6c6a48b1cfed5b85189cb766531b"><td class="memItemLeft" align="right" valign="top"><a id="ae75d6c6a48b1cfed5b85189cb766531b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#ae75d6c6a48b1cfed5b85189cb766531b">Document</a> ()</td></tr>
<tr class="memdesc:ae75d6c6a48b1cfed5b85189cb766531b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Make a new empty <a class="el" href="classXapian_1_1Document.html" title="A handle representing a document in a Xapian database.">Document</a>. <br /></td></tr>
<tr class="separator:ae75d6c6a48b1cfed5b85189cb766531b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a943a905545bd862dbc7281e6d66e5ee4"><td class="memItemLeft" align="right" valign="top"><a id="a943a905545bd862dbc7281e6d66e5ee4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a943a905545bd862dbc7281e6d66e5ee4">~Document</a> ()</td></tr>
<tr class="memdesc:a943a905545bd862dbc7281e6d66e5ee4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a943a905545bd862dbc7281e6d66e5ee4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a958c6063c67eae8b78242baa461b6389"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a958c6063c67eae8b78242baa461b6389">get_value</a> (<a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a> slot) const</td></tr>
<tr class="memdesc:a958c6063c67eae8b78242baa461b6389"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get value by number.  <a href="classXapian_1_1Document.html#a958c6063c67eae8b78242baa461b6389">More...</a><br /></td></tr>
<tr class="separator:a958c6063c67eae8b78242baa461b6389"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12857fccd3448ec1db91311c16d67f6c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a12857fccd3448ec1db91311c16d67f6c">add_value</a> (<a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a> slot, const std::string &amp;value)</td></tr>
<tr class="memdesc:a12857fccd3448ec1db91311c16d67f6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a new value.  <a href="classXapian_1_1Document.html#a12857fccd3448ec1db91311c16d67f6c">More...</a><br /></td></tr>
<tr class="separator:a12857fccd3448ec1db91311c16d67f6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ffd0e3d1beb8f047b3158a5e5aa41d4"><td class="memItemLeft" align="right" valign="top"><a id="a6ffd0e3d1beb8f047b3158a5e5aa41d4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a6ffd0e3d1beb8f047b3158a5e5aa41d4">remove_value</a> (<a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a> slot)</td></tr>
<tr class="memdesc:a6ffd0e3d1beb8f047b3158a5e5aa41d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove any value with the given number. <br /></td></tr>
<tr class="separator:a6ffd0e3d1beb8f047b3158a5e5aa41d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99f8cb1deeab46df42fed52ea4f55eb9"><td class="memItemLeft" align="right" valign="top"><a id="a99f8cb1deeab46df42fed52ea4f55eb9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a99f8cb1deeab46df42fed52ea4f55eb9">clear_values</a> ()</td></tr>
<tr class="memdesc:a99f8cb1deeab46df42fed52ea4f55eb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove all values associated with the document. <br /></td></tr>
<tr class="separator:a99f8cb1deeab46df42fed52ea4f55eb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac72a216225acb299b73c1f6c8800ddce"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#ac72a216225acb299b73c1f6c8800ddce">get_data</a> () const</td></tr>
<tr class="memdesc:ac72a216225acb299b73c1f6c8800ddce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get data stored in the document.  <a href="classXapian_1_1Document.html#ac72a216225acb299b73c1f6c8800ddce">More...</a><br /></td></tr>
<tr class="separator:ac72a216225acb299b73c1f6c8800ddce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1b0da2e7c76acd754f29a52e14f89ae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#ab1b0da2e7c76acd754f29a52e14f89ae">set_data</a> (const std::string &amp;data)</td></tr>
<tr class="memdesc:ab1b0da2e7c76acd754f29a52e14f89ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set data stored in the document.  <a href="classXapian_1_1Document.html#ab1b0da2e7c76acd754f29a52e14f89ae">More...</a><br /></td></tr>
<tr class="separator:ab1b0da2e7c76acd754f29a52e14f89ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a161943bb133fea0da4a21fa37621764b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a161943bb133fea0da4a21fa37621764b">add_posting</a> (const std::string &amp;tname, <a class="el" href="namespaceXapian.html#ae1faeb9bd109b4d78a02d4b5f7b123ed">Xapian::termpos</a> tpos, <a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> wdfinc=1)</td></tr>
<tr class="memdesc:a161943bb133fea0da4a21fa37621764b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an occurrence of a term at a particular position.  <a href="classXapian_1_1Document.html#a161943bb133fea0da4a21fa37621764b">More...</a><br /></td></tr>
<tr class="separator:a161943bb133fea0da4a21fa37621764b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a730bb59dda98f19c61fe67360f0adb3a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a730bb59dda98f19c61fe67360f0adb3a">add_term</a> (const std::string &amp;tname, <a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> wdfinc=1)</td></tr>
<tr class="memdesc:a730bb59dda98f19c61fe67360f0adb3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a term to the document, without positional information.  <a href="classXapian_1_1Document.html#a730bb59dda98f19c61fe67360f0adb3a">More...</a><br /></td></tr>
<tr class="separator:a730bb59dda98f19c61fe67360f0adb3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5dcc3df00ccb9ab3a8dee594f603d299"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a5dcc3df00ccb9ab3a8dee594f603d299">add_boolean_term</a> (const std::string &amp;term)</td></tr>
<tr class="memdesc:a5dcc3df00ccb9ab3a8dee594f603d299"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a boolean filter term to the document.  <a href="classXapian_1_1Document.html#a5dcc3df00ccb9ab3a8dee594f603d299">More...</a><br /></td></tr>
<tr class="separator:a5dcc3df00ccb9ab3a8dee594f603d299"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11eec629737e496a7077b87f763967a5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a11eec629737e496a7077b87f763967a5">remove_posting</a> (const std::string &amp;tname, <a class="el" href="namespaceXapian.html#ae1faeb9bd109b4d78a02d4b5f7b123ed">Xapian::termpos</a> tpos, <a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> wdfdec=1)</td></tr>
<tr class="memdesc:a11eec629737e496a7077b87f763967a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove a posting of a term from the document.  <a href="classXapian_1_1Document.html#a11eec629737e496a7077b87f763967a5">More...</a><br /></td></tr>
<tr class="separator:a11eec629737e496a7077b87f763967a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40ef21aa8a3664612bf1792b9fbad207"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#ae1faeb9bd109b4d78a02d4b5f7b123ed">Xapian::termpos</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a40ef21aa8a3664612bf1792b9fbad207">remove_postings</a> (const std::string &amp;term, <a class="el" href="namespaceXapian.html#ae1faeb9bd109b4d78a02d4b5f7b123ed">Xapian::termpos</a> term_pos_first, <a class="el" href="namespaceXapian.html#ae1faeb9bd109b4d78a02d4b5f7b123ed">Xapian::termpos</a> term_pos_last, <a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> wdf_dec=1)</td></tr>
<tr class="memdesc:a40ef21aa8a3664612bf1792b9fbad207"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove a range of postings for a term.  <a href="classXapian_1_1Document.html#a40ef21aa8a3664612bf1792b9fbad207">More...</a><br /></td></tr>
<tr class="separator:a40ef21aa8a3664612bf1792b9fbad207"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01e5b7bf54fdee77a978c3b5f1b007ba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a01e5b7bf54fdee77a978c3b5f1b007ba">remove_term</a> (const std::string &amp;tname)</td></tr>
<tr class="memdesc:a01e5b7bf54fdee77a978c3b5f1b007ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove a term and all postings associated with it.  <a href="classXapian_1_1Document.html#a01e5b7bf54fdee77a978c3b5f1b007ba">More...</a><br /></td></tr>
<tr class="separator:a01e5b7bf54fdee77a978c3b5f1b007ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0bd9e001ffd29b0678938522d4e37e5"><td class="memItemLeft" align="right" valign="top"><a id="aa0bd9e001ffd29b0678938522d4e37e5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#aa0bd9e001ffd29b0678938522d4e37e5">clear_terms</a> ()</td></tr>
<tr class="memdesc:aa0bd9e001ffd29b0678938522d4e37e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove all terms (and postings) from the document. <br /></td></tr>
<tr class="separator:aa0bd9e001ffd29b0678938522d4e37e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79d8d9533db25fc468c122515eaf4a54"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a79d8d9533db25fc468c122515eaf4a54">termlist_count</a> () const</td></tr>
<tr class="memdesc:a79d8d9533db25fc468c122515eaf4a54"><td class="mdescLeft">&#160;</td><td class="mdescRight">The length of the termlist - i.e.  <a href="classXapian_1_1Document.html#a79d8d9533db25fc468c122515eaf4a54">More...</a><br /></td></tr>
<tr class="separator:a79d8d9533db25fc468c122515eaf4a54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a868f19157a88ecaf1131923fdd963d60"><td class="memItemLeft" align="right" valign="top"><a id="a868f19157a88ecaf1131923fdd963d60"></a>
<a class="el" href="classXapian_1_1TermIterator.html">TermIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a868f19157a88ecaf1131923fdd963d60">termlist_begin</a> () const</td></tr>
<tr class="memdesc:a868f19157a88ecaf1131923fdd963d60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Iterator for the terms in this document. <br /></td></tr>
<tr class="separator:a868f19157a88ecaf1131923fdd963d60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b7fbca3f6dcb61a65e70f7744fc9c2d"><td class="memItemLeft" align="right" valign="top"><a id="a6b7fbca3f6dcb61a65e70f7744fc9c2d"></a>
<a class="el" href="classXapian_1_1TermIterator.html">TermIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a6b7fbca3f6dcb61a65e70f7744fc9c2d">termlist_end</a> () const</td></tr>
<tr class="memdesc:a6b7fbca3f6dcb61a65e70f7744fc9c2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent end iterator for <a class="el" href="classXapian_1_1Document.html#a868f19157a88ecaf1131923fdd963d60" title="Iterator for the terms in this document.">termlist_begin()</a>. <br /></td></tr>
<tr class="separator:a6b7fbca3f6dcb61a65e70f7744fc9c2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae88f9d58434df65c24b7eed3aecbf7ee"><td class="memItemLeft" align="right" valign="top"><a id="ae88f9d58434df65c24b7eed3aecbf7ee"></a>
<a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#ae88f9d58434df65c24b7eed3aecbf7ee">values_count</a> () const</td></tr>
<tr class="memdesc:ae88f9d58434df65c24b7eed3aecbf7ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Count the values in this document. <br /></td></tr>
<tr class="separator:ae88f9d58434df65c24b7eed3aecbf7ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55a456a7ed63155058353a9882c4fa15"><td class="memItemLeft" align="right" valign="top"><a id="a55a456a7ed63155058353a9882c4fa15"></a>
<a class="el" href="classXapian_1_1ValueIterator.html">ValueIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a55a456a7ed63155058353a9882c4fa15">values_begin</a> () const</td></tr>
<tr class="memdesc:a55a456a7ed63155058353a9882c4fa15"><td class="mdescLeft">&#160;</td><td class="mdescRight">Iterator for the values in this document. <br /></td></tr>
<tr class="separator:a55a456a7ed63155058353a9882c4fa15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a715896b185c6f9c7b9075e3dde46ab03"><td class="memItemLeft" align="right" valign="top"><a id="a715896b185c6f9c7b9075e3dde46ab03"></a>
<a class="el" href="classXapian_1_1ValueIterator.html">ValueIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a715896b185c6f9c7b9075e3dde46ab03">values_end</a> () const</td></tr>
<tr class="memdesc:a715896b185c6f9c7b9075e3dde46ab03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equivalent end iterator for <a class="el" href="classXapian_1_1Document.html#a55a456a7ed63155058353a9882c4fa15" title="Iterator for the values in this document.">values_begin()</a>. <br /></td></tr>
<tr class="separator:a715896b185c6f9c7b9075e3dde46ab03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5920609db7fb6f27001b102aee5a47bd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">docid</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a5920609db7fb6f27001b102aee5a47bd">get_docid</a> () const</td></tr>
<tr class="memdesc:a5920609db7fb6f27001b102aee5a47bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the document id which is associated with this document (if any).  <a href="classXapian_1_1Document.html#a5920609db7fb6f27001b102aee5a47bd">More...</a><br /></td></tr>
<tr class="separator:a5920609db7fb6f27001b102aee5a47bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad46249a090c08abf04f5cb6ae8fdea1f"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#ad46249a090c08abf04f5cb6ae8fdea1f">serialise</a> () const</td></tr>
<tr class="memdesc:ad46249a090c08abf04f5cb6ae8fdea1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serialise document into a string.  <a href="classXapian_1_1Document.html#ad46249a090c08abf04f5cb6ae8fdea1f">More...</a><br /></td></tr>
<tr class="separator:ad46249a090c08abf04f5cb6ae8fdea1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0667045d22657781b4881fcb141f2be6"><td class="memItemLeft" align="right" valign="top"><a id="a0667045d22657781b4881fcb141f2be6"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a0667045d22657781b4881fcb141f2be6">get_description</a> () const</td></tr>
<tr class="memdesc:a0667045d22657781b4881fcb141f2be6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a string describing this object. <br /></td></tr>
<tr class="separator:a0667045d22657781b4881fcb141f2be6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a79a48573ae03d9a481df462cd9831b8e"><td class="memItemLeft" align="right" valign="top"><a id="a79a48573ae03d9a481df462cd9831b8e"></a>
static <a class="el" href="classXapian_1_1Document.html">Document</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1Document.html#a79a48573ae03d9a481df462cd9831b8e">unserialise</a> (const std::string &amp;serialised)</td></tr>
<tr class="memdesc:a79a48573ae03d9a481df462cd9831b8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unserialise a document from a string produced by <a class="el" href="classXapian_1_1Document.html#ad46249a090c08abf04f5cb6ae8fdea1f" title="Serialise document into a string.">serialise()</a>. <br /></td></tr>
<tr class="separator:a79a48573ae03d9a481df462cd9831b8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A handle representing a document in a <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> database. </p>
<p>The <a class="el" href="classXapian_1_1Document.html" title="A handle representing a document in a Xapian database.">Document</a> class fetches information from the database lazily. Usually this behaviour isn't visible to users (except for the speed benefits), but if the document in the database is modified or deleted, then preexisting <a class="el" href="classXapian_1_1Document.html" title="A handle representing a document in a Xapian database.">Document</a> objects may return the old or new versions of data (or throw <a class="el" href="classXapian_1_1DocNotFoundError.html" title="Indicates an attempt to access a document not present in the database.">Xapian::DocNotFoundError</a> in the case of deletion).</p>
<p>Since <a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> objects work on a snapshot of the database's state, the situation above can only happen with a <a class="el" href="classXapian_1_1WritableDatabase.html" title="This class provides read/write access to a database.">WritableDatabase</a> object, or if you call <a class="el" href="classXapian_1_1Database.html#af316aa13ee123e2af75f4b44e1f23db9" title="Re-open the database.">Database::reopen()</a> on a <a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> object.</p>
<p>We recommend you avoid designs where this behaviour is an issue, but if you need a way to make a non-lazy version of a <a class="el" href="classXapian_1_1Document.html" title="A handle representing a document in a Xapian database.">Document</a> object, you can do this like so: </p><pre class="fragment">doc = Xapian::Document::unserialise(doc.serialise());
</pre> </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a27316171adc74325e42d5e88b004e189"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27316171adc74325e42d5e88b004e189">&#9670;&nbsp;</a></span>Document()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Xapian::Document::Document </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classXapian_1_1Document.html">Document</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copying is allowed. </p>
<p>The internals are reference counted, so copying is cheap.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>The object to copy. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a5dcc3df00ccb9ab3a8dee594f603d299"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5dcc3df00ccb9ab3a8dee594f603d299">&#9670;&nbsp;</a></span>add_boolean_term()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::Document::add_boolean_term </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>term</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add a boolean filter term to the document. </p>
<p>This method adds <em>term</em> to the document with wdf of 0 - this is generally what you want for a term used for boolean filtering as the wdf of such terms is ignored, and it doesn't make sense for them to contribute to the document's length.</p>
<p>If the specified term already indexes this document, this method has no effect.</p>
<p>It is exactly the same as add_term(term, 0).</p>
<p>This method was added in <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.0.18.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">term</td><td>The term to add. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a161943bb133fea0da4a21fa37621764b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a161943bb133fea0da4a21fa37621764b">&#9670;&nbsp;</a></span>add_posting()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::Document::add_posting </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>tname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#ae1faeb9bd109b4d78a02d4b5f7b123ed">Xapian::termpos</a>&#160;</td>
          <td class="paramname"><em>tpos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a>&#160;</td>
          <td class="paramname"><em>wdfinc</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add an occurrence of a term at a particular position. </p>
<p>Multiple occurrences of the term at the same position are represented only once in the positional information, but do increase the wdf.</p>
<p>If the term is not already in the document, it will be added to it.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tname</td><td>The name of the term. </td></tr>
    <tr><td class="paramname">tpos</td><td>The position of the term. </td></tr>
    <tr><td class="paramname">wdfinc</td><td>The increment that will be applied to the wdf for this term. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a730bb59dda98f19c61fe67360f0adb3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a730bb59dda98f19c61fe67360f0adb3a">&#9670;&nbsp;</a></span>add_term()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::Document::add_term </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>tname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a>&#160;</td>
          <td class="paramname"><em>wdfinc</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a term to the document, without positional information. </p>
<p>Any existing positional information for the term will be left unmodified.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tname</td><td>The name of the term. </td></tr>
    <tr><td class="paramname">wdfinc</td><td>The increment that will be applied to the wdf for this term (default: 1). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a12857fccd3448ec1db91311c16d67f6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12857fccd3448ec1db91311c16d67f6c">&#9670;&nbsp;</a></span>add_value()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::Document::add_value </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a>&#160;</td>
          <td class="paramname"><em>slot</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a new value. </p>
<p>The new value will replace any existing value with the same number (or if the new value is empty, it will remove any existing value with the same number).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">slot</td><td>The value slot to add the value in. </td></tr>
    <tr><td class="paramname">value</td><td>The value to set. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac72a216225acb299b73c1f6c8800ddce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac72a216225acb299b73c1f6c8800ddce">&#9670;&nbsp;</a></span>get_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Xapian::Document::get_data </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get data stored in the document. </p>
<p>This is potentially a relatively expensive operation, and shouldn't normally be used during the match (e.g. in a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an &quot;external&quot; source of postings.">PostingSource</a> or match decider functor. Put data for use by match deciders in a value instead. </p>

</div>
</div>
<a id="a5920609db7fb6f27001b102aee5a47bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5920609db7fb6f27001b102aee5a47bd">&#9670;&nbsp;</a></span>get_docid()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">docid</a> Xapian::Document::get_docid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the document id which is associated with this document (if any). </p>
<p>NB If multiple databases are being searched together, then this will be the document id in the individual database, not the merged database!</p>
<dl class="section return"><dt>Returns</dt><dd>If this document came from a database, return the document id in that database. Otherwise, return 0 (in <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.0.22/1.2.4 or later; prior to this the returned value was uninitialised). </dd></dl>

</div>
</div>
<a id="a958c6063c67eae8b78242baa461b6389"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a958c6063c67eae8b78242baa461b6389">&#9670;&nbsp;</a></span>get_value()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Xapian::Document::get_value </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a>&#160;</td>
          <td class="paramname"><em>slot</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get value by number. </p>
<p>Returns an empty string if no value with the given number is present in the document.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">slot</td><td>The number of the value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a470144b154e9a7ec40b0875a8d636b9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a470144b154e9a7ec40b0875a8d636b9b">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::Document::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classXapian_1_1Document.html">Document</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Assignment is allowed. </p>
<p>The internals are reference counted, so assignment is cheap.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>The object to copy. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a11eec629737e496a7077b87f763967a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11eec629737e496a7077b87f763967a5">&#9670;&nbsp;</a></span>remove_posting()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::Document::remove_posting </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>tname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#ae1faeb9bd109b4d78a02d4b5f7b123ed">Xapian::termpos</a>&#160;</td>
          <td class="paramname"><em>tpos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a>&#160;</td>
          <td class="paramname"><em>wdfdec</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove a posting of a term from the document. </p>
<p>Note that the term will still index the document even if all occurrences are removed. To remove a term from a document completely, use <a class="el" href="classXapian_1_1Document.html#a01e5b7bf54fdee77a978c3b5f1b007ba" title="Remove a term and all postings associated with it.">remove_term()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tname</td><td>The name of the term. </td></tr>
    <tr><td class="paramname">tpos</td><td>The position of the term. </td></tr>
    <tr><td class="paramname">wdfdec</td><td>The decrement that will be applied to the wdf when removing this posting. The wdf will not go below the value of 0.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classXapian_1_1InvalidArgumentError.html" title="InvalidArgumentError indicates an invalid parameter value was passed to the API.">Xapian::InvalidArgumentError</a></td><td>will be thrown if the term is not at the position specified in the position list for this term in this document.</td></tr>
    <tr><td class="paramname"><a class="el" href="classXapian_1_1InvalidArgumentError.html" title="InvalidArgumentError indicates an invalid parameter value was passed to the API.">Xapian::InvalidArgumentError</a></td><td>will be thrown if the term is not in the document </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a40ef21aa8a3664612bf1792b9fbad207"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40ef21aa8a3664612bf1792b9fbad207">&#9670;&nbsp;</a></span>remove_postings()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#ae1faeb9bd109b4d78a02d4b5f7b123ed">Xapian::termpos</a> Xapian::Document::remove_postings </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>term</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#ae1faeb9bd109b4d78a02d4b5f7b123ed">Xapian::termpos</a>&#160;</td>
          <td class="paramname"><em>term_pos_first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#ae1faeb9bd109b4d78a02d4b5f7b123ed">Xapian::termpos</a>&#160;</td>
          <td class="paramname"><em>term_pos_last</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a>&#160;</td>
          <td class="paramname"><em>wdf_dec</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove a range of postings for a term. </p>
<p>Any instances of the term at positions &gt;= <em>term_pos_first</em> and &lt;= <em>term_pos_last</em> will be removed, and the wdf reduced by <em>wdf_dec</em> for each instance removed (the wdf will not ever go below zero though).</p>
<p>It's OK if the term doesn't occur in the range of positions specified (unlike <em><a class="el" href="classXapian_1_1Document.html#a11eec629737e496a7077b87f763967a5" title="Remove a posting of a term from the document.">remove_posting()</a></em>). And if term_pos_first &gt; term_pos_last, this method does nothing.</p>
<dl class="section return"><dt>Returns</dt><dd>The number of postings removed.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classXapian_1_1InvalidArgumentError.html" title="InvalidArgumentError indicates an invalid parameter value was passed to the API.">Xapian::InvalidArgumentError</a></td><td>will be thrown if the term is not in the document</td></tr>
  </table>
  </dd>
</dl>
<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.8. </dd></dl>

</div>
</div>
<a id="a01e5b7bf54fdee77a978c3b5f1b007ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01e5b7bf54fdee77a978c3b5f1b007ba">&#9670;&nbsp;</a></span>remove_term()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::Document::remove_term </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>tname</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove a term and all postings associated with it. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tname</td><td>The name of the term.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classXapian_1_1InvalidArgumentError.html" title="InvalidArgumentError indicates an invalid parameter value was passed to the API.">Xapian::InvalidArgumentError</a></td><td>will be thrown if the term is not in the document </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad46249a090c08abf04f5cb6ae8fdea1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad46249a090c08abf04f5cb6ae8fdea1f">&#9670;&nbsp;</a></span>serialise()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Xapian::Document::serialise </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Serialise document into a string. </p>
<p>The document representation may change between <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> releases: even between minor versions. However, it is guaranteed not to change if the remote database protocol has not changed between releases. </p>

</div>
</div>
<a id="ab1b0da2e7c76acd754f29a52e14f89ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1b0da2e7c76acd754f29a52e14f89ae">&#9670;&nbsp;</a></span>set_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::Document::set_data </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set data stored in the document. </p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> treats the data as an opaque blob. It may try to compress it, but other than that it will just store it and return it when requested.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>The data to store. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a79d8d9533db25fc468c122515eaf4a54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79d8d9533db25fc468c122515eaf4a54">&#9670;&nbsp;</a></span>termlist_count()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> Xapian::Document::termlist_count </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The length of the termlist - i.e. </p>
<p>the number of different terms which index this document. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>xapian/<a class="el" href="document_8h.html">document.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/">Doxygen 1.9.1</a>
</small></address>
</body>
</html>