LP#1516707: Phrase search ignores CD modifiers
authorMike Rylander <mrylander@gmail.com>
Tue, 17 Nov 2015 22:20:05 +0000 (17:20 -0500)
committerBill Erickson <berickxx@gmail.com>
Sat, 21 Nov 2015 20:47:45 +0000 (15:47 -0500)
commit0dddd7bafb89f29611b46803517c73064e2bf0cc
treeeb7f956ac7fabd66524a192e6e1d9dc48d40cc4c
parent278579285be0e6b70ae061ab85b8e8574b69d05e
LP#1516707: Phrase search ignores CD modifiers

Because phrases are subqueries, we need to look at the top of the parse tree
when looking for modifiers for cover density.  This is because modifers are
normally only allowed at the top of the parse tree (or in the floating sub-
query).  We do that by asking the plan's QueryParse for it's reference to its
parse_tree member, which is always the top of the parse tree in QP.

Included in this commit is a small change to the QP testing script to
facilitate testing of this fix.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/extras/fts-replacement.pl
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm