]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1516707: Phrase search ignores CD modifiers
authorMike Rylander <mrylander@gmail.com>
Tue, 17 Nov 2015 22:20:05 +0000 (17:20 -0500)
committerKathy Lussier <klussier@masslnc.org>
Wed, 18 Nov 2015 15:02:34 +0000 (10:02 -0500)
commitfaf6f0e92e6669a9ec828c793ec23b8550137214
treedea429a32b74d9b560eab14327318ce7dc342ce7
parent025682d8d58785d030e0ed43fb9e9d37d168388a
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