]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
XapHelper.pm: fix QP_FLAGS initialization
authorEric Wong <e@80x24.org>
Thu, 6 Mar 2025 20:34:42 +0000 (20:34 +0000)
committerEric Wong <e@80x24.org>
Fri, 7 Mar 2025 19:23:17 +0000 (19:23 +0000)
commite7add9d3873c62b70ceec520cdfd000e191ba9e1
tree06f2b769532e5a14e4f3a9f3ca89a0becb07ed40
parentc8956d5704bd3bebe69000b6fc7d06e68de2c0db
XapHelper.pm: fix QP_FLAGS initialization

We can't use $PublicInbox::Search::QP_FLAGS until after
load_xapian is called.  Failure to set the correct query parser
flags was causing failures in
`PI_NO_CXX=1 TEST_DAEMON_XH=-X0 prove -bw t/imapd.t'
since phrase parsing was broken with the Perl bindings
XapHelper implementation.

Now, the `check-xh0' and `check-xh1' targets both pass with
PI_NO_CXX=1 set to disable the C++ xap_helper.

Fixes: fa6a7919 (xap_helper: enable FLAG_PURE_NOT in external process, 2025-02-23)
lib/PublicInbox/XapHelper.pm