Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
warn "Encountered search modifier: $1\n" if $self->debug;
$_ = $';
- if (!$struct->top_plan) {
+ if (!($struct->top_plan || $parser_config{QueryParser}->{allow_nested_modifiers})) {
warn " Search modifiers only allowed at the top level of the query\n" if $self->debug;
} else {
$struct->new_modifier($1);
my $mod = $1;
$_ = $';
- if (!$struct->top_plan) {
+ if (!($struct->top_plan || $parser_config{QueryParser}->{allow_nested_modifiers})) {
warn " Search modifiers only allowed at the top level of the query\n" if $self->debug;
} elsif ($2 =~ /^[ty1]/i) {
$struct->new_modifier($mod);