File: classXapian_1_1QueryParser.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 (852 lines) | stat: -rw-r--r-- 66,996 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
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
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
<!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::QueryParser 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_1QueryParser.html">QueryParser</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classXapian_1_1QueryParser-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Xapian::QueryParser Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Build a <a class="el" href="classXapian_1_1Query.html" title="Class representing a query.">Xapian::Query</a> object from a user query string.  
 <a href="classXapian_1_1QueryParser.html#details">More...</a></p>
<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:ae96a58a8de9d219ca3214a5a66e0407e"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407e">feature_flag</a> { <br />
&#160;&#160;<a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407eaffc56acef4c5b0da425d4ea74b7affde">FLAG_BOOLEAN</a> = 1
, <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ead7e3ef99f48e26f40836a2e98ac86e6b">FLAG_PHRASE</a> = 2
, <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea0c7c618a79df1201ef342951450447cd">FLAG_LOVEHATE</a> = 4
, <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea9046353051e08dd0149b4fced176ed3d">FLAG_BOOLEAN_ANY_CASE</a> = 8
, <br />
&#160;&#160;<a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea99e75d48aca2ebbf477572d855c82e36">FLAG_WILDCARD</a> = 16
, <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407eacafc7c8cf7c90adac0fc07d02125aed0">FLAG_PURE_NOT</a> = 32
, <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407eae0b632c2f797fc7ae53c444f104072c7">FLAG_PARTIAL</a> = 64
, <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407eaacef09c368bdafe64debabe112f1024c">FLAG_SPELLING_CORRECTION</a> = 128
, <br />
&#160;&#160;<a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407eaa139c20751d70cc6d19d7541160d7d3f">FLAG_SYNONYM</a> = 256
, <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea15716c0dcfe839e7d9a8e8337bbed16b">FLAG_AUTO_SYNONYMS</a> = 512
, <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea175afae857d6aa6a4aecccfe8793be1b">FLAG_AUTO_MULTIWORD_SYNONYMS</a> = 1024
, <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea4c83dcc06ba2cd69c81521133dc68ff8">FLAG_CJK_NGRAM</a> = 2048
, <br />
&#160;&#160;<a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea3eed74bc16ebada0f503ca05fbdaa670">FLAG_ACCUMULATE</a> = 65536
, <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea4e4a5c38e629300d01219456add0ea4a">FLAG_DEFAULT</a> = FLAG_PHRASE|FLAG_BOOLEAN|FLAG_LOVEHATE
<br />
 }</td></tr>
<tr class="memdesc:ae96a58a8de9d219ca3214a5a66e0407e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enum of feature flags.  <a href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407e">More...</a><br /></td></tr>
<tr class="separator:ae96a58a8de9d219ca3214a5a66e0407e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2959f7a1c5680f3fd1421d92445e220"><td class="memItemLeft" align="right" valign="top"><a id="ae2959f7a1c5680f3fd1421d92445e220"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#ae2959f7a1c5680f3fd1421d92445e220">stem_strategy</a> { <br />
&#160;&#160;<b>STEM_NONE</b>
, <b>STEM_SOME</b>
, <b>STEM_ALL</b>
, <b>STEM_ALL_Z</b>
, <br />
&#160;&#160;<b>STEM_SOME_FULL_POS</b>
<br />
 }</td></tr>
<tr class="memdesc:ae2959f7a1c5680f3fd1421d92445e220"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stemming strategies, for use with <a class="el" href="classXapian_1_1QueryParser.html#ac7dc3b55b6083bd3ff98fc8b2726c8fd" title="Set the stemming strategy.">set_stemming_strategy()</a>. <br /></td></tr>
<tr class="separator:ae2959f7a1c5680f3fd1421d92445e220"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a00d9afcf20b20cd9c8b3d22dd1bc82b7"><td class="memItemLeft" align="right" valign="top"><a id="a00d9afcf20b20cd9c8b3d22dd1bc82b7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a00d9afcf20b20cd9c8b3d22dd1bc82b7">QueryParser</a> (const <a class="el" href="classXapian_1_1QueryParser.html">QueryParser</a> &amp;o)</td></tr>
<tr class="memdesc:a00d9afcf20b20cd9c8b3d22dd1bc82b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. <br /></td></tr>
<tr class="separator:a00d9afcf20b20cd9c8b3d22dd1bc82b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18adb637032c2149a0457f2f79f332a5"><td class="memItemLeft" align="right" valign="top"><a id="a18adb637032c2149a0457f2f79f332a5"></a>
<a class="el" href="classXapian_1_1QueryParser.html">QueryParser</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a18adb637032c2149a0457f2f79f332a5">operator=</a> (const <a class="el" href="classXapian_1_1QueryParser.html">QueryParser</a> &amp;o)</td></tr>
<tr class="memdesc:a18adb637032c2149a0457f2f79f332a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment. <br /></td></tr>
<tr class="separator:a18adb637032c2149a0457f2f79f332a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a724f1e26b785516c4c8cde78455f9cd5"><td class="memItemLeft" align="right" valign="top"><a id="a724f1e26b785516c4c8cde78455f9cd5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a724f1e26b785516c4c8cde78455f9cd5">QueryParser</a> ()</td></tr>
<tr class="memdesc:a724f1e26b785516c4c8cde78455f9cd5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:a724f1e26b785516c4c8cde78455f9cd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69d48b819b0c6d6a29f86a756f91d047"><td class="memItemLeft" align="right" valign="top"><a id="a69d48b819b0c6d6a29f86a756f91d047"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a69d48b819b0c6d6a29f86a756f91d047">~QueryParser</a> ()</td></tr>
<tr class="memdesc:a69d48b819b0c6d6a29f86a756f91d047"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a69d48b819b0c6d6a29f86a756f91d047"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2312c9865a58cc1149fe7cda9f0c2585"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a2312c9865a58cc1149fe7cda9f0c2585">set_stemmer</a> (const <a class="el" href="classXapian_1_1Stem.html">Xapian::Stem</a> &amp;stemmer)</td></tr>
<tr class="memdesc:a2312c9865a58cc1149fe7cda9f0c2585"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the stemmer.  <a href="classXapian_1_1QueryParser.html#a2312c9865a58cc1149fe7cda9f0c2585">More...</a><br /></td></tr>
<tr class="separator:a2312c9865a58cc1149fe7cda9f0c2585"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7dc3b55b6083bd3ff98fc8b2726c8fd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#ac7dc3b55b6083bd3ff98fc8b2726c8fd">set_stemming_strategy</a> (<a class="el" href="classXapian_1_1QueryParser.html#ae2959f7a1c5680f3fd1421d92445e220">stem_strategy</a> strategy)</td></tr>
<tr class="memdesc:ac7dc3b55b6083bd3ff98fc8b2726c8fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the stemming strategy.  <a href="classXapian_1_1QueryParser.html#ac7dc3b55b6083bd3ff98fc8b2726c8fd">More...</a><br /></td></tr>
<tr class="separator:ac7dc3b55b6083bd3ff98fc8b2726c8fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1046610676f72ba564108f0df5d77ab"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#ab1046610676f72ba564108f0df5d77ab">set_stopper</a> (const <a class="el" href="classXapian_1_1Stopper.html">Stopper</a> *stop=NULL)</td></tr>
<tr class="memdesc:ab1046610676f72ba564108f0df5d77ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the stopper.  <a href="classXapian_1_1QueryParser.html#ab1046610676f72ba564108f0df5d77ab">More...</a><br /></td></tr>
<tr class="separator:ab1046610676f72ba564108f0df5d77ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2efe48be88c4872afec4bc963f417ea5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a2efe48be88c4872afec4bc963f417ea5">set_default_op</a> (<a class="el" href="classXapian_1_1Query.html#a7e7b6b8ad0c915c2364578dfaaf6100b">Query::op</a> default_op)</td></tr>
<tr class="memdesc:a2efe48be88c4872afec4bc963f417ea5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the default operator.  <a href="classXapian_1_1QueryParser.html#a2efe48be88c4872afec4bc963f417ea5">More...</a><br /></td></tr>
<tr class="separator:a2efe48be88c4872afec4bc963f417ea5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac21692986aad0dfae791459cbbf36175"><td class="memItemLeft" align="right" valign="top"><a id="ac21692986aad0dfae791459cbbf36175"></a>
<a class="el" href="classXapian_1_1Query.html#a7e7b6b8ad0c915c2364578dfaaf6100b">Query::op</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#ac21692986aad0dfae791459cbbf36175">get_default_op</a> () const</td></tr>
<tr class="memdesc:ac21692986aad0dfae791459cbbf36175"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current default operator. <br /></td></tr>
<tr class="separator:ac21692986aad0dfae791459cbbf36175"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a576d221ba746506e51d9ea596ecb2cf6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a576d221ba746506e51d9ea596ecb2cf6">set_database</a> (const <a class="el" href="classXapian_1_1Database.html">Database</a> &amp;db)</td></tr>
<tr class="memdesc:a576d221ba746506e51d9ea596ecb2cf6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specify the database being searched.  <a href="classXapian_1_1QueryParser.html#a576d221ba746506e51d9ea596ecb2cf6">More...</a><br /></td></tr>
<tr class="separator:a576d221ba746506e51d9ea596ecb2cf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afabe68a4eb93a05150ae7cf070d33752"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#afabe68a4eb93a05150ae7cf070d33752">set_max_expansion</a> (<a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a> max_expansion, int max_type=<a class="el" href="classXapian_1_1Query.html#a7d8b24e46a691bea139d347bc6102a9aa4e374000be4ce7c0f319e335b008c19a">Xapian::Query::WILDCARD_LIMIT_ERROR</a>, unsigned flags=<a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea99e75d48aca2ebbf477572d855c82e36">FLAG_WILDCARD</a>|<a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407eae0b632c2f797fc7ae53c444f104072c7">FLAG_PARTIAL</a>)</td></tr>
<tr class="memdesc:afabe68a4eb93a05150ae7cf070d33752"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specify the maximum expansion of a wildcard and/or partial term.  <a href="classXapian_1_1QueryParser.html#afabe68a4eb93a05150ae7cf070d33752">More...</a><br /></td></tr>
<tr class="separator:afabe68a4eb93a05150ae7cf070d33752"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a2651e3363f82933b5c6e350bab6d8b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a0a2651e3363f82933b5c6e350bab6d8b">set_max_wildcard_expansion</a> (<a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a>)</td></tr>
<tr class="memdesc:a0a2651e3363f82933b5c6e350bab6d8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specify the maximum expansion of a wildcard.  <a href="classXapian_1_1QueryParser.html#a0a2651e3363f82933b5c6e350bab6d8b">More...</a><br /></td></tr>
<tr class="separator:a0a2651e3363f82933b5c6e350bab6d8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73d32cc7f862ab2e3fdd7da61f352fb2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1Query.html">Query</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a73d32cc7f862ab2e3fdd7da61f352fb2">parse_query</a> (const std::string &amp;query_string, unsigned flags=<a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea4e4a5c38e629300d01219456add0ea4a">FLAG_DEFAULT</a>, const std::string &amp;default_prefix=std::string())</td></tr>
<tr class="memdesc:a73d32cc7f862ab2e3fdd7da61f352fb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse a query.  <a href="classXapian_1_1QueryParser.html#a73d32cc7f862ab2e3fdd7da61f352fb2">More...</a><br /></td></tr>
<tr class="separator:a73d32cc7f862ab2e3fdd7da61f352fb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4829ddcaa0582ff94d1066870a18c97"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#ad4829ddcaa0582ff94d1066870a18c97">add_prefix</a> (const std::string &amp;field, const std::string &amp;prefix)</td></tr>
<tr class="memdesc:ad4829ddcaa0582ff94d1066870a18c97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a free-text field term prefix.  <a href="classXapian_1_1QueryParser.html#ad4829ddcaa0582ff94d1066870a18c97">More...</a><br /></td></tr>
<tr class="separator:ad4829ddcaa0582ff94d1066870a18c97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c6b58293a8e0e0d1db354362c5b7e19"><td class="memItemLeft" align="right" valign="top"><a id="a3c6b58293a8e0e0d1db354362c5b7e19"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a3c6b58293a8e0e0d1db354362c5b7e19">add_prefix</a> (const std::string &amp;field, <a class="el" href="classXapian_1_1FieldProcessor.html">Xapian::FieldProcessor</a> *proc)</td></tr>
<tr class="memdesc:a3c6b58293a8e0e0d1db354362c5b7e19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a <a class="el" href="classXapian_1_1FieldProcessor.html" title="Base class for field processors.">FieldProcessor</a>. <br /></td></tr>
<tr class="separator:a3c6b58293a8e0e0d1db354362c5b7e19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8590431c481fe0eea43cd4ce619a0816"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a8590431c481fe0eea43cd4ce619a0816">add_boolean_prefix</a> (const std::string &amp;field, const std::string &amp;prefix, const std::string *grouping=NULL)</td></tr>
<tr class="memdesc:a8590431c481fe0eea43cd4ce619a0816"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a boolean term prefix allowing the user to restrict a search with a boolean filter specified in the free text query.  <a href="classXapian_1_1QueryParser.html#a8590431c481fe0eea43cd4ce619a0816">More...</a><br /></td></tr>
<tr class="separator:a8590431c481fe0eea43cd4ce619a0816"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67d25f9297bb98c2101a03ff3d60cf30"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a67d25f9297bb98c2101a03ff3d60cf30">add_boolean_prefix</a> (const std::string &amp;field, const std::string &amp;prefix, bool exclusive)</td></tr>
<tr class="memdesc:a67d25f9297bb98c2101a03ff3d60cf30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a boolean term prefix allowing the user to restrict a search with a boolean filter specified in the free text query.  <a href="classXapian_1_1QueryParser.html#a67d25f9297bb98c2101a03ff3d60cf30">More...</a><br /></td></tr>
<tr class="separator:a67d25f9297bb98c2101a03ff3d60cf30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad475afb6389e05cf996a862a9305c666"><td class="memItemLeft" align="right" valign="top"><a id="ad475afb6389e05cf996a862a9305c666"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#ad475afb6389e05cf996a862a9305c666">add_boolean_prefix</a> (const std::string &amp;field, <a class="el" href="classXapian_1_1FieldProcessor.html">Xapian::FieldProcessor</a> *proc, const std::string *grouping=NULL)</td></tr>
<tr class="memdesc:ad475afb6389e05cf996a862a9305c666"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a <a class="el" href="classXapian_1_1FieldProcessor.html" title="Base class for field processors.">FieldProcessor</a> for a boolean prefix. <br /></td></tr>
<tr class="separator:ad475afb6389e05cf996a862a9305c666"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aead663f25674137f723c58b1ceaf5071"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#aead663f25674137f723c58b1ceaf5071">add_boolean_prefix</a> (const std::string &amp;field, <a class="el" href="classXapian_1_1FieldProcessor.html">Xapian::FieldProcessor</a> *proc, bool exclusive)</td></tr>
<tr class="memdesc:aead663f25674137f723c58b1ceaf5071"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a <a class="el" href="classXapian_1_1FieldProcessor.html" title="Base class for field processors.">FieldProcessor</a> for a boolean prefix.  <a href="classXapian_1_1QueryParser.html#aead663f25674137f723c58b1ceaf5071">More...</a><br /></td></tr>
<tr class="separator:aead663f25674137f723c58b1ceaf5071"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c90c2951a57d9c93efe469dfcb1faec"><td class="memItemLeft" align="right" valign="top"><a id="a6c90c2951a57d9c93efe469dfcb1faec"></a>
<a class="el" href="classXapian_1_1TermIterator.html">TermIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a6c90c2951a57d9c93efe469dfcb1faec">stoplist_begin</a> () const</td></tr>
<tr class="memdesc:a6c90c2951a57d9c93efe469dfcb1faec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin iterator over terms omitted from the query as stopwords. <br /></td></tr>
<tr class="separator:a6c90c2951a57d9c93efe469dfcb1faec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ff57d1cfce464a83d471acc1044789e"><td class="memItemLeft" align="right" valign="top"><a id="a3ff57d1cfce464a83d471acc1044789e"></a>
<a class="el" href="classXapian_1_1TermIterator.html">TermIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a3ff57d1cfce464a83d471acc1044789e">stoplist_end</a> () const</td></tr>
<tr class="memdesc:a3ff57d1cfce464a83d471acc1044789e"><td class="mdescLeft">&#160;</td><td class="mdescRight">End iterator over terms omitted from the query as stopwords. <br /></td></tr>
<tr class="separator:a3ff57d1cfce464a83d471acc1044789e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ff6b1caa3b6fc4e7cc1d2560eef8080"><td class="memItemLeft" align="right" valign="top"><a id="a0ff6b1caa3b6fc4e7cc1d2560eef8080"></a>
<a class="el" href="classXapian_1_1TermIterator.html">TermIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a0ff6b1caa3b6fc4e7cc1d2560eef8080">unstem_begin</a> (const std::string &amp;term) const</td></tr>
<tr class="memdesc:a0ff6b1caa3b6fc4e7cc1d2560eef8080"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin iterator over unstemmed forms of the given stemmed query term. <br /></td></tr>
<tr class="separator:a0ff6b1caa3b6fc4e7cc1d2560eef8080"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc3326d7535907a73a4ec37f4d39887f"><td class="memItemLeft" align="right" valign="top"><a id="afc3326d7535907a73a4ec37f4d39887f"></a>
<a class="el" href="classXapian_1_1TermIterator.html">TermIterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#afc3326d7535907a73a4ec37f4d39887f">unstem_end</a> (const std::string &amp;) const</td></tr>
<tr class="memdesc:afc3326d7535907a73a4ec37f4d39887f"><td class="mdescLeft">&#160;</td><td class="mdescRight">End iterator over unstemmed forms of the given stemmed query term. <br /></td></tr>
<tr class="separator:afc3326d7535907a73a4ec37f4d39887f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8e15e0a73460b2134ca202273d513b9"><td class="memItemLeft" align="right" valign="top"><a id="af8e15e0a73460b2134ca202273d513b9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#af8e15e0a73460b2134ca202273d513b9">add_rangeprocessor</a> (<a class="el" href="classXapian_1_1RangeProcessor.html">Xapian::RangeProcessor</a> *range_proc, const std::string *grouping=NULL)</td></tr>
<tr class="memdesc:af8e15e0a73460b2134ca202273d513b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a <a class="el" href="classXapian_1_1RangeProcessor.html" title="Base class for range processors.">RangeProcessor</a>. <br /></td></tr>
<tr class="separator:af8e15e0a73460b2134ca202273d513b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f8583a9f044f2eb33859b442a8aea76"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a8f8583a9f044f2eb33859b442a8aea76">add_valuerangeprocessor</a> (<a class="el" href="classXapian_1_1ValueRangeProcessor.html">Xapian::ValueRangeProcessor</a> *vrproc)</td></tr>
<tr class="memdesc:a8f8583a9f044f2eb33859b442a8aea76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a <a class="el" href="classXapian_1_1ValueRangeProcessor.html" title="Base class for value range processors.">ValueRangeProcessor</a>.  <a href="classXapian_1_1QueryParser.html#a8f8583a9f044f2eb33859b442a8aea76">More...</a><br /></td></tr>
<tr class="separator:a8f8583a9f044f2eb33859b442a8aea76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84e3dfc618f2583f3b1458d4c07325c1"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a84e3dfc618f2583f3b1458d4c07325c1">get_corrected_query_string</a> () const</td></tr>
<tr class="memdesc:a84e3dfc618f2583f3b1458d4c07325c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the spelling-corrected query string.  <a href="classXapian_1_1QueryParser.html#a84e3dfc618f2583f3b1458d4c07325c1">More...</a><br /></td></tr>
<tr class="separator:a84e3dfc618f2583f3b1458d4c07325c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a656f72461f74e86bb2ad35b0eebaef1c"><td class="memItemLeft" align="right" valign="top"><a id="a656f72461f74e86bb2ad35b0eebaef1c"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1QueryParser.html#a656f72461f74e86bb2ad35b0eebaef1c">get_description</a> () const</td></tr>
<tr class="memdesc:a656f72461f74e86bb2ad35b0eebaef1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a string describing this object. <br /></td></tr>
<tr class="separator:a656f72461f74e86bb2ad35b0eebaef1c"><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>Build a <a class="el" href="classXapian_1_1Query.html" title="Class representing a query.">Xapian::Query</a> object from a user query string. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="ae96a58a8de9d219ca3214a5a66e0407e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae96a58a8de9d219ca3214a5a66e0407e">&#9670;&nbsp;</a></span>feature_flag</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407e">Xapian::QueryParser::feature_flag</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enum of feature flags. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407eaffc56acef4c5b0da425d4ea74b7affde"></a>FLAG_BOOLEAN&#160;</td><td class="fielddoc"><p>Support AND, OR, etc and bracketed subexpressions. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407ead7e3ef99f48e26f40836a2e98ac86e6b"></a>FLAG_PHRASE&#160;</td><td class="fielddoc"><p>Support quoted phrases. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407ea0c7c618a79df1201ef342951450447cd"></a>FLAG_LOVEHATE&#160;</td><td class="fielddoc"><p>Support + and -. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407ea9046353051e08dd0149b4fced176ed3d"></a>FLAG_BOOLEAN_ANY_CASE&#160;</td><td class="fielddoc"><p>Support AND, OR, etc even if they aren't in ALLCAPS. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407ea99e75d48aca2ebbf477572d855c82e36"></a>FLAG_WILDCARD&#160;</td><td class="fielddoc"><p>Support wildcards. </p>
<pre class="fragment">    At present only right truncation (e.g. Xap*) is supported.

    Currently you can't use wildcards with boolean filter prefixes,
    or in a phrase (either an explicitly quoted one, or one implicitly
    generated by hyphens or other punctuation).

    In Xapian 1.2.x, you needed to tell the QueryParser object which
    database to expand wildcards from by calling set_database().  In
    Xapian 1.3.3, OP_WILDCARD was added and wildcards are now
    expanded when Enquire::get_mset() is called, with the expansion
    using the database being searched.
</pre> </td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407eacafc7c8cf7c90adac0fc07d02125aed0"></a>FLAG_PURE_NOT&#160;</td><td class="fielddoc"><p>Allow queries such as 'NOT apples'. </p>
<pre class="fragment">    These require the use of a list of all documents in the database
    which is potentially expensive, so this feature isn't enabled by
    default.
</pre> </td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407eae0b632c2f797fc7ae53c444f104072c7"></a>FLAG_PARTIAL&#160;</td><td class="fielddoc"><p>Enable partial matching. </p>
<pre class="fragment">    Partial matching causes the parser to treat the query as a
    "partially entered" search.  This will automatically treat the
    final word as a wildcarded match, unless it is followed by
    whitespace, to produce more stable results from interactive
    searches.

    Currently FLAG_PARTIAL doesn't do anything if the final word
    in the query has a boolean filter prefix, or if it is in a phrase
    (either an explicitly quoted one, or one implicitly generated by
    hyphens or other punctuation).  It also doesn't do anything if
    if the final word is part of a value range.

    In Xapian 1.2.x, you needed to tell the QueryParser object which
    database to expand wildcards from by calling set_database().  In
    Xapian 1.3.3, OP_WILDCARD was added and wildcards are now
    expanded when Enquire::get_mset() is called, with the expansion
    using the database being searched.
</pre> </td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407eaacef09c368bdafe64debabe112f1024c"></a>FLAG_SPELLING_CORRECTION&#160;</td><td class="fielddoc"><p>Enable spelling correction. </p>
<pre class="fragment">    For each word in the query which doesn't exist as a term in the
    database, Database::get_spelling_suggestion() will be called and if
    a suggestion is returned, a corrected version of the query string
    will be built up which can be read using
    QueryParser::get_corrected_query_string().  The query returned is
    based on the uncorrected query string however - if you want a
    parsed query based on the corrected query string, you must call
    QueryParser::parse_query() again.

    NB: You must also call set_database() for this to work.
</pre> </td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407eaa139c20751d70cc6d19d7541160d7d3f"></a>FLAG_SYNONYM&#160;</td><td class="fielddoc"><p>Enable synonym operator '~'. </p>
<pre class="fragment">    NB: You must also call set_database() for this to work.
</pre> </td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407ea15716c0dcfe839e7d9a8e8337bbed16b"></a>FLAG_AUTO_SYNONYMS&#160;</td><td class="fielddoc"><p>Enable automatic use of synonyms for single terms. </p>
<pre class="fragment">    NB: You must also call set_database() for this to work.
</pre> </td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407ea175afae857d6aa6a4aecccfe8793be1b"></a>FLAG_AUTO_MULTIWORD_SYNONYMS&#160;</td><td class="fielddoc"><p>Enable automatic use of synonyms for single terms and groups of terms. </p>
<p>NB: You must also call <a class="el" href="classXapian_1_1QueryParser.html#a576d221ba746506e51d9ea596ecb2cf6" title="Specify the database being searched.">set_database()</a> for this to work. </p>
</td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407ea4c83dcc06ba2cd69c81521133dc68ff8"></a>FLAG_CJK_NGRAM&#160;</td><td class="fielddoc"><p>Enable generation of n-grams from CJK text. </p>
<pre class="fragment">    With this enabled, spans of CJK characters are split into unigrams
    and bigrams, with the unigrams carrying positional information.
    Non-CJK characters are split into words as normal.

    The corresponding option needs to have been used at index time.

    Flag added in Xapian 1.3.4 and 1.2.22.  This mode can be
    enabled in 1.2.8 and later by setting environment variable
    XAPIAN_CJK_NGRAM to a non-empty value (but doing so was deprecated
    in 1.4.11).
</pre> </td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407ea3eed74bc16ebada0f503ca05fbdaa670"></a>FLAG_ACCUMULATE&#160;</td><td class="fielddoc"><p>Accumulate unstem and stoplist results. </p>
<pre class="fragment">    By default, the unstem and stoplist data is reset by a call to
    parse_query(), which makes sense if you use the same QueryParser
    object to parse a series of independent queries.

    If you're using the same QueryParser object to parse several
    fields on the same query form, you may want to have the unstem
    and stoplist data combined for all of them, in which case you
    can use this flag to prevent this data from being reset.

    @since Added in Xapian 1.4.18.
</pre> </td></tr>
<tr><td class="fieldname"><a id="ae96a58a8de9d219ca3214a5a66e0407ea4e4a5c38e629300d01219456add0ea4a"></a>FLAG_DEFAULT&#160;</td><td class="fielddoc"><p>The default flags. </p>
<pre class="fragment">    Used if you don't explicitly pass any to @a parse_query().
    The default flags are FLAG_PHRASE|FLAG_BOOLEAN|FLAG_LOVEHATE.

    Added in Xapian 1.0.11.
</pre> </td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a67d25f9297bb98c2101a03ff3d60cf30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67d25f9297bb98c2101a03ff3d60cf30">&#9670;&nbsp;</a></span>add_boolean_prefix() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::add_boolean_prefix </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>prefix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>exclusive</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add a boolean term prefix allowing the user to restrict a search with a boolean filter specified in the free text query. </p>
<p>This is an older version of this method - use the version with the <code>grouping</code> parameter in preference to this one.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">field</td><td>The user visible field name </td></tr>
    <tr><td class="paramname">prefix</td><td>The term prefix to map this to </td></tr>
    <tr><td class="paramname">exclusive</td><td>Controls how multiple filters are combined. If true then <em>prefix</em> is used as the <code>grouping</code> value, so terms with the same prefix are combined with OP_OR, then the resulting queries are combined with OP_AND. If false, then a unique grouping is created for each filter (this is sometimes useful when each document can have multiple terms with this prefix). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8590431c481fe0eea43cd4ce619a0816"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8590431c481fe0eea43cd4ce619a0816">&#9670;&nbsp;</a></span>add_boolean_prefix() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::add_boolean_prefix </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>prefix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string *&#160;</td>
          <td class="paramname"><em>grouping</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a boolean term prefix allowing the user to restrict a search with a boolean filter specified in the free text query. </p>
<p>For example:</p>
<div class="fragment"><div class="line">qp.add_boolean_prefix(<span class="stringliteral">&quot;site&quot;</span>, <span class="stringliteral">&quot;H&quot;</span>);</div>
</div><!-- fragment --><p>This allows the user to restrict a search with site:xapian.org which will be converted to Hxapian.org combined with any weighted query with <code><a class="el" href="classXapian_1_1Query.html#a7e7b6b8ad0c915c2364578dfaaf6100bac657f344bf26128ab7bf8fe25410b102" title="Match like OP_AND but only taking weight from the first subquery.">Xapian::Query::OP_FILTER</a></code>.</p>
<p>If multiple boolean filters are specified in a query for the same prefix, they will be combined with the <code><a class="el" href="classXapian_1_1Query.html#a7e7b6b8ad0c915c2364578dfaaf6100bac50e54f3dd9dc59dab7daa2c50cf631b" title="Match documents which at least one subquery matches.">Xapian::Query::OP_OR</a></code> operator. Then, if there are boolean filters for different prefixes, they will be combined with the <code><a class="el" href="classXapian_1_1Query.html#a7e7b6b8ad0c915c2364578dfaaf6100bab99aad2dfc85eccc56163bc65eb0fdda" title="Match only documents which all subqueries match.">Xapian::Query::OP_AND</a></code> operator.</p>
<p>Multiple fields can be mapped to the same prefix (so for example you can make site: and domain: aliases for each other). Instances of fields with different aliases but the same prefix will still be combined with the OR operator.</p>
<p>For example, if "site" and "domain" map to "H", but author maps to "A", a search for "site:foo domain:bar author:Fred" will map to "(Hfoo OR Hbar) AND Afred".</p>
<p>As of 1.0.4, you can call this method multiple times with the same value of field to allow a single field to be mapped to multiple prefixes. Multiple terms being generated for such a field, and combined with <code><a class="el" href="classXapian_1_1Query.html#a7e7b6b8ad0c915c2364578dfaaf6100bac50e54f3dd9dc59dab7daa2c50cf631b" title="Match documents which at least one subquery matches.">Xapian::Query::OP_OR</a></code>.</p>
<p>Calling this method with an empty string for <em>field</em> will cause a <code><a class="el" href="classXapian_1_1InvalidArgumentError.html" title="InvalidArgumentError indicates an invalid parameter value was passed to the API.">Xapian::InvalidArgumentError</a></code>.</p>
<p>If you call <code><a class="el" href="classXapian_1_1QueryParser.html#ad4829ddcaa0582ff94d1066870a18c97" title="Add a free-text field term prefix.">add_prefix()</a></code> and <code><a class="el" href="classXapian_1_1QueryParser.html#a8590431c481fe0eea43cd4ce619a0816" title="Add a boolean term prefix allowing the user to restrict a search with a boolean filter specified in t...">add_boolean_prefix()</a></code> for the same value of <em>field</em>, a <code><a class="el" href="classXapian_1_1InvalidOperationError.html" title="InvalidOperationError indicates the API was used in an invalid way.">Xapian::InvalidOperationError</a></code> exception will be thrown.</p>
<p>In 1.0.3 and earlier, subsequent calls to this method with the same value of <em>field</em> had no effect.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">field</td><td>The user visible field name </td></tr>
    <tr><td class="paramname">prefix</td><td>The term prefix to map this to </td></tr>
    <tr><td class="paramname">grouping</td><td>Controls how multiple filters are combined - filters with the same grouping value are combined with OP_OR, then the resulting queries are combined with OP_AND. If NULL, then <em>field</em> is used for grouping. If an empty string, then a unique grouping is created for each filter (this is sometimes useful when each document can have multiple terms with this prefix). [default: NULL] </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aead663f25674137f723c58b1ceaf5071"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aead663f25674137f723c58b1ceaf5071">&#9670;&nbsp;</a></span>add_boolean_prefix() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::add_boolean_prefix </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classXapian_1_1FieldProcessor.html">Xapian::FieldProcessor</a> *&#160;</td>
          <td class="paramname"><em>proc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>exclusive</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Register a <a class="el" href="classXapian_1_1FieldProcessor.html" title="Base class for field processors.">FieldProcessor</a> for a boolean prefix. </p>
<p>This is an older version of this method - use the version with the <code>grouping</code> parameter in preference to this one. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::add_prefix </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>prefix</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a free-text field term prefix. </p>
<p>For example:</p>
<div class="fragment"><div class="line">qp.add_prefix(<span class="stringliteral">&quot;author&quot;</span>, <span class="stringliteral">&quot;A&quot;</span>);</div>
</div><!-- fragment --><p>This allows the user to search for author:Orwell which will be converted to a search for the term "Aorwell".</p>
<p>Multiple fields can be mapped to the same prefix. For example, you can make title: and subject: aliases for each other.</p>
<p>As of 1.0.4, you can call this method multiple times with the same value of field to allow a single field to be mapped to multiple prefixes. Multiple terms being generated for such a field, and combined with <code><a class="el" href="classXapian_1_1Query.html#a7e7b6b8ad0c915c2364578dfaaf6100bac50e54f3dd9dc59dab7daa2c50cf631b" title="Match documents which at least one subquery matches.">Xapian::Query::OP_OR</a></code>.</p>
<p>If any prefixes are specified for the empty field name (i.e. you call this method with an empty string as the first parameter) these prefixes will be used for terms without a field specifier. If you do this and also specify the <code>default_prefix</code> parameter to <code><a class="el" href="classXapian_1_1QueryParser.html#a73d32cc7f862ab2e3fdd7da61f352fb2" title="Parse a query.">parse_query()</a></code>, then the <code>default_prefix</code> parameter will override.</p>
<p>If the prefix parameter is empty, then "field:word" will produce the term "word" (and this can be one of several prefixes for a particular field, or for terms without a field specifier).</p>
<p>If you call <code><a class="el" href="classXapian_1_1QueryParser.html#ad4829ddcaa0582ff94d1066870a18c97" title="Add a free-text field term prefix.">add_prefix()</a></code> and <code><a class="el" href="classXapian_1_1QueryParser.html#a8590431c481fe0eea43cd4ce619a0816" title="Add a boolean term prefix allowing the user to restrict a search with a boolean filter specified in t...">add_boolean_prefix()</a></code> for the same value of <em>field</em>, a <code><a class="el" href="classXapian_1_1InvalidOperationError.html" title="InvalidOperationError indicates the API was used in an invalid way.">Xapian::InvalidOperationError</a></code> exception will be thrown.</p>
<p>In 1.0.3 and earlier, subsequent calls to this method with the same value of <em>field</em> had no effect.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">field</td><td>The user visible field name </td></tr>
    <tr><td class="paramname">prefix</td><td>The term prefix to map this to </td></tr>
  </table>
  </dd>
</dl>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::add_valuerangeprocessor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classXapian_1_1ValueRangeProcessor.html">Xapian::ValueRangeProcessor</a> *&#160;</td>
          <td class="paramname"><em>vrproc</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>Register a <a class="el" href="classXapian_1_1ValueRangeProcessor.html" title="Base class for value range processors.">ValueRangeProcessor</a>. </p>
<p>This method is provided for API compatibility with <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.2.x and is deprecated - use <em><a class="el" href="classXapian_1_1QueryParser.html#af8e15e0a73460b2134ca202273d513b9" title="Register a RangeProcessor.">add_rangeprocessor()</a></em> with a <a class="el" href="classXapian_1_1RangeProcessor.html" title="Base class for range processors.">RangeProcessor</a> instead. </p>
<p>Compatibility shim.</p>

<p class="reference">References <a class="el" href="namespaceXapian.html#a0a75ef120e641c77f703e60f595ffda2">Xapian::BAD_VALUENO</a>, <a class="el" href="classXapian_1_1Query.html#a7e7b6b8ad0c915c2364578dfaaf6100baf93bdb686fea46eb2dae4c36a52e0e3c">Xapian::Query::OP_INVALID</a>, and <a class="el" href="classXapian_1_1RangeProcessor.html#a4e84753e4553ae7515edb4ef12da55b0">Xapian::RangeProcessor::operator()()</a>.</p>

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

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

<p>Get the spelling-corrected query string. </p>
<p>This will only be set if FLAG_SPELLING_CORRECTION is specified when <a class="el" href="classXapian_1_1QueryParser.html#a73d32cc7f862ab2e3fdd7da61f352fb2" title="Parse a query.">QueryParser::parse_query()</a> was last called.</p>
<p>If there were no corrections, an empty string is returned. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classXapian_1_1Query.html">Query</a> Xapian::QueryParser::parse_query </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>query_string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>flags</em> = <code><a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea4e4a5c38e629300d01219456add0ea4a">FLAG_DEFAULT</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>default_prefix</em> = <code>std::string()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Parse a query. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">query_string</td><td>A free-text query as entered by a user </td></tr>
    <tr><td class="paramname">flags</td><td>Zero or more <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407e" title="Enum of feature flags.">QueryParser::feature_flag</a> specifying what features the <a class="el" href="classXapian_1_1QueryParser.html" title="Build a Xapian::Query object from a user query string.">QueryParser</a> should support. Combine multiple values with bitwise-or (|) (default FLAG_DEFAULT). </td></tr>
    <tr><td class="paramname">default_prefix</td><td>The default term prefix to use (default none). For example, you can pass "A" when parsing an "Author" field.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">If</td><td>the query string can't be parsed, then <a class="el" href="classXapian_1_1QueryParserError.html" title="Indicates a query string can&#39;t be parsed.">Xapian::QueryParserError</a> is thrown. You can get an English error message to report to the user by catching it and calling get_msg() on the caught exception. The current possible values (in case you want to translate them) are:</td></tr>
  </table>
  </dd>
</dl>
<ul>
<li>Unknown range operation </li>
<li>parse error </li>
<li>Syntax: &lt;expression&gt; AND &lt;expression&gt; </li>
<li>Syntax: &lt;expression&gt; AND NOT &lt;expression&gt; </li>
<li>Syntax: &lt;expression&gt; NOT &lt;expression&gt; </li>
<li>Syntax: &lt;expression&gt; OR &lt;expression&gt; </li>
<li>Syntax: &lt;expression&gt; XOR &lt;expression&gt; </li>
</ul>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::set_database </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classXapian_1_1Database.html">Database</a> &amp;&#160;</td>
          <td class="paramname"><em>db</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Specify the database being searched. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">db</td><td>The database to use for spelling correction (FLAG_SPELLING_CORRECTION), and synonyms (FLAG_SYNONYM, FLAG_AUTO_SYNONYMS, and FLAG_AUTO_MULTIWORD_SYNONYMS). </td></tr>
  </table>
  </dd>
</dl>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::set_default_op </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classXapian_1_1Query.html#a7e7b6b8ad0c915c2364578dfaaf6100b">Query::op</a>&#160;</td>
          <td class="paramname"><em>default_op</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the default operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">default_op</td><td>The operator to use to combine non-filter query items when no explicit operator is used.</td></tr>
  </table>
  </dd>
</dl>
<p>So for example, 'weather forecast' is parsed as if it were 'weather OR forecast' by default.</p>
<p>The most useful values for this are OP_OR (the default) and OP_AND. OP_NEAR, OP_PHRASE, OP_ELITE_SET, OP_SYNONYM and OP_MAX are also permitted. Passing other values will result in <a class="el" href="classXapian_1_1InvalidArgumentError.html" title="InvalidArgumentError indicates an invalid parameter value was passed to the API.">InvalidArgumentError</a> being thrown. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::set_max_expansion </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a>&#160;</td>
          <td class="paramname"><em>max_expansion</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max_type</em> = <code><a class="el" href="classXapian_1_1Query.html#a7d8b24e46a691bea139d347bc6102a9aa4e374000be4ce7c0f319e335b008c19a">Xapian::Query::WILDCARD_LIMIT_ERROR</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>flags</em> = <code><a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea99e75d48aca2ebbf477572d855c82e36">FLAG_WILDCARD</a>|<a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407eae0b632c2f797fc7ae53c444f104072c7">FLAG_PARTIAL</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Specify the maximum expansion of a wildcard and/or partial term. </p>
<p>Note: you must also set FLAG_WILDCARD and/or FLAG_PARTIAL in the flags parameter to <em><a class="el" href="classXapian_1_1QueryParser.html#a73d32cc7f862ab2e3fdd7da61f352fb2" title="Parse a query.">parse_query()</a></em> for this setting to have anything to affect.</p>
<p>If you don't call this method, the default settings are no limit on wildcard expansion, and partial terms expanding to the most frequent 100 terms - i.e. as if you'd called:</p>
<p>set_max_expansion(0); set_max_expansion(100, Xapian::Query::WILDCARD_LIMIT_MOST_FREQUENT, Xapian::QueryParser::FLAG_PARTIAL);</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">max_expansion</td><td>The maximum number of terms each wildcard in the query can expand to, or 0 for no limit (which is the default). </td></tr>
    <tr><td class="paramname">max_type</td><td><em><a class="el" href="classXapian_1_1Query.html#a7d8b24e46a691bea139d347bc6102a9aa4e374000be4ce7c0f319e335b008c19a" title="Throw an error if OP_WILDCARD exceeds its expansion limit.">Xapian::Query::WILDCARD_LIMIT_ERROR</a></em>, <em><a class="el" href="classXapian_1_1Query.html#a7d8b24e46a691bea139d347bc6102a9aaa08d373f6c100bdbff9420dc51a621f2" title="Stop expanding when OP_WILDCARD reaches its expansion limit.">Xapian::Query::WILDCARD_LIMIT_FIRST</a></em> or <em><a class="el" href="classXapian_1_1Query.html#a7d8b24e46a691bea139d347bc6102a9aaa1568bc15280d8c8a10128d3b7f1db71" title="Limit OP_WILDCARD expansion to the most frequent terms.">Xapian::Query::WILDCARD_LIMIT_MOST_FREQUENT</a></em> (default: <a class="el" href="classXapian_1_1Query.html#a7d8b24e46a691bea139d347bc6102a9aa4e374000be4ce7c0f319e335b008c19a" title="Throw an error if OP_WILDCARD exceeds its expansion limit.">Xapian::Query::WILDCARD_LIMIT_ERROR</a>). </td></tr>
    <tr><td class="paramname">flags</td><td>What to set the limit for (default: FLAG_WILDCARD|FLAG_PARTIAL, setting the limit for both wildcards and partial terms).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.3.3 </dd></dl>

<p class="reference">Referenced by <a class="el" href="classXapian_1_1QueryParser.html#a0a2651e3363f82933b5c6e350bab6d8b">set_max_wildcard_expansion()</a>.</p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::set_max_wildcard_expansion </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceXapian.html#a4464380f6fa0055b5f26b8d03ae170e2">Xapian::termcount</a>&#160;</td>
          <td class="paramname"><em>max_expansion</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>Specify the maximum expansion of a wildcard. </p>
<p>If any wildcard expands to more than <em>max_expansion</em> terms, an exception will be thrown.</p>
<p>This method is provided for API compatibility with <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.2.x and is deprecated - replace it with:</p>
<p>set_max_wildcard_expansion(max_expansion, <a class="el" href="classXapian_1_1Query.html#a7d8b24e46a691bea139d347bc6102a9aa4e374000be4ce7c0f319e335b008c19a" title="Throw an error if OP_WILDCARD exceeds its expansion limit.">Xapian::Query::WILDCARD_LIMIT_ERROR</a>, <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea99e75d48aca2ebbf477572d855c82e36" title="Support wildcards.">Xapian::QueryParser::FLAG_WILDCARD</a>); </p>

<p class="reference">References <a class="el" href="classXapian_1_1QueryParser.html#ae96a58a8de9d219ca3214a5a66e0407ea99e75d48aca2ebbf477572d855c82e36">FLAG_WILDCARD</a>, <a class="el" href="classXapian_1_1QueryParser.html#afabe68a4eb93a05150ae7cf070d33752">set_max_expansion()</a>, and <a class="el" href="classXapian_1_1Query.html#a7d8b24e46a691bea139d347bc6102a9aa4e374000be4ce7c0f319e335b008c19a">Xapian::Query::WILDCARD_LIMIT_ERROR</a>.</p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::set_stemmer </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classXapian_1_1Stem.html">Xapian::Stem</a> &amp;&#160;</td>
          <td class="paramname"><em>stemmer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the stemmer. </p>
<p>This sets the stemming algorithm which will be used by the query parser. The stemming algorithm will be used according to the stemming strategy set by <a class="el" href="classXapian_1_1QueryParser.html#ac7dc3b55b6083bd3ff98fc8b2726c8fd" title="Set the stemming strategy.">set_stemming_strategy()</a>. As of 1.3.1, this defaults to STEM_SOME, but in earlier versions the default was STEM_NONE. If you want to work with older versions, you should explicitly set a stemming strategy as well as setting a stemmer, otherwise your stemmer won't actually be used.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stemmer</td><td>The <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Xapian::Stem</a> object to set. </td></tr>
  </table>
  </dd>
</dl>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::set_stemming_strategy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classXapian_1_1QueryParser.html#ae2959f7a1c5680f3fd1421d92445e220">stem_strategy</a>&#160;</td>
          <td class="paramname"><em>strategy</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the stemming strategy. </p>
<p>This controls how the query parser will apply the stemming algorithm. Note that the stemming algorithm is only applied to words in free-text fields - boolean filter terms are never stemmed.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">strategy</td><td>The strategy to use - possible values are:<ul>
<li>STEM_NONE: Don't perform any stemming. (default in <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> &lt;= 1.3.0)</li>
<li>STEM_SOME: <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Stem</a> all terms except for those which start with a capital letter, or are followed by certain characters (currently: <code>(/@&lt;&gt;=*[{"</code> ), or are used with operators which need positional information. Stemmed terms are prefixed with 'Z'. (default in <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> &gt;= 1.3.1)</li>
<li>STEM_SOME_FULL_POS: Like STEM_SOME but also stems terms used with operators which need positional information. Added in <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> 1.4.8.</li>
<li>STEM_ALL: <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Stem</a> all terms (note: no 'Z' prefix is added).</li>
<li>STEM_ALL_Z: <a class="el" href="classXapian_1_1Stem.html" title="Class representing a stemming algorithm.">Stem</a> all terms (note: 'Z' prefix is added). (new in <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) </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Xapian::QueryParser::set_stopper </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classXapian_1_1Stopper.html">Stopper</a> *&#160;</td>
          <td class="paramname"><em>stop</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the stopper. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stop</td><td>The <a class="el" href="classXapian_1_1Stopper.html" title="Base class for stop-word decision functor.">Stopper</a> object to set (default NULL, which means no stopwords). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>xapian/<a class="el" href="queryparser_8h.html">queryparser.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>